1 |
%global pypi_name tinycss |
%global pypi_name tinycss |
|
%global pypi_oname tinycss |
|
2 |
|
|
3 |
Name: python-%{pypi_name} |
Name: python-%{pypi_name} |
4 |
Version: 0.3 |
Version: 0.4 |
5 |
Release: %mkrel 10 |
Release: %mkrel 1 |
6 |
Group: Development/Python |
Group: Development/Python |
7 |
Summary: tinycss is a complete yet simple CSS parser for Python |
Summary: tinycss is a complete yet simple CSS parser for Python |
8 |
|
|
9 |
License: MIT |
License: MIT |
10 |
URL: http://pypi.python.org/pypi/%{pypi_name} |
URL: https://pypi.org/project/tinycss/ |
11 |
Source0: http://pypi.python.org/packages/source/c/%{pypi_oname}/%{pypi_oname}-%{version}.tar.gz |
Source0: https://files.pythonhosted.org/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz |
12 |
|
|
13 |
%description |
%description |
14 |
tinycss is a complete yet simple CSS parser for Python. |
tinycss is a complete yet simple CSS parser for Python. |
16 |
%package -n python2-%{pypi_name} |
%package -n python2-%{pypi_name} |
17 |
Summary: tinycss is a complete yet simple CSS parser for Python 2 |
Summary: tinycss is a complete yet simple CSS parser for Python 2 |
18 |
Group: Development/Python |
Group: Development/Python |
|
|
|
19 |
BuildRequires: pkgconfig(python2) |
BuildRequires: pkgconfig(python2) |
20 |
BuildRequires: pythonegg(2)(setuptools) |
BuildRequires: python2dist(setuptools) |
21 |
|
%{?python_provide:%python_provide python2-%{pypi_name}} |
|
Obsoletes: python-tinycss < 0.3-10 |
|
|
Provides: python-tinycss = %{version}-%{release} |
|
22 |
|
|
23 |
%description -n python2-%{pypi_name} |
%description -n python2-%{pypi_name} |
24 |
tinycss is a complete yet simple CSS parser for Python 2. |
tinycss is a complete yet simple CSS parser for Python 2. |
26 |
%package -n python3-%{pypi_name} |
%package -n python3-%{pypi_name} |
27 |
Summary: tinycss is a complete yet simple CSS parser for Python 3 |
Summary: tinycss is a complete yet simple CSS parser for Python 3 |
28 |
Group: Development/Python |
Group: Development/Python |
|
|
|
29 |
BuildRequires: pkgconfig(python3) |
BuildRequires: pkgconfig(python3) |
30 |
BuildRequires: pythonegg(3)(setuptools) |
BuildRequires: python3dist(setuptools) |
31 |
|
%{?python_provide:%python_provide python3-%{pypi_name}} |
32 |
|
|
33 |
%description -n python3-%{pypi_name} |
%description -n python3-%{pypi_name} |
34 |
tinycss is a complete yet simple CSS parser for Python 3. |
tinycss is a complete yet simple CSS parser for Python 3. |
35 |
|
|
36 |
%prep |
%prep |
37 |
%setup -q -n %{pypi_oname}-%{version} |
%setup -qn %{pypi_name}-%{version} |
|
|
|
38 |
%autopatch -p1 |
%autopatch -p1 |
39 |
|
|
40 |
cp -a . %{py3dir} |
# drop bundled egg-info |
41 |
|
rm -rf %{pypi_name}.egg-info |
42 |
|
|
43 |
%build |
%build |
44 |
%py2_build |
%py2_build |
|
|
|
|
pushd %{py3dir} |
|
45 |
%py3_build |
%py3_build |
|
popd |
|
46 |
|
|
47 |
%install |
%install |
|
pushd %{py3dir} |
|
|
%py3_install |
|
|
popd |
|
|
|
|
48 |
%py2_install |
%py2_install |
49 |
|
%py3_install |
50 |
|
|
51 |
%files -n python2-%{pypi_name} |
%files -n python2-%{pypi_name} |
52 |
%{python2_sitearch}/%{pypi_name}* |
%{python2_sitearch}/%{pypi_name}* |