Update to 12.2.2
Modernize the spec file according to the latest packaging guidelines.
This commit is contained in:
parent
950ffe0326
commit
9204543ccf
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,3 +11,4 @@ Werkzeug-0.6.2.tar.gz
|
||||
/werkzeug-sphinx-theme.tar.gz
|
||||
/Werkzeug-0.11.6.tar.gz
|
||||
/Werkzeug-0.11.10.tar.gz
|
||||
/Werkzeug-0.12.2.tar.gz
|
||||
|
@ -1,29 +1,19 @@
|
||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||
%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.11.10
|
||||
Release: 8%{?dist}
|
||||
Version: 0.12.2
|
||||
Release: 1%{?dist}
|
||||
Summary: The Swiss Army knife of Python web development
|
||||
|
||||
Group: Development/Libraries
|
||||
License: BSD
|
||||
URL: http://werkzeug.pocoo.org/
|
||||
Source0: http://pypi.python.org/packages/source/W/Werkzeug/%{srcname}-%{version}.tar.gz
|
||||
Source0: https://files.pythonhosted.org/packages/source/W/Werkzeug/%{srcname}-%{version}.tar.gz
|
||||
# Pypi version of werkzeug is missing _themes folder needed to build werkzeug sphinx docs
|
||||
# See https://github.com/mitsuhiko/werkzeug/issues/761
|
||||
Source1: werkzeug-sphinx-theme.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-sphinx
|
||||
|
||||
%global _description\
|
||||
Werkzeug\
|
||||
@ -48,53 +38,47 @@ bulletin boards, etc.).\
|
||||
|
||||
%package -n python2-werkzeug
|
||||
Summary: %summary
|
||||
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-setuptools
|
||||
|
||||
%{?python_provide:%python_provide python2-werkzeug}
|
||||
|
||||
%description -n python2-werkzeug %_description
|
||||
|
||||
%package doc
|
||||
%package -n python2-werkzeug-doc
|
||||
Summary: Documentation for %{name}
|
||||
Group: Documentation
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description doc
|
||||
BuildRequires: python2-sphinx
|
||||
|
||||
Requires: python2-werkzeug = %{version}-%{release}
|
||||
%{?python_provide:%python_provide python2-werkzeug-doc}
|
||||
|
||||
%description -n python2-werkzeug-doc
|
||||
Documentation and examples for %{name}.
|
||||
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%package -n python3-werkzeug
|
||||
Summary: The Swiss Army knife of Python web development
|
||||
Summary: %summary
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-sphinx
|
||||
|
||||
%description -n python3-werkzeug
|
||||
Werkzeug
|
||||
========
|
||||
%{?python_provide:%python_provide python3-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.).
|
||||
%description -n python3-werkzeug %_description
|
||||
|
||||
|
||||
%package -n python3-werkzeug-doc
|
||||
Summary: Documentation for python3-werkzeug
|
||||
Group: Documentation
|
||||
|
||||
BuildRequires: python3-sphinx
|
||||
|
||||
Requires: python3-werkzeug = %{version}-%{release}
|
||||
%{?python_provide:%python_provide python3-werkzeug-doc}
|
||||
|
||||
%description -n python3-werkzeug-doc
|
||||
Documentation and examples for python3-werkzeug.
|
||||
%endif
|
||||
|
||||
|
||||
%prep
|
||||
@ -103,15 +87,13 @@ Documentation and examples for python3-werkzeug.
|
||||
%{__sed} -i '1d' tests/multipart/test_collect.py
|
||||
tar -xf %{SOURCE1}
|
||||
|
||||
%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
|
||||
%py2_build
|
||||
find examples/ -name '*.py' -executable | xargs chmod -x
|
||||
find examples/ -name '*.png' -executable | xargs chmod -x
|
||||
pushd docs
|
||||
@ -121,9 +103,8 @@ ln -s ../werkzeug werkzeug
|
||||
make html
|
||||
popd
|
||||
|
||||
%if 0%{?with_python3}
|
||||
pushd %{py3dir}
|
||||
%{__python3} setup.py build
|
||||
%py3_build
|
||||
find examples/ -name '*.py' -executable | xargs chmod -x
|
||||
find examples/ -name '*.png' -executable | xargs chmod -x
|
||||
pushd docs
|
||||
@ -133,49 +114,40 @@ ln -s ../werkzeug werkzeug
|
||||
make html
|
||||
popd
|
||||
popd
|
||||
%endif
|
||||
|
||||
|
||||
%install
|
||||
%{__rm} -rf %{buildroot}
|
||||
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
||||
%py2_install
|
||||
%{__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}
|
||||
%py3_install
|
||||
%{__rm} -rf docs/_build/html/.buildinfo
|
||||
%{__rm} -rf examples/cupoftee/db.pyc
|
||||
popd
|
||||
%endif
|
||||
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files -n python2-werkzeug
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS LICENSE PKG-INFO CHANGES
|
||||
%{python_sitelib}/*
|
||||
%license LICENSE
|
||||
%doc AUTHORS PKG-INFO CHANGES
|
||||
%{python2_sitelib}/*
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
%files -n python2-werkzeug-doc
|
||||
%doc docs/_build/html examples
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%files -n python3-werkzeug
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS LICENSE PKG-INFO CHANGES
|
||||
%license LICENSE
|
||||
%doc AUTHORS PKG-INFO CHANGES
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%files -n python3-werkzeug-doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc docs/_build/html examples
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Nov 20 2017 Charalampos Stratakis <cstratak@redhat.com> - 0.12.2-1
|
||||
- Update to 0.12.2
|
||||
|
||||
* Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 0.11.10-8
|
||||
- Cleanup spec file conditionals
|
||||
|
||||
|
3
sources
3
sources
@ -1,2 +1 @@
|
||||
780967186f9157e88f2bfbfa6f07a893 Werkzeug-0.11.10.tar.gz
|
||||
c12527ffedfff25ada59af4686a09ad3 werkzeug-sphinx-theme.tar.gz
|
||||
SHA512 (Werkzeug-0.12.2.tar.gz) = 9ff45aeb51a71fd5115e8cdee40a7b2fddfa0574c356686050cb1bdced5c6c18f672b601ca2637010c7f59be75c66ee558efb4ea05052c550ec7da3644b88e0a
|
||||
|
Loading…
Reference in New Issue
Block a user