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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 650047 - (hide annotations) (download)
Sun Jul 6 16:14:18 2014 UTC (7 years, 2 months ago) by ovitters
File size: 1410 byte(s)
SILENT remove variable definition(s) version
1 neoclust 548067 %global pypi_name tinycss
2     %global pypi_oname tinycss
3    
4     %define python3 1
5    
6     Name: python-%{pypi_name}
7 ovitters 650047 Version: 0.3
8 pterjan 629059 Release: %mkrel 2
9 neoclust 548067 Group: Development/Python
10     Summary: tinycss is a complete yet simple CSS parser for Python
11    
12     License: MIT
13     URL: http://pypi.python.org/pypi/%{pypi_name}
14     Source0: http://pypi.python.org/packages/source/c/%{pypi_oname}/%{pypi_oname}-%{version}.tar.gz
15    
16     BuildRequires: pkgconfig(python)
17     BuildRequires: python-setuptools
18    
19     %description
20     tinycss is a complete yet simple CSS parser for Python
21    
22     %if %python3
23     %package -n python3-%{pypi_name}
24     Summary: tinycss is a complete yet simple CSS parser for Python
25     Group: Development/Python
26    
27     BuildRequires: pkgconfig(python3)
28     BuildRequires: python3-setuptools
29    
30     %description -n python3-%{pypi_name}
31     tinycss is a complete yet simple CSS parser for Python
32     %endif
33    
34     %prep
35     %setup -q -n %{pypi_oname}-%{version}
36    
37     %apply_patches
38    
39     %if %python3
40     cp -a . %{py3dir}
41     %endif
42    
43     %build
44     %{__python} setup.py build
45    
46     %if %python3
47     pushd %{py3dir}
48     %{__python3} setup.py build
49     popd
50     %endif
51    
52     %install
53     %if %python3
54     pushd %{py3dir}
55     %{__python3} setup.py install --skip-build --root %{buildroot}
56     popd
57     %endif
58    
59     %{__python} setup.py install -O1 --skip-build --root %{buildroot}
60    
61     %files
62     %py_platsitedir/%{pypi_name}*
63    
64     %if %python3
65     %files -n python3-%{pypi_name}
66     %py3_platsitedir/%{pypi_name}*
67     %endif

  ViewVC Help
Powered by ViewVC 1.1.28