Blame SPECS/python-werkzeug.spec

57dd69
%{?scl:%scl_package python-werkzeug}
57dd69
%{!?scl:%global pkg_name %{name}}
57dd69
57dd69
%global srcname Werkzeug
57dd69
57dd69
Name:           %{?scl_prefix}python-werkzeug
57dd69
Version:        0.8.3
0c7952
Release:        6%{?dist}
57dd69
Summary:        The Swiss Army knife of Python web development 
57dd69
57dd69
Group:          Development/Libraries
57dd69
License:        BSD
57dd69
URL:            http://werkzeug.pocoo.org/
57dd69
Source0:        http://pypi.python.org/packages/source/W/Werkzeug/%{srcname}-%{version}.tar.gz
57dd69
Patch1:		werkzeug-fips-errors-fix.patch
57dd69
BuildRoot:      %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
57dd69
57dd69
BuildArch:      noarch
57dd69
BuildRequires:  %{?scl_prefix}python-devel
57dd69
BuildRequires:  %{?scl_prefix}python-setuptools
57dd69
BuildRequires:  %{?scl_prefix}python-sphinx
57dd69
57dd69
%description
57dd69
Werkzeug
57dd69
========
57dd69
57dd69
Werkzeug started as simple collection of various utilities for WSGI
57dd69
applications and has become one of the most advanced WSGI utility
57dd69
modules.  It includes a powerful debugger, full featured request and
57dd69
response objects, HTTP utilities to handle entity tags, cache control
57dd69
headers, HTTP dates, cookie handling, file uploads, a powerful URL
57dd69
routing system and a bunch of community contributed addon modules.
57dd69
57dd69
Werkzeug is unicode aware and doesn't enforce a specific template
57dd69
engine, database adapter or anything else.  It doesn't even enforce
57dd69
a specific way of handling requests and leaves all that up to the
57dd69
developer. It's most useful for end user applications which should work
57dd69
on as many server environments as possible (such as blogs, wikis,
57dd69
bulletin boards, etc.).
57dd69
57dd69
%package doc
57dd69
Summary:        Documentation for %{pkg_name}
57dd69
Group:          Documentation
57dd69
Requires:       %{?scl_prefix}%{pkg_name} = %{version}-%{release}
57dd69
57dd69
57dd69
%description doc
57dd69
Documentation and examples for %{pkg_name}.
57dd69
57dd69
%prep
57dd69
%setup -q -n %{srcname}-%{version}
57dd69
%{__sed} -i 's/\r//' LICENSE
57dd69
%{__sed} -i '1d' werkzeug/testsuite/multipart/collect.py
57dd69
%patch1 -p1
57dd69
57dd69
57dd69
%build
57dd69
%{?scl:scl enable %{scl} "}
57dd69
%{__python} setup.py build
57dd69
%{?scl:"}
57dd69
find examples/ -name '*.py' -executable | xargs chmod -x
57dd69
find examples/ -name '*.png' -executable | xargs chmod -x
57dd69
pushd docs
57dd69
%{?scl:scl enable %{scl} "}
57dd69
make html
57dd69
%{?scl:"}
57dd69
popd
57dd69
57dd69
%install
57dd69
%{__rm} -rf %{buildroot}
57dd69
%{?scl:scl enable %{scl} "}
57dd69
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
57dd69
%{?scl:"}
57dd69
%{__rm} -rf docs/_build/html/.buildinfo
57dd69
%{__rm} -rf examples/cupoftee/db.pyc
57dd69
57dd69
%check
57dd69
%{?scl:scl enable %{scl} "}
57dd69
%{__python} setup.py test
57dd69
%{?scl:"}
57dd69
57dd69
%clean
57dd69
%{__rm} -rf %{buildroot}
57dd69
57dd69
%files
57dd69
%defattr(-,root,root,-)
57dd69
%doc AUTHORS LICENSE PKG-INFO CHANGES
57dd69
%{python_sitelib}/*
57dd69
57dd69
%files doc
57dd69
%defattr(-,root,root,-)
57dd69
%doc docs/_build/html examples
57dd69
57dd69
%changelog
0c7952
* Fri May 25 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.8.3-6
0c7952
- Rebuild for multi-arch bootstrap
0c7952
57dd69
* Wed May 15 2013 Matej Stuchlik <mstuchli@redhat.com> - 0.8.3-5
57dd69
- Improved error messages in FIPS
57dd69
57dd69
* Tue May 07 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.8.3-4
57dd69
- Rebuild to generate bytecode properly after fixing rhbz#956289
57dd69
57dd69
* Wed Sep 19 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.8.3-3
57dd69
- Rebuilt for SCL.
57dd69
57dd69
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-2
57dd69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
57dd69
57dd69
* Sun Feb  5 2012 Haïkel Guémar <hguemar@fedoraproject.org> - 0.8.3-1
57dd69
- upstream 0.8.3 (fixes XSS security issues)
57dd69
57dd69
* Wed Jan 25 2012 Haïkel Guémar <hguemar@fedoraproject.org> - 0.8.2-1
57dd69
- upstream 0.8.2
57dd69
57dd69
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-4
57dd69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
57dd69
57dd69
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-3
57dd69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
57dd69
57dd69
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.2-2
57dd69
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
57dd69
57dd69
* Sun May 23 2010 Peter Halliday <phalliday@excelsiorsystems.net> - 0.6.2-1
57dd69
- Updating because upstream release of Werkzeug 0.6.2
57dd69
* Sat Mar 05 2010 Peter Halliday <phalliday@excelsiorsystems.net> - 0.6-1
57dd69
- Updating because upstream release of Werkzeug 0.6
57dd69
* Tue Aug 25 2009 Peter Halliday <phalliday@excelsiorsystems.net> - 0.5.1-1
57dd69
- Initial package