72eb9b
%bcond_without tests
72eb9b
%global srcname more-itertools
72eb9b
72eb9b
Name:           python-%{srcname}
72eb9b
Version:        8.5.0
72eb9b
Release:        2%{?dist}
72eb9b
Summary:        More routines for operating on Python iterables, beyond itertools
72eb9b
License:        MIT
72eb9b
URL:            https://github.com/erikrose/more-itertools
72eb9b
Source0:        %{pypi_source}
72eb9b
BuildArch:      noarch
72eb9b
72eb9b
BuildRequires:  python3-devel
72eb9b
BuildRequires:  pyproject-rpm-macros
72eb9b
72eb9b
%global _description %{expand:
72eb9b
Python's itertools library is a gem - you can compose elegant solutions for
72eb9b
a variety of problems with the functions it provides. In more-itertools we
72eb9b
collect additional building blocks, recipes, and routines for working with
72eb9b
Python iterables.}
72eb9b
72eb9b
%description %_description
72eb9b
72eb9b
%package -n python3-%{srcname}
72eb9b
Summary:        %{summary}
72eb9b
%{?python_provide:%python_provide python3-%{srcname}}
72eb9b
72eb9b
%description -n python3-%{srcname} %_description
72eb9b
72eb9b
%prep
72eb9b
%autosetup -n %{srcname}-%{version}
72eb9b
72eb9b
%generate_buildrequires
72eb9b
%pyproject_buildrequires %{?with_tests:-r -t}
72eb9b
72eb9b
%build
72eb9b
%pyproject_wheel
72eb9b
72eb9b
%install
72eb9b
%pyproject_install
72eb9b
%pyproject_save_files more_itertools
72eb9b
72eb9b
%if %{with tests}
72eb9b
%check
72eb9b
%tox
72eb9b
%endif
72eb9b
72eb9b
%files -n python3-%{srcname} -f %pyproject_files
72eb9b
%license LICENSE
72eb9b
%doc README.rst PKG-INFO
72eb9b
72eb9b
%changelog
72eb9b
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 8.5.0-2
72eb9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
72eb9b
72eb9b
* Wed Sep 09 2020 Lumír Balhar <lbalhar@redhat.com> - 8.5.0-1
72eb9b
- Update to 8.5.0 (#1873653)
72eb9b
72eb9b
* Wed Jul 29 2020 Miro Hrončok <mhroncok@redhat.com> - 8.4.0-1
72eb9b
- Update to 8.4.0
72eb9b
- Fixes rhbz#1778332
72eb9b
72eb9b
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.2.0-6
72eb9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
72eb9b
72eb9b
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 7.2.0-5
72eb9b
- Rebuilt for Python 3.9
72eb9b
72eb9b
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.2.0-4
72eb9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
72eb9b
72eb9b
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 7.2.0-3
72eb9b
- Rebuilt for Python 3.8.0rc1 (#1748018)
72eb9b
72eb9b
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 7.2.0-2
72eb9b
- Rebuilt for Python 3.8
72eb9b
72eb9b
* Tue Aug 13 2019 Thomas Moschny <thomas.moschny@gmx.de> - 7.2.0-1
72eb9b
- Update to 7.2.0.
72eb9b
72eb9b
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.0-2
72eb9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
72eb9b
72eb9b
* Tue May 21 2019 aarem AT fedoraproject DOT org - 7.0.0-1
72eb9b
- Update to 7.0.0
72eb9b
- Drop python-2
72eb9b
72eb9b
* Sun Apr 01 2018 aarem AT fedoraproject DOT org - 4.1.0-1
72eb9b
- rebuit for 4.1.0 using Thomas Moschny modification to spec file
72eb9b
72eb9b
* Sat Mar 24 2018 Thomas Moschny <thomas.moschny@gmx.de> - 4.1.0-1
72eb9b
- Update to 4.1.0.
72eb9b
- Do not do  package tests.
72eb9b
72eb9b
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-5
72eb9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
72eb9b
72eb9b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-4
72eb9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
72eb9b
72eb9b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-3
72eb9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
72eb9b
72eb9b
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.3-2
72eb9b
- Rebuild for Python 3.6
72eb9b
72eb9b
* Wed Nov 09 2016 aarem AT fedoraproject DOT org - 2.3-1
72eb9b
- update to 2.3
72eb9b
* Fri Oct 14 2016 aarem AT fedoraproject DOT org - 2.2-4
72eb9b
- fixed missing sum in line 9 of spec file, per BZ #138195
72eb9b
* Sat Oct 8 2016 aarem AT fedoraproject DOT org - 2.2-3
72eb9b
- renamed spec file to match package as per BZ #1381029
72eb9b
-fixed bug (incorrect python3_provides) as per BZ #1381029
72eb9b
- use common macro for description as per suggestion in BZ #1381029
72eb9b
72eb9b
* Wed Oct 05 2016 aarem AT fedoraproject DOT org - 2.2-2
72eb9b
- separated python and python3 cases as per BZ #1381029
72eb9b
72eb9b
* Sun Oct 02 2016 aarem AT fedoraproject DOT org - 2.2-1
72eb9b
- initial packaging of 2.2 version