|
|
f56304 |
%global srcname Werkzeug
|
|
|
f56304 |
|
|
|
f56304 |
%if 0%{?rhel} > 7
|
|
|
f56304 |
# Disable python2 build by default
|
|
|
f56304 |
%bcond_with python2
|
|
|
f56304 |
%else
|
|
|
f56304 |
%bcond_without python2
|
|
|
f56304 |
%endif
|
|
|
f56304 |
|
|
|
f56304 |
Name: python-werkzeug
|
|
|
f56304 |
Version: 0.12.2
|
|
|
f56304 |
Release: 4%{?dist}
|
|
|
f56304 |
Summary: The Swiss Army knife of Python web development
|
|
|
f56304 |
|
|
|
f56304 |
Group: Development/Libraries
|
|
|
f56304 |
License: BSD
|
|
|
f56304 |
URL: http://werkzeug.pocoo.org/
|
|
|
f56304 |
Source0: https://files.pythonhosted.org/packages/source/W/Werkzeug/%{srcname}-%{version}.tar.gz
|
|
|
f56304 |
# Pypi version of werkzeug is missing _themes folder needed to build werkzeug sphinx docs
|
|
|
f56304 |
# See https://github.com/mitsuhiko/werkzeug/issues/761
|
|
|
f56304 |
Source1: werkzeug-sphinx-theme.tar.gz
|
|
|
f56304 |
|
|
|
f56304 |
BuildArch: noarch
|
|
|
f56304 |
|
|
|
f56304 |
%global _description\
|
|
|
f56304 |
Werkzeug\
|
|
|
f56304 |
========\
|
|
|
f56304 |
\
|
|
|
f56304 |
Werkzeug started as simple collection of various utilities for WSGI\
|
|
|
f56304 |
applications and has become one of the most advanced WSGI utility\
|
|
|
f56304 |
modules. It includes a powerful debugger, full featured request and\
|
|
|
f56304 |
response objects, HTTP utilities to handle entity tags, cache control\
|
|
|
f56304 |
headers, HTTP dates, cookie handling, file uploads, a powerful URL\
|
|
|
f56304 |
routing system and a bunch of community contributed addon modules.\
|
|
|
f56304 |
\
|
|
|
f56304 |
Werkzeug is unicode aware and doesn't enforce a specific template\
|
|
|
f56304 |
engine, database adapter or anything else. It doesn't even enforce\
|
|
|
f56304 |
a specific way of handling requests and leaves all that up to the\
|
|
|
f56304 |
developer. It's most useful for end user applications which should work\
|
|
|
f56304 |
on as many server environments as possible (such as blogs, wikis,\
|
|
|
f56304 |
bulletin boards, etc.).\
|
|
|
f56304 |
|
|
|
f56304 |
|
|
|
f56304 |
%description %_description
|
|
|
f56304 |
|
|
|
f56304 |
%if %{with python2}
|
|
|
f56304 |
%package -n python2-werkzeug
|
|
|
f56304 |
Summary: %summary
|
|
|
f56304 |
|
|
|
f56304 |
BuildRequires: python2-devel
|
|
|
f56304 |
BuildRequires: python2-setuptools
|
|
|
f56304 |
|
|
|
f56304 |
%{?python_provide:%python_provide python2-werkzeug}
|
|
|
f56304 |
|
|
|
f56304 |
%description -n python2-werkzeug %_description
|
|
|
f56304 |
%endif # with python2
|
|
|
f56304 |
|
|
|
f56304 |
|
|
|
f56304 |
%package -n python3-werkzeug
|
|
|
f56304 |
Summary: %summary
|
|
|
f56304 |
|
|
|
f56304 |
BuildRequires: python3-devel
|
|
|
f56304 |
BuildRequires: python3-setuptools
|
|
|
f56304 |
|
|
|
f56304 |
%{?python_provide:%python_provide python3-werkzeug}
|
|
|
f56304 |
|
|
|
f56304 |
%description -n python3-werkzeug %_description
|
|
|
f56304 |
|
|
|
f56304 |
|
|
|
f56304 |
%package -n python-werkzeug-doc
|
|
|
f56304 |
Summary: Documentation for python3-werkzeug
|
|
|
f56304 |
|
|
|
f56304 |
BuildRequires: python3-sphinx
|
|
|
f56304 |
|
|
|
f56304 |
Requires: python3-werkzeug = %{version}-%{release}
|
|
|
f56304 |
|
|
|
f56304 |
%description -n python-werkzeug-doc
|
|
|
f56304 |
Documentation and examples for python-werkzeug.
|
|
|
f56304 |
|
|
|
f56304 |
|
|
|
f56304 |
%prep
|
|
|
f56304 |
%setup -q -n %{srcname}-%{version}
|
|
|
f56304 |
%{__sed} -i 's/\r//' LICENSE
|
|
|
f56304 |
%{__sed} -i '1d' tests/multipart/test_collect.py
|
|
|
f56304 |
tar -xf %{SOURCE1}
|
|
|
f56304 |
|
|
|
f56304 |
rm -rf %{py3dir}
|
|
|
f56304 |
cp -a . %{py3dir}
|
|
|
f56304 |
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
|
|
f56304 |
|
|
|
f56304 |
|
|
|
f56304 |
%build
|
|
|
f56304 |
%if %{with python2}
|
|
|
f56304 |
%py2_build
|
|
|
f56304 |
find examples/ -name '*.py' -executable | xargs chmod -x
|
|
|
f56304 |
find examples/ -name '*.png' -executable | xargs chmod -x
|
|
|
f56304 |
%endif # with python2
|
|
|
f56304 |
|
|
|
f56304 |
pushd %{py3dir}
|
|
|
f56304 |
%py3_build
|
|
|
f56304 |
find examples/ -name '*.py' -executable | xargs chmod -x
|
|
|
f56304 |
find examples/ -name '*.png' -executable | xargs chmod -x
|
|
|
f56304 |
popd
|
|
|
f56304 |
|
|
|
f56304 |
pushd docs
|
|
|
f56304 |
# Add a symlink to the dir with the Python module so that __version__ can be
|
|
|
f56304 |
# obtained therefrom.
|
|
|
f56304 |
ln -s ../werkzeug werkzeug
|
|
|
f56304 |
make SPHINXBUILD=sphinx-build-3 html
|
|
|
f56304 |
popd
|
|
|
f56304 |
|
|
|
f56304 |
|
|
|
f56304 |
%install
|
|
|
f56304 |
%if %{with python2}
|
|
|
f56304 |
%py2_install
|
|
|
f56304 |
%endif # with python2
|
|
|
f56304 |
|
|
|
f56304 |
pushd %{py3dir}
|
|
|
f56304 |
%py3_install
|
|
|
f56304 |
popd
|
|
|
f56304 |
%{__rm} -rf docs/_build/html/.buildinfo
|
|
|
f56304 |
%{__rm} -rf examples/cupoftee/db.pyc
|
|
|
f56304 |
|
|
|
f56304 |
%if %{with python2}
|
|
|
f56304 |
%files -n python2-werkzeug
|
|
|
f56304 |
%license LICENSE
|
|
|
f56304 |
%doc AUTHORS PKG-INFO CHANGES
|
|
|
f56304 |
%{python2_sitelib}/*
|
|
|
f56304 |
%endif # with python2
|
|
|
f56304 |
|
|
|
f56304 |
%files -n python3-werkzeug
|
|
|
f56304 |
%license LICENSE
|
|
|
f56304 |
%doc AUTHORS PKG-INFO CHANGES
|
|
|
f56304 |
%{python3_sitelib}/*
|
|
|
f56304 |
|
|
|
f56304 |
%files -n python-werkzeug-doc
|
|
|
f56304 |
%doc docs/_build/html examples
|
|
|
f56304 |
|
|
|
f56304 |
|
|
|
f56304 |
%changelog
|
|
|
f56304 |
* Fri Jun 22 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.12.2-4
|
|
|
f56304 |
- Use python3-sphinx for the docs
|
|
|
f56304 |
|
|
|
f56304 |
* Fri Jun 22 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.12.2-3
|
|
|
f56304 |
- Conditionalize the python2 subpackage
|
|
|
f56304 |
|
|
|
f56304 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.2-2
|
|
|
f56304 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
f56304 |
|
|
|
f56304 |
* Mon Nov 20 2017 Charalampos Stratakis <cstratak@redhat.com> - 0.12.2-1
|
|
|
f56304 |
- Update to 0.12.2
|
|
|
f56304 |
|
|
|
f56304 |
* Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 0.11.10-8
|
|
|
f56304 |
- Cleanup spec file conditionals
|
|
|
f56304 |
|
|
|
f56304 |
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.11.10-7
|
|
|
f56304 |
- Python 2 binary package renamed to python2-werkzeug
|
|
|
f56304 |
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
|
f56304 |
|
|
|
f56304 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.10-6
|
|
|
f56304 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
f56304 |
|
|
|
f56304 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.10-5
|
|
|
f56304 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
f56304 |
|
|
|
f56304 |
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 0.11.10-4
|
|
|
f56304 |
- Rebuild for Python 3.6
|
|
|
f56304 |
|
|
|
f56304 |
* Tue Dec 13 2016 Tomas Orsava <torsava@redhat.com> - 0.11.10-3
|
|
|
f56304 |
- Fixed the building of documentation
|
|
|
f56304 |
|
|
|
f56304 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.10-2
|
|
|
f56304 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
f56304 |
|
|
|
f56304 |
* Sat May 28 2016 Haïkel Guémar <hguemar@fedoraproject.org> - 0.11.10-1
|
|
|
f56304 |
- Upstream 0.11.19
|
|
|
f56304 |
- Fix unicode issues with python3
|
|
|
f56304 |
|
|
|
f56304 |
* Thu Apr 14 2016 Haïkel Guémar <hguemar@fedoraproject.org> - 0.11.6-1
|
|
|
f56304 |
- Upstream 0.11.6 (upstream #822)
|
|
|
f56304 |
|
|
|
f56304 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.4-4
|
|
|
f56304 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
f56304 |
|
|
|
f56304 |
* Wed Oct 14 2015 Robert Kuska <rkuska@redhat.com> - 0.10.4-3
|
|
|
f56304 |
- Rebuilt for Python3.5 rebuild
|
|
|
f56304 |
- Add werkzeug sphinx theme as a Source1
|
|
|
f56304 |
|
|
|
f56304 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.4-2
|
|
|
f56304 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
f56304 |
|
|
|
f56304 |
* Sat May 30 2015 Ricky Elrod <relrod@redhat.com> - 0.10.4-1
|
|
|
f56304 |
- Upstream 0.10.4.
|
|
|
f56304 |
|
|
|
f56304 |
* Fri Jul 18 2014 Haïkel Guémar <hguemar@fedoraproject.org> - 0.9.6-1
|
|
|
f56304 |
- Upstream 0.9.6
|
|
|
f56304 |
- Fixes RHBZ #1105819
|
|
|
f56304 |
|
|
|
f56304 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4-3
|
|
|
f56304 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
f56304 |
|
|
|
f56304 |
* Tue May 13 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.9.4-2
|
|
|
f56304 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
f56304 |
|
|
|
f56304 |
* Mon Aug 26 2013 Haïkel Guémar <hguemar@fedoraproject.org> - 0.9.4-1
|
|
|
f56304 |
- Upstream 0.9.4
|
|
|
f56304 |
|
|
|
f56304 |
* Thu Jul 25 2013 Haïkel Guémar <hguemar@fedoraproject.org> - 0.9.3-1
|
|
|
f56304 |
- Upstream 0.9.3
|
|
|
f56304 |
|
|
|
f56304 |
* Tue Jul 23 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.9.2-1
|
|
|
f56304 |
- Upstream 0.9.2 release.
|
|
|
f56304 |
|
|
|
f56304 |
* Sat Jun 15 2013 Haïkel Guémar <hguemar@fedoraproject.org> - 0.9.1-1
|
|
|
f56304 |
- upstream 0.9.1
|
|
|
f56304 |
- add python3 flavor
|
|
|
f56304 |
|
|
|
f56304 |
* Fri Jun 14 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.9-1
|
|
|
f56304 |
- Upstream 0.9.0 release.
|
|
|
f56304 |
|
|
|
f56304 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-3
|
|
|
f56304 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
f56304 |
|
|
|
f56304 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-2
|
|
|
f56304 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
f56304 |
|
|
|
f56304 |
* Sun Feb 5 2012 Haïkel Guémar <hguemar@fedoraproject.org> - 0.8.3-1
|
|
|
f56304 |
- upstream 0.8.3 (fixes XSS security issues)
|
|
|
f56304 |
|
|
|
f56304 |
* Wed Jan 25 2012 Haïkel Guémar <hguemar@fedoraproject.org> - 0.8.2-1
|
|
|
f56304 |
- upstream 0.8.2
|
|
|
f56304 |
|
|
|
f56304 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-4
|
|
|
f56304 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
f56304 |
|
|
|
f56304 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-3
|
|
|
f56304 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
f56304 |
|
|
|
f56304 |
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.2-2
|
|
|
f56304 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
f56304 |
|
|
|
f56304 |
* Sun May 23 2010 Peter Halliday <phalliday@excelsiorsystems.net> - 0.6.2-1
|
|
|
f56304 |
- Updating because upstream release of Werkzeug 0.6.2
|
|
|
f56304 |
|
|
|
f56304 |
* Fri Mar 05 2010 Peter Halliday <phalliday@excelsiorsystems.net> - 0.6-1
|
|
|
f56304 |
- Updating because upstream release of Werkzeug 0.6
|
|
|
f56304 |
|
|
|
f56304 |
* Tue Aug 25 2009 Peter Halliday <phalliday@excelsiorsystems.net> - 0.5.1-1
|
|
|
f56304 |
- Initial package
|