Blame SPECS/python3x-six.spec

94321e
%global modname six
94321e
94321e
# tests are enabled by default, but on Fedora 32+, Python 2 tests are skipped
94321e
%bcond_without tests
94321e
94321e
%bcond_with python2
94321e
94321e
%global python_wheelname %{modname}-%{version}-py2.py3-none-any.whl
94321e
94321e
Name:           python3x-%{modname}
94321e
Version:        1.15.0
94321e
Release:        3%{?dist}
94321e
Summary:        Python 2 and 3 compatibility utilities
94321e
94321e
License:        MIT
94321e
URL:            https://pypi.python.org/pypi/six
94321e
Source0:        %{pypi_source %{modname}}
94321e
94321e
BuildArch:      noarch
94321e
# Exclude i686 arch. Due to a modularity issue it's being added to the
94321e
# x86_64 compose of CRB, but we don't want to ship it at all.
94321e
# See: https://projects.engineering.redhat.com/browse/RCM-72605
94321e
ExcludeArch:    i686
94321e
94321e
%global _description \
94321e
python-%%{modname} provides simple utilities for wrapping over differences between\
94321e
Python 2 and Python 3.
94321e
94321e
%description %{_description}
94321e
94321e
%if %{with python2}
94321e
%package -n python2-%{modname}
94321e
Summary:        %{summary}
94321e
%{?python_provide:%python_provide python2-%{modname}}
94321e
BuildRequires:  python2-devel
94321e
BuildRequires:  python2-setuptools
94321e
94321e
%if %{with tests} && 0%{?fedora} < 32
94321e
BuildRequires:  python2-pytest
94321e
BuildRequires:  python2-tkinter
94321e
%endif
94321e
94321e
%description -n python2-%{modname} %{_description}
94321e
Python 2 version.
94321e
94321e
%endif
94321e
94321e
94321e
%package -n python%{python3_pkgversion}-%{modname}
94321e
Summary:        %{summary}
94321e
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
94321e
BuildRequires:  python%{python3_pkgversion}-devel
94321e
BuildRequires:  python%{python3_pkgversion}-rpm-macros
94321e
BuildRequires:  python%{python3_pkgversion}-setuptools
94321e
BuildRequires:  python%{python3_pkgversion}-pip
94321e
BuildRequires:  python%{python3_pkgversion}-wheel
94321e
94321e
%if %{with tests}
94321e
BuildRequires:  python%{python3_pkgversion}-pytest
94321e
BuildRequires:  python%{python3_pkgversion}-tkinter
94321e
%endif
94321e
94321e
%description -n python%{python3_pkgversion}-%{modname} %{_description}
94321e
Python 3 version.
94321e
94321e
94321e
%prep
94321e
%autosetup -n %{modname}-%{version}
94321e
94321e
94321e
%build
94321e
%if %{with python2}
94321e
%py2_build
94321e
%endif
94321e
94321e
%py3_build_wheel
94321e
94321e
94321e
%install
94321e
%if %{with python2}
94321e
%py2_install
94321e
%endif
94321e
94321e
%py3_install_wheel %{python_wheelname}
94321e
94321e
%if %{with tests}
94321e
%check
94321e
%if %{with python2} && 0%{?fedora} < 32
94321e
PYTHONPATH=%{buildroot}%{python2_sitelib} pytest-2 -rfsxX test_six.py
94321e
%endif
94321e
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -rfsxX test_six.py
94321e
%endif
94321e
94321e
94321e
%if %{with python2}
94321e
%files -n python2-%{modname}
94321e
%license LICENSE
94321e
%doc README.rst documentation/index.rst
94321e
%{python2_sitelib}/%{modname}-*.egg-info/
94321e
%{python2_sitelib}/%{modname}.py*
94321e
%endif
94321e
94321e
%files -n python%{python3_pkgversion}-%{modname}
94321e
%license LICENSE
94321e
%doc README.rst documentation/index.rst
94321e
%{python3_sitelib}/%{modname}-*.dist-info/
94321e
%{python3_sitelib}/%{modname}.py
94321e
%{python3_sitelib}/__pycache__/%{modname}.*
94321e
94321e
94321e
%changelog
94321e
* Tue Jan 12 2021 Tomas Orsava <torsava@redhat.com> - 1.15.0-3
94321e
- Convert from Fedora to the python39 module in RHEL8
94321e
- Resolves: rhbz#1877430
94321e
94321e
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.0-2
94321e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
94321e
94321e
* Mon Jun 01 2020 Charalampos Stratakis <cstratak@redhat.com> - 1.15.0-1
94321e
- Update to 1.15.0 (#1838702)
94321e
94321e
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.14.0-4
94321e
- Rebuilt for Python 3.9
94321e
94321e
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 1.14.0-3
94321e
- Bootstrap for Python 3.9
94321e
94321e
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-2
94321e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
94321e
94321e
* Fri Jan 17 2020 Miro Hrončok <mhroncok@redhat.com> - 1.14.0-1
94321e
- Update to 1.14.0 (#1768982) for Python 3.9 support (#1788494)
94321e
- Drop old obsoletes for platform-python-six
94321e
94321e
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0-7
94321e
- Rebuilt for Python 3.8.0rc1 (#1748018)
94321e
94321e
* Mon Aug 26 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0-6
94321e
- Reduce Python 2 build dependencies
94321e
94321e
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0-5
94321e
- Rebuilt for Python 3.8
94321e
94321e
* Wed Aug 14 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0-4
94321e
- Bootstrap for Python 3.8
94321e
94321e
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-2
94321e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
94321e
94321e
* Wed Feb 13 2019 Yatin Karel <ykarel@redhat.com> - 1.12.0-1
94321e
- Update to 1.12.0
94321e
94321e
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-7
94321e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
94321e
94321e
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-6
94321e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
94321e
94321e
* Sat Jun 16 2018 Miro Hrončok <mhroncok@redhat.com> - 1.11.0-5
94321e
- Rebuilt for Python 3.7
94321e
94321e
* Wed Jun 13 2018 Miro Hrončok <mhroncok@redhat.com> - 1.11.0-4
94321e
- Bootstrap for Python 3.7
94321e
94321e
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-3
94321e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
94321e
94321e
* Wed Nov 15 2017 Lumír Balhar <lbalhar@redhat.com> - 1.11.0-2
94321e
- Removed and obsoleted the platform-python subpackage
94321e
94321e
* Tue Sep 19 2017 Charalampos Stratakis <cstratak@redhat.com> - 1.11.0-1
94321e
- Update to 1.11.0
94321e
94321e
* Thu Aug 10 2017 Tomas Orsava <torsava@redhat.com> - 1.10.0-11
94321e
- Added the platform-python subpackage
94321e
94321e
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-10
94321e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
94321e
94321e
* Mon Jul 03 2017 Petr Viktorin <pviktori@redhat.com> - 1.10.0-9
94321e
- Fix unversioned Python BuildRequires
94321e
94321e
* Mon Feb 13 2017 Charalampos Stratakis <cstratak@redhat.com> - 1.10.0-8
94321e
- Rebuild as wheel
94321e
94321e
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-7
94321e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
94321e
94321e
* Tue Dec 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.10.0-6
94321e
- Enable tests
94321e
94321e
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.10.0-5
94321e
- Rebuild for Python 3.6
94321e
- Disable python3 tests
94321e
94321e
* Tue Aug 09 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.10.0-4
94321e
- Modernize spec more
94321e
- Depend on system-python(abi)
94321e
- Cleanups
94321e
94321e
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-3
94321e
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
94321e
94321e
* Wed Feb 3 2016 Orion Poplawski <orion@cora.nwra.com> - 1.10.0-2
94321e
- Modernize spec
94321e
- Fix python3 package file ownership
94321e
94321e
* Fri Nov 13 2015 Slavek Kabrda <bkabrda@redhat.com> - 1.10.0-1
94321e
- Update to 1.10.0
94321e
94321e
* Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 1.9.0-4
94321e
- Rebuilt for Python3.5 rebuild
94321e
94321e
* Mon Jul 13 2015 Slavek Kabrda <bkabrda@redhat.com> - 1.9.0-3
94321e
- Added python2-six provide to python-six
94321e
94321e
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-2
94321e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
94321e
94321e
* Mon Feb 23 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 1.9.0-1
94321e
- Upstream 1.9.0
94321e
- Packaging cleanups
94321e
94321e
* Fri Nov 14 2014 Slavek Kabrda <bkabrda@redhat.com> - 1.8.0-1
94321e
- upgrade to 1.8.0 (rhbz#1105861)
94321e
94321e
* Sun Aug  3 2014 Tom Callaway <spot@fedoraproject.org> - 1.7.3-2
94321e
- fix license handling
94321e
94321e
* Thu Jul 31 2014 Pádraig Brady <pbrady@redhat.com> - 1.7.3-1
94321e
- Latest upstream
94321e
94321e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-3
94321e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
94321e
94321e
* Thu May 08 2014 Orion Poplawski <orion@cora.nwra.com> - 1.6.1-2
94321e
- Rebuild for Python 3.4
94321e
94321e
* Tue Apr 29 2014 Matthias Runge <mrugne@redhat.com> - 1.6.1-1
94321e
- upgrade to 1.6.1 (rhbz#1076578)
94321e
94321e
* Fri Mar 07 2014 Matthias Runge <mrunge@redhat.com> - 1.5.2-1
94321e
- upgrade to 1.5.2 (rhbz#1048819)
94321e
94321e
* Mon Sep 16 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.4.1-1
94321e
- 1.4.1
94321e
94321e
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-2
94321e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
94321e
94321e
* Thu Mar 21 2013 David Malcolm <dmalcolm@redhat.com> - 1.3.0-1
94321e
- 1.3.0
94321e
94321e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
94321e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
94321e
94321e
* Wed Aug 29 2012 David Malcolm <dmalcolm@redhat.com> - 1.2.0-1
94321e
- 1.2.0 (rhbz#852658)
94321e
- add %%check section
94321e
94321e
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 1.1.0-4
94321e
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
94321e
94321e
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
94321e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
94321e
94321e
* Fri Jun 22 2012 Ralph Bean <rbean@redhat.com> - 1.1.0-2
94321e
- Conditionalized python3-six, allowing an el6 build.
94321e
94321e
* Tue Feb  7 2012 David Malcolm <dmalcolm@redhat.com> - 1.1.0-1
94321e
- 1.1.0
94321e
94321e
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
94321e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
94321e
94321e
* Thu Mar 24 2011 David Malcolm <dmalcolm@redhat.com> - 1.0.0-1
94321e
- initial packaging
94321e
94321e