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