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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 497566 by neoclust, Tue Jul 30 07:36:51 2013 UTC revision 497567 by philippem, Mon Oct 14 20:20:02 2013 UTC
# Line 2  Line 2 
2  %global osrcname Werkzeug  %global osrcname Werkzeug
3    
4  Name:           python-%{srcname}  Name:           python-%{srcname}
5  Version:        0.9.3  Version:        0.9.4
6  Release:        %mkrel 1  Release:        %mkrel 1
7  Summary:        The Swiss Army knife of Python web development  Summary:        The Swiss Army knife of Python web development
8    
9  Group:          Development/Python  Group:          Development/Python
10  License:        BSD  License:        BSD
11  URL:            http://werkzeug.pocoo.org/  URL:            http://werkzeug.pocoo.org/
12  Source0:        http://pypi.python.org/packages/source/w/%{srcname}/%{osrcname}-%{version}.tar.gz  Source0:        https://pypi.python.org/packages/source/W/%{osrcname}/%{osrcname}-%{version}.tar.gz
13    
14  BuildArch:      noarch  BuildArch:      noarch
15  BuildRequires:  python-devel  BuildRequires:  python-devel
16  BuildRequires:  python-setuptools  BuildRequires:  python-setuptools
17    BuildRequires:  python3-devel
18    BuildRequires:  python3-setuptools
19    
20  %description  %description
21  The Swiss Army knife of Python web development  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  %prep
33  %setup -q -n %{osrcname}-%{version}  %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  %build
40  %{__python} setup.py build  %{__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  %install
52  %{__python} setup.py install -O1 --skip-build --root %{buildroot}  %{__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  %files
58  %{python_sitelib}/%{srcname}*  %{python_sitelib}/%{srcname}*
59  %{python_sitelib}/%{osrcname}*  %{python_sitelib}/%{osrcname}*
60    
61    %files -n python3-werkzeug
62    %{python3_sitelib}/*
63    

Legend:
Removed from v.497566  
changed lines
  Added in v.497567

  ViewVC Help
Powered by ViewVC 1.1.30