41b2f6
# tests are enabled by default
41b2f6
%bcond_without tests
41b2f6
41b2f6
%global python_wheelname six-%{version}-py2.py3-none-any.whl
41b2f6
41b2f6
Name:           python-six
41b2f6
Version:        1.15.0
41b2f6
Release:        9%{?dist}
41b2f6
Summary:        Python 2 and 3 compatibility utilities
41b2f6
41b2f6
License:        MIT
41b2f6
URL:            https://pypi.python.org/pypi/six
41b2f6
Source0:        %{pypi_source six}
41b2f6
41b2f6
# Backported from upstream PR: https://github.com/benjaminp/six/pull/343
41b2f6
Patch0:         py310.patch
41b2f6
41b2f6
BuildArch:      noarch
41b2f6
41b2f6
BuildRequires:  python%{python3_pkgversion}-devel
41b2f6
BuildRequires:  python%{python3_pkgversion}-setuptools
41b2f6
BuildRequires:  python%{python3_pkgversion}-pip
41b2f6
BuildRequires:  python%{python3_pkgversion}-wheel
41b2f6
41b2f6
%if %{with tests}
41b2f6
BuildRequires:  python3-pytest
41b2f6
BuildRequires:  python3-tkinter
41b2f6
%endif
41b2f6
41b2f6
%global _description %{expand:
41b2f6
%{name} provides simple utilities for wrapping over differences between
41b2f6
Python 2 and Python 3.}
41b2f6
41b2f6
%description %{_description}
41b2f6
41b2f6
41b2f6
%package -n python%{python3_pkgversion}-six
41b2f6
Summary:        %{summary}
41b2f6
41b2f6
%description -n python%{python3_pkgversion}-six %{_description}
41b2f6
41b2f6
41b2f6
%prep
41b2f6
%autosetup -p1 -n six-%{version}
41b2f6
41b2f6
41b2f6
%build
41b2f6
%py3_build_wheel
41b2f6
41b2f6
41b2f6
%install
41b2f6
%py3_install_wheel %{python_wheelname}
41b2f6
41b2f6
%if %{with tests}
41b2f6
%check
41b2f6
%pytest -rfsxX test_six.py
41b2f6
%endif
41b2f6
41b2f6
41b2f6
%files -n python%{python3_pkgversion}-six
41b2f6
%license LICENSE
41b2f6
%doc README.rst documentation/index.rst
41b2f6
%{python3_sitelib}/six-*.dist-info/
41b2f6
%pycached %{python3_sitelib}/six.py
41b2f6
41b2f6
41b2f6
%changelog
41b2f6
* Wed Feb 16 2022 Lukáš Zachar <lzachar@redhat.com> - 1.15.0-9
41b2f6
- Add gating configuration and simple test
41b2f6
- Related: rhbz#1950291
41b2f6
41b2f6
* Tue Feb 08 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 1.15.0-8
41b2f6
- Add automatically generated Obsoletes tag with the python39- prefix
41b2f6
  for smoother upgrade from RHEL8
41b2f6
- Related: rhbz#1990421
41b2f6
41b2f6
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.15.0-7
41b2f6
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
41b2f6
  Related: rhbz#1991688
41b2f6
41b2f6
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.15.0-6
41b2f6
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
41b2f6
41b2f6
* Mon Mar 15 2021 Miro Hrončok <mhroncok@redhat.com> - 1.15.0-5
41b2f6
- Remove python2-six
41b2f6
41b2f6
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.0-4
41b2f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
41b2f6
41b2f6
* Mon Dec 14 2020 Lumír Balhar <lbalhar@redhat.com> - 1.15.0-3
41b2f6
- Fix compatibility with Python 3.10
41b2f6
41b2f6
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.0-2
41b2f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
41b2f6
41b2f6
* Mon Jun 01 2020 Charalampos Stratakis <cstratak@redhat.com> - 1.15.0-1
41b2f6
- Update to 1.15.0 (#1838702)
41b2f6
41b2f6
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.14.0-4
41b2f6
- Rebuilt for Python 3.9
41b2f6
41b2f6
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 1.14.0-3
41b2f6
- Bootstrap for Python 3.9
41b2f6
41b2f6
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-2
41b2f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
41b2f6
41b2f6
* Fri Jan 17 2020 Miro Hrončok <mhroncok@redhat.com> - 1.14.0-1
41b2f6
- Update to 1.14.0 (#1768982) for Python 3.9 support (#1788494)
41b2f6
- Drop old obsoletes for platform-python-six
41b2f6
41b2f6
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0-7
41b2f6
- Rebuilt for Python 3.8.0rc1 (#1748018)
41b2f6
41b2f6
* Mon Aug 26 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0-6
41b2f6
- Reduce Python 2 build dependencies
41b2f6
41b2f6
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0-5
41b2f6
- Rebuilt for Python 3.8
41b2f6
41b2f6
* Wed Aug 14 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0-4
41b2f6
- Bootstrap for Python 3.8
41b2f6
41b2f6
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-2
41b2f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
41b2f6
41b2f6
* Wed Feb 13 2019 Yatin Karel <ykarel@redhat.com> - 1.12.0-1
41b2f6
- Update to 1.12.0
41b2f6
41b2f6
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-7
41b2f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
41b2f6
41b2f6
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-6
41b2f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
41b2f6
41b2f6
* Sat Jun 16 2018 Miro Hrončok <mhroncok@redhat.com> - 1.11.0-5
41b2f6
- Rebuilt for Python 3.7
41b2f6
41b2f6
* Wed Jun 13 2018 Miro Hrončok <mhroncok@redhat.com> - 1.11.0-4
41b2f6
- Bootstrap for Python 3.7
41b2f6
41b2f6
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-3
41b2f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
41b2f6
41b2f6
* Wed Nov 15 2017 Lumír Balhar <lbalhar@redhat.com> - 1.11.0-2
41b2f6
- Removed and obsoleted the platform-python subpackage
41b2f6
41b2f6
* Tue Sep 19 2017 Charalampos Stratakis <cstratak@redhat.com> - 1.11.0-1
41b2f6
- Update to 1.11.0
41b2f6
41b2f6
* Thu Aug 10 2017 Tomas Orsava <torsava@redhat.com> - 1.10.0-11
41b2f6
- Added the platform-python subpackage
41b2f6
41b2f6
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-10
41b2f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
41b2f6
41b2f6
* Mon Jul 03 2017 Petr Viktorin <pviktori@redhat.com> - 1.10.0-9
41b2f6
- Fix unversioned Python BuildRequires
41b2f6
41b2f6
* Mon Feb 13 2017 Charalampos Stratakis <cstratak@redhat.com> - 1.10.0-8
41b2f6
- Rebuild as wheel
41b2f6
41b2f6
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-7
41b2f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
41b2f6
41b2f6
* Tue Dec 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.10.0-6
41b2f6
- Enable tests
41b2f6
41b2f6
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.10.0-5
41b2f6
- Rebuild for Python 3.6
41b2f6
- Disable python3 tests
41b2f6
41b2f6
* Tue Aug 09 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.10.0-4
41b2f6
- Modernize spec more
41b2f6
- Depend on system-python(abi)
41b2f6
- Cleanups
41b2f6
41b2f6
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-3
41b2f6
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
41b2f6
41b2f6
* Wed Feb 3 2016 Orion Poplawski <orion@cora.nwra.com> - 1.10.0-2
41b2f6
- Modernize spec
41b2f6
- Fix python3 package file ownership
41b2f6
41b2f6
* Fri Nov 13 2015 Slavek Kabrda <bkabrda@redhat.com> - 1.10.0-1
41b2f6
- Update to 1.10.0
41b2f6
41b2f6
* Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 1.9.0-4
41b2f6
- Rebuilt for Python3.5 rebuild
41b2f6
41b2f6
* Mon Jul 13 2015 Slavek Kabrda <bkabrda@redhat.com> - 1.9.0-3
41b2f6
- Added python2-six provide to python-six
41b2f6
41b2f6
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-2
41b2f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
41b2f6
41b2f6
* Mon Feb 23 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 1.9.0-1
41b2f6
- Upstream 1.9.0
41b2f6
- Packaging cleanups
41b2f6
41b2f6
* Fri Nov 14 2014 Slavek Kabrda <bkabrda@redhat.com> - 1.8.0-1
41b2f6
- upgrade to 1.8.0 (rhbz#1105861)
41b2f6
41b2f6
* Sun Aug  3 2014 Tom Callaway <spot@fedoraproject.org> - 1.7.3-2
41b2f6
- fix license handling
41b2f6
41b2f6
* Thu Jul 31 2014 Pádraig Brady <pbrady@redhat.com> - 1.7.3-1
41b2f6
- Latest upstream
41b2f6
41b2f6
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-3
41b2f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
41b2f6
41b2f6
* Thu May 08 2014 Orion Poplawski <orion@cora.nwra.com> - 1.6.1-2
41b2f6
- Rebuild for Python 3.4
41b2f6
41b2f6
* Tue Apr 29 2014 Matthias Runge <mrugne@redhat.com> - 1.6.1-1
41b2f6
- upgrade to 1.6.1 (rhbz#1076578)
41b2f6
41b2f6
* Fri Mar 07 2014 Matthias Runge <mrunge@redhat.com> - 1.5.2-1
41b2f6
- upgrade to 1.5.2 (rhbz#1048819)
41b2f6
41b2f6
* Mon Sep 16 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.4.1-1
41b2f6
- 1.4.1
41b2f6
41b2f6
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-2
41b2f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
41b2f6
41b2f6
* Thu Mar 21 2013 David Malcolm <dmalcolm@redhat.com> - 1.3.0-1
41b2f6
- 1.3.0
41b2f6
41b2f6
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
41b2f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
41b2f6
41b2f6
* Wed Aug 29 2012 David Malcolm <dmalcolm@redhat.com> - 1.2.0-1
41b2f6
- 1.2.0 (rhbz#852658)
41b2f6
- add %%check section
41b2f6
41b2f6
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 1.1.0-4
41b2f6
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
41b2f6
41b2f6
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
41b2f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
41b2f6
41b2f6
* Fri Jun 22 2012 Ralph Bean <rbean@redhat.com> - 1.1.0-2
41b2f6
- Conditionalized python3-six, allowing an el6 build.
41b2f6
41b2f6
* Tue Feb  7 2012 David Malcolm <dmalcolm@redhat.com> - 1.1.0-1
41b2f6
- 1.1.0
41b2f6
41b2f6
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
41b2f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
41b2f6
41b2f6
* Thu Mar 24 2011 David Malcolm <dmalcolm@redhat.com> - 1.0.0-1
41b2f6
- initial packaging
41b2f6
41b2f6