1 |
neoclust |
460873 |
%global srcname werkzeug |
2 |
|
|
%global osrcname Werkzeug |
3 |
|
|
|
4 |
|
|
Name: python-%{srcname} |
5 |
philippem |
497567 |
Version: 0.9.4 |
6 |
luigiwalser |
1186890 |
%define subrel 1 |
7 |
umeabot |
741600 |
Release: %mkrel 7 |
8 |
neoclust |
460873 |
Summary: The Swiss Army knife of Python web development |
9 |
|
|
|
10 |
|
|
Group: Development/Python |
11 |
|
|
License: BSD |
12 |
|
|
URL: http://werkzeug.pocoo.org/ |
13 |
philippem |
497567 |
Source0: https://pypi.python.org/packages/source/W/%{osrcname}/%{osrcname}-%{version}.tar.gz |
14 |
luigiwalser |
1186890 |
Patch0: python-werkzeug-0.11.10-CVE-2016-10516.patch |
15 |
neoclust |
460873 |
|
16 |
|
|
BuildArch: noarch |
17 |
|
|
BuildRequires: python-devel |
18 |
|
|
BuildRequires: python-setuptools |
19 |
philippem |
497567 |
BuildRequires: python3-devel |
20 |
|
|
BuildRequires: python3-setuptools |
21 |
neoclust |
460873 |
|
22 |
|
|
%description |
23 |
|
|
The Swiss Army knife of Python web development |
24 |
|
|
|
25 |
philippem |
497567 |
%package -n python3-werkzeug |
26 |
|
|
Summary: The Swiss Army knife of Python web development |
27 |
|
|
Group: Development/Python |
28 |
|
|
BuildRequires: python3-devel |
29 |
|
|
BuildRequires: python3-setuptools |
30 |
|
|
|
31 |
|
|
%description -n python3-werkzeug |
32 |
|
|
The Swiss Army knife of Python 3 web development |
33 |
|
|
|
34 |
neoclust |
460873 |
%prep |
35 |
|
|
%setup -q -n %{osrcname}-%{version} |
36 |
luigiwalser |
1186890 |
%patch0 -p1 |
37 |
philippem |
497567 |
%{__sed} -i 's/\r//' LICENSE |
38 |
|
|
%{__sed} -i '1d' werkzeug/testsuite/multipart/collect.py |
39 |
|
|
cp -a . %{py3dir} |
40 |
|
|
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' |
41 |
neoclust |
460873 |
|
42 |
|
|
%build |
43 |
|
|
%{__python} setup.py build |
44 |
philippem |
497567 |
find examples/ -name '*.py' -executable | xargs chmod -x |
45 |
|
|
find examples/ -name '*.png' -executable | xargs chmod -x |
46 |
neoclust |
460873 |
|
47 |
philippem |
497567 |
pushd %{py3dir} |
48 |
|
|
%{__python3} setup.py build |
49 |
|
|
find examples/ -name '*.py' -executable | xargs chmod -x |
50 |
|
|
find examples/ -name '*.png' -executable | xargs chmod -x |
51 |
|
|
popd |
52 |
|
|
|
53 |
|
|
|
54 |
neoclust |
460873 |
%install |
55 |
|
|
%{__python} setup.py install -O1 --skip-build --root %{buildroot} |
56 |
philippem |
497567 |
pushd %{py3dir} |
57 |
|
|
%{__python3} setup.py install -O1 --skip-build --root %{buildroot} |
58 |
|
|
popd |
59 |
neoclust |
460873 |
|
60 |
|
|
%files |
61 |
|
|
%{python_sitelib}/%{srcname}* |
62 |
|
|
%{python_sitelib}/%{osrcname}* |
63 |
philippem |
497567 |
|
64 |
|
|
%files -n python3-werkzeug |
65 |
|
|
%{python3_sitelib}/* |
66 |
|
|
|