upstream 0.9.1
add python3 support werkzeug >= 0.9 doesn't build on EL6 (documentation build failure)
This commit is contained in:
parent
d51b44f801
commit
60a7eff77b
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@ Werkzeug-0.6.2.tar.gz
|
||||
/Werkzeug-0.8.2.tar.gz
|
||||
/Werkzeug-0.8.3.tar.gz
|
||||
/Werkzeug-0.9.tar.gz
|
||||
/Werkzeug-0.9.1.tar.gz
|
||||
|
@ -1,9 +1,13 @@
|
||||
%if 0%{?fedora} > 12
|
||||
%global with_python3 1
|
||||
%else
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%endif
|
||||
|
||||
%global srcname Werkzeug
|
||||
|
||||
Name: python-werkzeug
|
||||
Version: 0.9
|
||||
Version: 0.9.1
|
||||
Release: 1%{?dist}
|
||||
Summary: The Swiss Army knife of Python web development
|
||||
|
||||
@ -15,7 +19,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-sphinx
|
||||
|
||||
%description
|
||||
@ -36,20 +40,63 @@ developer. It's most useful for end user applications which should work
|
||||
on as many server environments as possible (such as blogs, wikis,
|
||||
bulletin boards, etc.).
|
||||
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Group: Documentation
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
|
||||
%description doc
|
||||
Documentation and examples for %{name}.
|
||||
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%package -n python3-werkzeug
|
||||
Summary: The Swiss Army knife of Python web development
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-sphinx
|
||||
|
||||
%description -n python3-werkzeug
|
||||
Werkzeug
|
||||
========
|
||||
|
||||
Werkzeug started as simple collection of various utilities for WSGI
|
||||
applications and has become one of the most advanced WSGI utility
|
||||
modules. It includes a powerful debugger, full featured request and
|
||||
response objects, HTTP utilities to handle entity tags, cache control
|
||||
headers, HTTP dates, cookie handling, file uploads, a powerful URL
|
||||
routing system and a bunch of community contributed addon modules.
|
||||
|
||||
Werkzeug is unicode aware and doesn't enforce a specific template
|
||||
engine, database adapter or anything else. It doesn't even enforce
|
||||
a specific way of handling requests and leaves all that up to the
|
||||
developer. It's most useful for end user applications which should work
|
||||
on as many server environments as possible (such as blogs, wikis,
|
||||
bulletin boards, etc.).
|
||||
|
||||
|
||||
%package -n python3-werkzeug-doc
|
||||
Summary: Documentation for python3-werkzeug
|
||||
Group: Documentation
|
||||
Requires: python3-werkzeug = %{version}-%{release}
|
||||
|
||||
%description -n python3-werkzeug-doc
|
||||
Documentation and examples for python3-werkzeug.
|
||||
%endif
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{srcname}-%{version}
|
||||
%{__sed} -i 's/\r//' LICENSE
|
||||
%{__sed} -i '1d' werkzeug/testsuite/multipart/collect.py
|
||||
|
||||
%if 0%{?with_python3}
|
||||
rm -rf %{py3dir}
|
||||
cp -a . %{py3dir}
|
||||
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
||||
%endif
|
||||
|
||||
|
||||
%build
|
||||
%{__python} setup.py build
|
||||
@ -59,12 +106,33 @@ pushd docs
|
||||
make html
|
||||
popd
|
||||
|
||||
%if 0%{?with_python3}
|
||||
pushd %{py3dir}
|
||||
%{__python3} setup.py build
|
||||
find examples/ -name '*.py' -executable | xargs chmod -x
|
||||
find examples/ -name '*.png' -executable | xargs chmod -x
|
||||
pushd docs
|
||||
make html
|
||||
popd
|
||||
popd
|
||||
%endif
|
||||
|
||||
|
||||
%install
|
||||
%{__rm} -rf %{buildroot}
|
||||
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
||||
%{__rm} -rf docs/_build/html/.buildinfo
|
||||
%{__rm} -rf examples/cupoftee/db.pyc
|
||||
|
||||
%if 0%{?with_python3}
|
||||
pushd %{py3dir}
|
||||
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
||||
%{__rm} -rf docs/_build/html/.buildinfo
|
||||
%{__rm} -rf examples/cupoftee/db.pyc
|
||||
popd
|
||||
%endif
|
||||
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
@ -77,7 +145,23 @@ popd
|
||||
%defattr(-,root,root,-)
|
||||
%doc docs/_build/html examples
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%files -n python3-werkzeug
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS LICENSE PKG-INFO CHANGES
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%files -n python3-werkzeug-doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc docs/_build/html examples
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Jun 15 2013 Haïkel Guémar <hguemar@fedoraproject.org> - 0.9.1-1
|
||||
- upstream 0.9.1
|
||||
- add python3 flavor
|
||||
|
||||
* Fri Jun 14 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.9-1
|
||||
- Upstream 0.9.0 release.
|
||||
|
||||
@ -104,7 +188,9 @@ popd
|
||||
|
||||
* Sun May 23 2010 Peter Halliday <phalliday@excelsiorsystems.net> - 0.6.2-1
|
||||
- Updating because upstream release of Werkzeug 0.6.2
|
||||
* Sat Mar 05 2010 Peter Halliday <phalliday@excelsiorsystems.net> - 0.6-1
|
||||
|
||||
* Fri Mar 05 2010 Peter Halliday <phalliday@excelsiorsystems.net> - 0.6-1
|
||||
- Updating because upstream release of Werkzeug 0.6
|
||||
|
||||
* Tue Aug 25 2009 Peter Halliday <phalliday@excelsiorsystems.net> - 0.5.1-1
|
||||
- Initial package
|
||||
|
Loading…
Reference in New Issue
Block a user