Python2 binary package has been removed
This commit is contained in:
parent
6e2330afca
commit
804f873c58
1 changed files with 5 additions and 40 deletions
|
|
@ -1,11 +1,6 @@
|
|||
|
||||
%global srcname tinycss2
|
||||
|
||||
%if 0%{?fedora}
|
||||
%bcond_without python3
|
||||
%else
|
||||
%bcond_with python3
|
||||
%endif
|
||||
|
||||
%global py2_prefix python2
|
||||
%global py3_prefix python%{python3_pkgversion}
|
||||
|
|
@ -13,7 +8,7 @@
|
|||
|
||||
Name: python-%{srcname}
|
||||
Version: 0.6.1
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: Low-level CSS parser for Python
|
||||
|
||||
License: BSD
|
||||
|
|
@ -28,13 +23,11 @@ BuildRequires: %{py2_prefix}-pytest
|
|||
BuildRequires: %{py2_prefix}-pytest-cov
|
||||
# required to run the tests
|
||||
BuildRequires: %{py2_prefix}-webencodings >= 0.4
|
||||
%if %{with python3}
|
||||
BuildRequires: %{py3_prefix}-devel
|
||||
BuildRequires: %{py3_prefix}-pytest
|
||||
BuildRequires: %{py3_prefix}-pytest-cov
|
||||
# required for testing
|
||||
BuildRequires: %{py3_prefix}-webencodings >= 0.4
|
||||
%endif # with python3
|
||||
|
||||
%description
|
||||
tinycss2 is a modern, low-level CSS parser for Python. tinycss2 is a rewrite of
|
||||
|
|
@ -42,20 +35,6 @@ tinycss with a simpler API, based on the more recent CSS Syntax Level 3
|
|||
specification.
|
||||
|
||||
|
||||
%package -n %{py2_prefix}-%{srcname}
|
||||
Summary: Low-level CSS parser for Python 2
|
||||
Group: Development/Libraries
|
||||
Requires: python2-webencodings >= 0.4
|
||||
%{?python_provide:%python_provide %{py2_prefix}-%{srcname}}
|
||||
|
||||
%description -n %{py2_prefix}-%{srcname}
|
||||
tinycss2 is a modern, low-level CSS parser for Python. tinycss2 is a rewrite of
|
||||
tinycss with a simpler API, based on the more recent CSS Syntax Level 3
|
||||
specification.
|
||||
|
||||
|
||||
|
||||
%if %{with python3}
|
||||
%package -n %{py3_prefix}-%{srcname}
|
||||
Summary: Low-level CSS parser for Python 3
|
||||
Group: Development/Libraries
|
||||
|
|
@ -66,7 +45,6 @@ Requires: %{py3_prefix}-webencodings >= 0.4
|
|||
tinycss2 is a modern, low-level CSS parser for Python. tinycss2 is a rewrite of
|
||||
tinycss with a simpler API, based on the more recent CSS Syntax Level 3
|
||||
specification.
|
||||
%endif # with python3
|
||||
|
||||
|
||||
%prep
|
||||
|
|
@ -74,48 +52,35 @@ specification.
|
|||
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%if %{with python3}
|
||||
%py3_build
|
||||
%endif # with python3
|
||||
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%if %{with python3}
|
||||
%py3_install
|
||||
%endif # with python3
|
||||
|
||||
|
||||
%check
|
||||
%{__python2} -m pytest -v
|
||||
# remove files which are only required for unit tests (including test.pyc/.pyo)
|
||||
rm -rf %{buildroot}%{python2_sitelib}/%{srcname}/css-parsing-tests
|
||||
rm -rf %{buildroot}%{python2_sitelib}/%{srcname}/test.py*
|
||||
%if %{with python3}
|
||||
%{__python3} -m pytest -v
|
||||
rm -rf %{buildroot}%{python3_sitelib}/%{srcname}/css-parsing-tests
|
||||
rm -rf %{buildroot}%{python3_sitelib}/%{srcname}/test.py
|
||||
rm -rf %{buildroot}%{python3_sitelib}/%{srcname}/__pycache__/test.*.py?
|
||||
%endif # with python3
|
||||
|
||||
|
||||
%files -n %{py2_prefix}-%{srcname}
|
||||
%license LICENSE
|
||||
%doc CHANGES README.rst
|
||||
%{python2_sitelib}/%{srcname}/
|
||||
%{python2_sitelib}/%{srcname}-%{version}-py?.?.egg-info/
|
||||
|
||||
%if %{with python3}
|
||||
%files -n %{py3_prefix}-%{srcname}
|
||||
%license LICENSE
|
||||
%doc CHANGES README.rst
|
||||
%{python3_sitelib}/%{srcname}/
|
||||
%{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info/
|
||||
%endif # with python3
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Oct 12 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.6.1-6
|
||||
- Python2 binary package has been removed
|
||||
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue