4c7d27
%bcond_without tests
4c7d27
%global srcname more-itertools
4c7d27
4c7d27
Name:           python-%{srcname}
4c7d27
Version:        8.5.0
4c7d27
Release:        2%{?dist}
4c7d27
Summary:        More routines for operating on Python iterables, beyond itertools
4c7d27
License:        MIT
4c7d27
URL:            https://github.com/erikrose/more-itertools
4c7d27
Source0:        %{pypi_source}
4c7d27
BuildArch:      noarch
4c7d27
# Exclude i686 arch. Due to a modularity issue it's being added to the
4c7d27
# x86_64 compose of CRB, but we don't want to ship it at all.
4c7d27
# See: https://projects.engineering.redhat.com/browse/RCM-72605
4c7d27
ExcludeArch:    i686
4c7d27
4c7d27
BuildRequires:  python%{python3_pkgversion}-devel
4c7d27
BuildRequires:  python%{python3_pkgversion}-rpm-macros
4c7d27
BuildRequires:  python%{python3_pkgversion}-setuptools
4c7d27
BuildRequires:  python%{python3_pkgversion}-six
4c7d27
4c7d27
%global _description %{expand:
4c7d27
Python's itertools library is a gem - you can compose elegant solutions for
4c7d27
a variety of problems with the functions it provides. In more-itertools we
4c7d27
collect additional building blocks, recipes, and routines for working with
4c7d27
Python iterables.}
4c7d27
4c7d27
%description %_description
4c7d27
4c7d27
%package -n python%{python3_pkgversion}-%{srcname}
4c7d27
Summary:        %{summary}
4c7d27
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
4c7d27
4c7d27
%description -n python%{python3_pkgversion}-%{srcname} %_description
4c7d27
4c7d27
%prep
4c7d27
%autosetup -n %{srcname}-%{version}
4c7d27
4c7d27
%build
4c7d27
%py3_build
4c7d27
4c7d27
%install
4c7d27
%py3_install
4c7d27
4c7d27
%if %{with tests}
4c7d27
%check
4c7d27
%{python3} setup.py test
4c7d27
%endif
4c7d27
4c7d27
%files -n python%{python3_pkgversion}-%{srcname}
4c7d27
%license LICENSE
4c7d27
%doc README.rst PKG-INFO
4c7d27
%{python3_sitelib}/more_itertools/
4c7d27
%exclude %{python3_sitelib}/more_itertools/tests
4c7d27
%{python3_sitelib}/more_itertools-%{version}-py%{python3_version}.egg-info/
4c7d27
4c7d27
%changelog
4c7d27
* Tue Jan 12 2021 Tomas Orsava <torsava@redhat.com> - 8.5.0-2
4c7d27
- Convert from Fedora to the python39 module in RHEL8
4c7d27
- Resolves: rhbz#1877430
4c7d27
4c7d27
* Wed Sep 09 2020 Lumír Balhar <lbalhar@redhat.com> - 8.5.0-1
4c7d27
- Update to 8.5.0 (#1873653)
4c7d27
4c7d27
* Wed Jul 29 2020 Miro Hrončok <mhroncok@redhat.com> - 8.4.0-1
4c7d27
- Update to 8.4.0
4c7d27
- Fixes rhbz#1778332
4c7d27
4c7d27
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.2.0-6
4c7d27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
4c7d27
4c7d27
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 7.2.0-5
4c7d27
- Rebuilt for Python 3.9
4c7d27
4c7d27
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.2.0-4
4c7d27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4c7d27
4c7d27
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 7.2.0-3
4c7d27
- Rebuilt for Python 3.8.0rc1 (#1748018)
4c7d27
4c7d27
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 7.2.0-2
4c7d27
- Rebuilt for Python 3.8
4c7d27
4c7d27
* Tue Aug 13 2019 Thomas Moschny <thomas.moschny@gmx.de> - 7.2.0-1
4c7d27
- Update to 7.2.0.
4c7d27
4c7d27
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.0-2
4c7d27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
4c7d27
4c7d27
* Tue May 21 2019 aarem AT fedoraproject DOT org - 7.0.0-1
4c7d27
- Update to 7.0.0
4c7d27
- Drop python-2
4c7d27
4c7d27
* Sun Apr 01 2018 aarem AT fedoraproject DOT org - 4.1.0-1
4c7d27
- rebuit for 4.1.0 using Thomas Moschny modification to spec file
4c7d27
4c7d27
* Sat Mar 24 2018 Thomas Moschny <thomas.moschny@gmx.de> - 4.1.0-1
4c7d27
- Update to 4.1.0.
4c7d27
- Do not do  package tests.
4c7d27
4c7d27
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-5
4c7d27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4c7d27
4c7d27
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-4
4c7d27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4c7d27
4c7d27
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-3
4c7d27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4c7d27
4c7d27
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.3-2
4c7d27
- Rebuild for Python 3.6
4c7d27
4c7d27
* Wed Nov 09 2016 aarem AT fedoraproject DOT org - 2.3-1
4c7d27
- update to 2.3
4c7d27
* Fri Oct 14 2016 aarem AT fedoraproject DOT org - 2.2-4
4c7d27
- fixed missing sum in line 9 of spec file, per BZ #138195
4c7d27
* Sat Oct 8 2016 aarem AT fedoraproject DOT org - 2.2-3
4c7d27
- renamed spec file to match package as per BZ #1381029
4c7d27
-fixed bug (incorrect python3_provides) as per BZ #1381029
4c7d27
- use common macro for description as per suggestion in BZ #1381029
4c7d27
4c7d27
* Wed Oct 05 2016 aarem AT fedoraproject DOT org - 2.2-2
4c7d27
- separated python and python3 cases as per BZ #1381029
4c7d27
4c7d27
* Sun Oct 02 2016 aarem AT fedoraproject DOT org - 2.2-1
4c7d27
- initial packaging of 2.2 version