python-more-itertools/python-more-itertools.spec
zhang-liang-pengkun 5b7b2367f0 fix for python 3.7 deprecation warning about importing certain types from collections vs collections.abc
Signed-off-by: zhang-liang-pengkun <zhangliangpengkun@xfusion.com>
2023-11-16 17:10:21 +08:00

70 lines
2.5 KiB
RPMSpec

Name: python-more-itertools
Version: 4.1.0
Release: 6
Summary: An opensource python library wrapping around itertools
License: MIT
URL: https://github.com/erikrose/more-itertools
Source0: https://pypi.io/packages/source/m/more-itertools/more-itertools-%{version}.tar.gz
BuildArch: noarch
Patch0000: python37.patch
Patch0001: 0001-fix-for-python-3.7-deprecation-warning-about-importi.patch
%description
This is a python library for efficient use of itertools utility, which also \
includes implementations of the recipes from the itertools documentation.\
See https://pythonhosted.org/more-itertools/index.html for more information.
%package -n python2-more-itertools
Summary: An opensource python library wrapping around itertools
BuildRequires: python2-devel python2-six
%{?python_provide:%python_provide python2-more-itertools}
%description -n python2-more-itertools
This is a python library for efficient use of itertools utility, which also \
includes implementations of the recipes from the itertools documentation.\
See https://pythonhosted.org/more-itertools/index.html for more information.
%package -n python3-more-itertools
Summary: An opensource python library wrapping around itertools
BuildRequires: python3-devel python3-six
%{?python_provide:%python_provide python3-more-itertools}
%description -n python3-more-itertools
This is a python library for efficient use of itertools utility, which also \
includes implementations of the recipes from the itertools documentation.\
See https://pythonhosted.org/more-itertools/index.html for more information.
%prep
%autosetup -n more-itertools-%{version} -p1
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%check
%{__python2} ./setup.py test
%{__python3} ./setup.py test
%files -n python2-more-itertools
%doc README.rst PKG-INFO LICENSE
%{python2_sitelib}/more_itertools/
%exclude %{python2_sitelib}/more_itertools/tests
%{python2_sitelib}/more_itertools-%{version}-py%{python2_version}.egg-info
%files -n python3-more-itertools
%doc README.rst PKG-INFO LICENSE
%{python3_sitelib}/more_itertools/
%exclude %{python3_sitelib}/more_itertools/tests
%{python3_sitelib}/more_itertools-%{version}-py%{python3_version}.egg-info
%changelog
* Thu Nov 16 2023 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 4.1.0-6
- fix for python 3.7 deprecation warning about importing certain types from collections vs collections.abc
* Fri Nov 15 2019 sunguoshuai <sunguoshuai@huawei.com> - 4.1.0-5
- Package init