/[packages]/cauldron/python-werkzeug/pristine/SPECS/python-werkzeug.spec
ViewVC logotype

Contents of /cauldron/python-werkzeug/pristine/SPECS/python-werkzeug.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 499957 - (show annotations) (download)
Tue Oct 15 00:23:34 2013 UTC (10 years, 5 months ago) by schedbot
File size: 1704 byte(s)
Copying release 0.9.4-2.mga4 to pristine/ directory.
1 %global srcname werkzeug
2 %global osrcname Werkzeug
3
4 Name: python-%{srcname}
5 Version: 0.9.4
6 Release: %mkrel 2
7 Summary: The Swiss Army knife of Python web development
8
9 Group: Development/Python
10 License: BSD
11 URL: http://werkzeug.pocoo.org/
12 Source0: https://pypi.python.org/packages/source/W/%{osrcname}/%{osrcname}-%{version}.tar.gz
13
14 BuildArch: noarch
15 BuildRequires: python-devel
16 BuildRequires: python-setuptools
17 BuildRequires: python3-devel
18 BuildRequires: python3-setuptools
19
20 %description
21 The Swiss Army knife of Python web development
22
23 %package -n python3-werkzeug
24 Summary: The Swiss Army knife of Python web development
25 Group: Development/Python
26 BuildRequires: python3-devel
27 BuildRequires: python3-setuptools
28
29 %description -n python3-werkzeug
30 The Swiss Army knife of Python 3 web development
31
32 %prep
33 %setup -q -n %{osrcname}-%{version}
34 %{__sed} -i 's/\r//' LICENSE
35 %{__sed} -i '1d' werkzeug/testsuite/multipart/collect.py
36 cp -a . %{py3dir}
37 find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
38
39 %build
40 %{__python} setup.py build
41 find examples/ -name '*.py' -executable | xargs chmod -x
42 find examples/ -name '*.png' -executable | xargs chmod -x
43
44 pushd %{py3dir}
45 %{__python3} setup.py build
46 find examples/ -name '*.py' -executable | xargs chmod -x
47 find examples/ -name '*.png' -executable | xargs chmod -x
48 popd
49
50
51 %install
52 %{__python} setup.py install -O1 --skip-build --root %{buildroot}
53 pushd %{py3dir}
54 %{__python3} setup.py install -O1 --skip-build --root %{buildroot}
55 popd
56
57 %files
58 %{python_sitelib}/%{srcname}*
59 %{python_sitelib}/%{osrcname}*
60
61 %files -n python3-werkzeug
62 %{python3_sitelib}/*
63

  ViewVC Help
Powered by ViewVC 1.1.30