47d82b
# spec file for package python-more-itertools
47d82b
# https://fedoraproject.org/wiki/Packaging:Python#Example_common_spec
47d82b
%global srcname more-itertools
47d82b
%global _description \
47d82b
Opensource python library wrapping around itertools. Package also includes \
47d82b
implementations of the recipes from the itertools documentation.\
47d82b
\
47d82b
See https://pythonhosted.org/more-itertools/index.html for documentation.\
47d82b
%global sum Python library for efficient use of itertools utility
47d82b
47d82b
Name:           python-%{srcname}
47d82b
Version:        7.2.0
47d82b
Release:        5%{?dist}
47d82b
Summary:        %{sum}
47d82b
License:        MIT
47d82b
URL:            https://github.com/erikrose/more-itertools
47d82b
Source0:        https://pypi.io/packages/source/m/%{srcname}/%{srcname}-%{version}.tar.gz
47d82b
BuildArch:      noarch
47d82b
# Exclude i686 arch. Due to a modularity issue it's being added to the
47d82b
# x86_64 compose of CRB, but we don't want to ship it at all.
47d82b
# See: https://projects.engineering.redhat.com/browse/RCM-72605
47d82b
ExcludeArch:    i686
47d82b
BuildRequires:  python%{python3_pkgversion}-devel
47d82b
BuildRequires:  python%{python3_pkgversion}-rpm-macros
47d82b
BuildRequires:  python%{python3_pkgversion}-six
47d82b
47d82b
%description %_description
47d82b
47d82b
%package -n python%{python3_pkgversion}-%{srcname}
47d82b
Summary:        %{sum}
47d82b
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
47d82b
47d82b
%description -n python%{python3_pkgversion}-%{srcname} %_description
47d82b
47d82b
%prep
47d82b
%autosetup -n %{srcname}-%{version}
47d82b
47d82b
%build
47d82b
%py3_build
47d82b
47d82b
%install
47d82b
%py3_install
47d82b
47d82b
%check
47d82b
%{__python3} ./setup.py test
47d82b
47d82b
%files -n python%{python3_pkgversion}-%{srcname}
47d82b
%license LICENSE
47d82b
%doc README.rst PKG-INFO
47d82b
%{python3_sitelib}/more_itertools/
47d82b
%exclude %{python3_sitelib}/more_itertools/tests
47d82b
%{python3_sitelib}/more_itertools-%{version}-py%{python3_version}.egg-info
47d82b
47d82b
%changelog
47d82b
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 7.2.0-5
47d82b
- Exclude unsupported i686 arch
47d82b
47d82b
* Tue Nov 19 2019 Lumír Balhar <lbalhar@redhat.com> - 7.2.0-4
47d82b
- Adjusted for Python 3.8 module in RHEL 8
47d82b
- Resolves: rhbz#1772818
47d82b
47d82b
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 7.2.0-3
47d82b
- Rebuilt for Python 3.8.0rc1 (#1748018)
47d82b
47d82b
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 7.2.0-2
47d82b
- Rebuilt for Python 3.8
47d82b
47d82b
* Tue Aug 13 2019 Thomas Moschny <thomas.moschny@gmx.de> - 7.2.0-1
47d82b
- Update to 7.2.0.
47d82b
47d82b
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.0-2
47d82b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
47d82b
47d82b
* Tue May 21 2019 aarem AT fedoraproject DOT org - 7.0.0-1
47d82b
- Update to 7.0.0
47d82b
- Drop python-2
47d82b
47d82b
* Sun Apr 01 2018 aarem AT fedoraproject DOT org - 4.1.0-1
47d82b
- rebuit for 4.1.0 using Thomas Moschny modification to spec file
47d82b
47d82b
* Sat Mar 24 2018 Thomas Moschny <thomas.moschny@gmx.de> - 4.1.0-1
47d82b
- Update to 4.1.0.
47d82b
- Do not do  package tests.
47d82b
47d82b
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-5
47d82b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
47d82b
47d82b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-4
47d82b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
47d82b
47d82b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-3
47d82b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
47d82b
47d82b
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.3-2
47d82b
- Rebuild for Python 3.6
47d82b
47d82b
* Wed Nov 09 2016 aarem AT fedoraproject DOT org - 2.3-1
47d82b
- update to 2.3
47d82b
* Fri Oct 14 2016 aarem AT fedoraproject DOT org - 2.2-4
47d82b
- fixed missing sum in line 9 of spec file, per BZ #138195
47d82b
* Sat Oct 8 2016 aarem AT fedoraproject DOT org - 2.2-3
47d82b
- renamed spec file to match package as per BZ #1381029
47d82b
-fixed bug (incorrect python3_provides) as per BZ #1381029
47d82b
- use common macro for description as per suggestion in BZ #1381029
47d82b
47d82b
* Wed Oct 05 2016 aarem AT fedoraproject DOT org - 2.2-2
47d82b
- separated python and python3 cases as per BZ #1381029
47d82b
47d82b
* Sun Oct 02 2016 aarem AT fedoraproject DOT org - 2.2-1
47d82b
- initial packaging of 2.2 version