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

Annotation of /cauldron/python-werkzeug/current/SPECS/python-werkzeug.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 497567 - (hide annotations) (download)
Mon Oct 14 20:20:02 2013 UTC (10 years, 5 months ago) by philippem
File size: 1704 byte(s)
- Update to 0.9.4
- add Python 3
1 neoclust 460873 %global srcname werkzeug
2     %global osrcname Werkzeug
3    
4     Name: python-%{srcname}
5 philippem 497567 Version: 0.9.4
6 neoclust 460873 Release: %mkrel 1
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 philippem 497567 Source0: https://pypi.python.org/packages/source/W/%{osrcname}/%{osrcname}-%{version}.tar.gz
13 neoclust 460873
14     BuildArch: noarch
15     BuildRequires: python-devel
16     BuildRequires: python-setuptools
17 philippem 497567 BuildRequires: python3-devel
18     BuildRequires: python3-setuptools
19 neoclust 460873
20     %description
21     The Swiss Army knife of Python web development
22    
23 philippem 497567 %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 neoclust 460873 %prep
33     %setup -q -n %{osrcname}-%{version}
34 philippem 497567 %{__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 neoclust 460873
39     %build
40     %{__python} setup.py build
41 philippem 497567 find examples/ -name '*.py' -executable | xargs chmod -x
42     find examples/ -name '*.png' -executable | xargs chmod -x
43 neoclust 460873
44 philippem 497567 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 neoclust 460873 %install
52     %{__python} setup.py install -O1 --skip-build --root %{buildroot}
53 philippem 497567 pushd %{py3dir}
54     %{__python3} setup.py install -O1 --skip-build --root %{buildroot}
55     popd
56 neoclust 460873
57     %files
58     %{python_sitelib}/%{srcname}*
59     %{python_sitelib}/%{osrcname}*
60 philippem 497567
61     %files -n python3-werkzeug
62     %{python3_sitelib}/*
63    

  ViewVC Help
Powered by ViewVC 1.1.30