commit
b75dad82ef
BIN
backports_abc-0.5.tar.gz
Normal file
BIN
backports_abc-0.5.tar.gz
Normal file
Binary file not shown.
59
python-backports_abc.spec
Normal file
59
python-backports_abc.spec
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
Name: python-backports_abc
|
||||||
|
Version: 0.5
|
||||||
|
Release: 9
|
||||||
|
Summary: It patches the collections module instead of the collections.abc module.
|
||||||
|
License: Python
|
||||||
|
URL: https://pypi.python.org/pypi/backports_abc
|
||||||
|
Source0: https://files.pythonhosted.org/packages/source/b/python-backports_abc/backports_abc-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: python2-devel python3-devel
|
||||||
|
BuildRequires: python2-setuptools python3-setuptools
|
||||||
|
|
||||||
|
%description
|
||||||
|
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
|
||||||
|
Summary: A backport of recent additions to the 'collections.abc' module
|
||||||
|
%{?python_provide:%python_provide python3-backports_abc}
|
||||||
|
|
||||||
|
%description -n python3-backports_abc
|
||||||
|
In Python 3.x, it patches the collections module instead of the collections.abc module.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n backports_abc-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%py2_build
|
||||||
|
%py3_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%py2_install
|
||||||
|
%py3_install
|
||||||
|
|
||||||
|
%check
|
||||||
|
%{__python2} 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
|
||||||
|
%license LICENSE
|
||||||
|
%doc CHANGES.rst README.rst
|
||||||
|
%{python3_sitelib}/backports_abc.py
|
||||||
|
%{python3_sitelib}/backports_abc*.egg-info/
|
||||||
|
%{python3_sitelib}/__pycache__/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sat Nov 30 2019 lijin Yang <yanglijin@huawei.com> - 0.5-9
|
||||||
|
- init package
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user