/[packages]/updates/5/python-werkzeug/current/SPECS/python-werkzeug.spec
ViewVC logotype

Contents of /updates/5/python-werkzeug/current/SPECS/python-werkzeug.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1186890 - (show annotations) (download)
Fri Dec 29 00:21:00 2017 UTC (17 months, 3 weeks ago) by luigiwalser
File size: 1787 byte(s)
add upstream patch to fix CVE-2016-10516
1 %global srcname werkzeug
2 %global osrcname Werkzeug
3
4 Name: python-%{srcname}
5 Version: 0.9.4
6 %define subrel 1
7 Release: %mkrel 7
8 Summary: The Swiss Army knife of Python web development
9
10 Group: Development/Python
11 License: BSD
12 URL: http://werkzeug.pocoo.org/
13 Source0: https://pypi.python.org/packages/source/W/%{osrcname}/%{osrcname}-%{version}.tar.gz
14 Patch0: python-werkzeug-0.11.10-CVE-2016-10516.patch
15
16 BuildArch: noarch
17 BuildRequires: python-devel
18 BuildRequires: python-setuptools
19 BuildRequires: python3-devel
20 BuildRequires: python3-setuptools
21
22 %description
23 The Swiss Army knife of Python web development
24
25 %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 %prep
35 %setup -q -n %{osrcname}-%{version}
36 %patch0 -p1
37 %{__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
42 %build
43 %{__python} setup.py build
44 find examples/ -name '*.py' -executable | xargs chmod -x
45 find examples/ -name '*.png' -executable | xargs chmod -x
46
47 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 %install
55 %{__python} setup.py install -O1 --skip-build --root %{buildroot}
56 pushd %{py3dir}
57 %{__python3} setup.py install -O1 --skip-build --root %{buildroot}
58 popd
59
60 %files
61 %{python_sitelib}/%{srcname}*
62 %{python_sitelib}/%{osrcname}*
63
64 %files -n python3-werkzeug
65 %{python3_sitelib}/*
66

  ViewVC Help
Powered by ViewVC 1.1.26