Remove subpackage python2-backports_abc

This commit is contained in:
lei_ju 2020-10-30 14:13:21 +08:00
parent 18ac46ff86
commit 5f6ef2686d

View File

@ -1,24 +1,16 @@
Name: python-backports_abc Name: python-backports_abc
Version: 0.5 Version: 0.5
Release: 10 Release: 11
Summary: It patches the collections module instead of the collections.abc module. Summary: It patches the collections module instead of the collections.abc module.
License: Python License: Python
URL: https://pypi.python.org/pypi/backports_abc URL: https://pypi.python.org/pypi/backports_abc
Source0: https://files.pythonhosted.org/packages/68/3c/1317a9113c377d1e33711ca8de1e80afbaf4a3c950dd0edfaf61f9bfe6d8/backports_abc-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/68/3c/1317a9113c377d1e33711ca8de1e80afbaf4a3c950dd0edfaf61f9bfe6d8/backports_abc-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: python2-devel python3-devel BuildRequires: python3-devel python3-setuptools
BuildRequires: python2-setuptools python3-setuptools
%description %description
A backport of recent additions to the 'collections.abc' module. A backport of recent additions to the 'collections.abc' module.
%package -n python2-backports_abc
Summary: A backport of recent additions to the 'collections.abc' module
%{?python_provide:%python_provide python2-backports_abc}
%description -n python2-backports_abc
In Python 2.x, it patches the collections module instead of the collections.abc module.
%package -n python3-backports_abc %package -n python3-backports_abc
Summary: A backport of recent additions to the 'collections.abc' module Summary: A backport of recent additions to the 'collections.abc' module
%{?python_provide:%python_provide python3-backports_abc} %{?python_provide:%python_provide python3-backports_abc}
@ -30,22 +22,14 @@ In Python 3.x, it patches the collections module instead of the collections.abc
%autosetup -n backports_abc-%{version} %autosetup -n backports_abc-%{version}
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
%check %check
%{__python2} setup.py test
%{__python3} setup.py test %{__python3} setup.py test
%files -n python2-backports_abc
%license LICENSE
%doc CHANGES.rst README.rst
%{python2_sitelib}/*
%files -n python3-backports_abc %files -n python3-backports_abc
%license LICENSE %license LICENSE
%doc CHANGES.rst README.rst %doc CHANGES.rst README.rst
@ -54,6 +38,9 @@ In Python 3.x, it patches the collections module instead of the collections.abc
%{python3_sitelib}/__pycache__/* %{python3_sitelib}/__pycache__/*
%changelog %changelog
* Wed Oct 21 2020 chengzihan <chengzihan2@huawei.com> - 0.5-11
- Remove subpackage python2-backports_abc
* Thu Sep 10 2020 liuweibo <liuweibo10@huawei.com> - 0.5-10 * Thu Sep 10 2020 liuweibo <liuweibo10@huawei.com> - 0.5-10
- Fix Source0 - Fix Source0