Blame SPECS/python-six.spec

72321f
%{?scl:%scl_package python-%{modname}}
72321f
%{!?scl:%global pkg_name %{name}}
72321f
%global python3_pkgversion %{nil}
72321f
72321f
%global modname six
72321f
72321f
# SCL: Permanently disabled duo to missing dependencies
72321f
%bcond_with tests
72321f
72321f
%global python_wheelname %{modname}-%{version}-py2.py3-none-any.whl
72321f
72321f
Name:           %{?scl_prefix}python-%{modname}
72321f
Version:        1.12.0
72321f
Release:        10%{?dist}
72321f
Summary:        Python 2 and 3 compatibility utilities
72321f
72321f
License:        MIT
72321f
URL:            https://pypi.python.org/pypi/six
72321f
Source0:        https://files.pythonhosted.org/packages/source/%(n=%{modname}; echo ${n:0:1})/%{modname}/%{modname}-%{version}.tar.gz
72321f
72321f
BuildArch:      noarch
72321f
72321f
%{?scl:Requires: %{scl}-runtime}
72321f
%{?scl:BuildRequires: %{scl}-runtime}
72321f
BuildRequires:  %{?scl_prefix}python%{python3_pkgversion}-devel
72321f
BuildRequires:  %{?scl_prefix}python%{python3_pkgversion}-setuptools
72321f
BuildRequires:  %{?scl_prefix}python%{python3_pkgversion}-pip
72321f
BuildRequires:  %{?scl_prefix}python%{python3_pkgversion}-wheel
72321f
BuildRequires:  %{?scl_prefix}python%{python3_pkgversion}-rpm-macros
72321f
72321f
%if %{with tests}
72321f
BuildRequires:  %{?scl_prefix}python%{python3_pkgversion}-pytest
72321f
BuildRequires:  %{?scl_prefix}python%{python3_pkgversion}-tkinter
72321f
%endif
72321f
72321f
72321f
%global _description \
72321f
%{pkg_name} provides simple utilities for wrapping over differences between\
72321f
Python 2 and Python 3.
72321f
72321f
%description %{_description}
72321f
72321f
72321f
%prep
72321f
%{?scl:scl enable %{scl} - << \EOF}
72321f
set -ex
72321f
%autosetup -n %{modname}-%{version}
72321f
%{?scl:EOF}
72321f
72321f
72321f
%build
72321f
%{?scl:scl enable %{scl} - << \EOF}
72321f
set -ex
72321f
%py3_build_wheel
72321f
%{?scl:EOF}
72321f
72321f
72321f
%install
72321f
%{?scl:scl enable %{scl} - << \EOF}
72321f
set -ex
72321f
%py3_install_wheel %{python_wheelname}
72321f
%{?scl:EOF}
72321f
72321f
72321f
%if %{with tests}
72321f
%check
72321f
%{?scl:scl enable %{scl} - << \EOF}
72321f
set -ex
72321f
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -rfsxX test_six.py
72321f
%{?scl:EOF}
72321f
%endif
72321f
72321f
72321f
%files
72321f
%license LICENSE
72321f
%doc README.rst documentation/index.rst
72321f
%{python3_sitelib}/%{modname}-*.dist-info/
72321f
%{python3_sitelib}/%{modname}.py
72321f
%{python3_sitelib}/__pycache__/%{modname}.*
72321f
72321f
72321f
%changelog
72321f
* Mon Feb 03 2020 Tomas Orsava <torsava@redhat.com> - 1.12.0-10
72321f
- Import from the python38 module and modified for rh-python38 RHSCL
72321f
- Resolves: rhbz#1671025
72321f
72321f
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 1.12.0-9
72321f
- Exclude unsupported i686 arch
72321f
72321f
* Tue Nov 19 2019 Lumír Balhar <lbalhar@redhat.com> - 1.12.0-8
72321f
- Adjusted for Python 3.8 module in RHEL 8
72321f
72321f
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0-7
72321f
- Rebuilt for Python 3.8.0rc1 (#1748018)
72321f
72321f
* Mon Aug 26 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0-6
72321f
- Reduce Python 2 build dependencies
72321f
72321f
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0-5
72321f
- Rebuilt for Python 3.8
72321f
72321f
* Wed Aug 14 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0-4
72321f
- Bootstrap for Python 3.8
72321f
72321f
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-2
72321f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
72321f
72321f
* Wed Feb 13 2019 Yatin Karel <ykarel@redhat.com> - 1.12.0-1
72321f
- Update to 1.12.0
72321f
72321f
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-7
72321f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
72321f
72321f
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-6
72321f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
72321f
72321f
* Sat Jun 16 2018 Miro Hrončok <mhroncok@redhat.com> - 1.11.0-5
72321f
- Rebuilt for Python 3.7
72321f
72321f
* Wed Jun 13 2018 Miro Hrončok <mhroncok@redhat.com> - 1.11.0-4
72321f
- Bootstrap for Python 3.7
72321f
72321f
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-3
72321f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
72321f
72321f
* Wed Nov 15 2017 Lumír Balhar <lbalhar@redhat.com> - 1.11.0-2
72321f
- Removed and obsoleted the platform-python subpackage
72321f
72321f
* Tue Sep 19 2017 Charalampos Stratakis <cstratak@redhat.com> - 1.11.0-1
72321f
- Update to 1.11.0
72321f
72321f
* Thu Aug 10 2017 Tomas Orsava <torsava@redhat.com> - 1.10.0-11
72321f
- Added the platform-python subpackage
72321f
72321f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-10
72321f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
72321f
72321f
* Mon Jul 03 2017 Petr Viktorin <pviktori@redhat.com> - 1.10.0-9
72321f
- Fix unversioned Python BuildRequires
72321f
72321f
* Mon Feb 13 2017 Charalampos Stratakis <cstratak@redhat.com> - 1.10.0-8
72321f
- Rebuild as wheel
72321f
72321f
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-7
72321f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
72321f
72321f
* Tue Dec 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.10.0-6
72321f
- Enable tests
72321f
72321f
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.10.0-5
72321f
- Rebuild for Python 3.6
72321f
- Disable python3 tests
72321f
72321f
* Tue Aug 09 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.10.0-4
72321f
- Modernize spec more
72321f
- Depend on system-python(abi)
72321f
- Cleanups
72321f
72321f
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-3
72321f
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
72321f
72321f
* Wed Feb 3 2016 Orion Poplawski <orion@cora.nwra.com> - 1.10.0-2
72321f
- Modernize spec
72321f
- Fix python3 package file ownership
72321f
72321f
* Fri Nov 13 2015 Slavek Kabrda <bkabrda@redhat.com> - 1.10.0-1
72321f
- Update to 1.10.0
72321f
72321f
* Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 1.9.0-4
72321f
- Rebuilt for Python3.5 rebuild
72321f
72321f
* Mon Jul 13 2015 Slavek Kabrda <bkabrda@redhat.com> - 1.9.0-3
72321f
- Added python2-six provide to python-six
72321f
72321f
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-2
72321f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
72321f
72321f
* Mon Feb 23 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 1.9.0-1
72321f
- Upstream 1.9.0
72321f
- Packaging cleanups
72321f
72321f
* Fri Nov 14 2014 Slavek Kabrda <bkabrda@redhat.com> - 1.8.0-1
72321f
- upgrade to 1.8.0 (rhbz#1105861)
72321f
72321f
* Sun Aug  3 2014 Tom Callaway <spot@fedoraproject.org> - 1.7.3-2
72321f
- fix license handling
72321f
72321f
* Thu Jul 31 2014 Pádraig Brady <pbrady@redhat.com> - 1.7.3-1
72321f
- Latest upstream
72321f
72321f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-3
72321f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
72321f
72321f
* Thu May 08 2014 Orion Poplawski <orion@cora.nwra.com> - 1.6.1-2
72321f
- Rebuild for Python 3.4
72321f
72321f
* Tue Apr 29 2014 Matthias Runge <mrugne@redhat.com> - 1.6.1-1
72321f
- upgrade to 1.6.1 (rhbz#1076578)
72321f
72321f
* Fri Mar 07 2014 Matthias Runge <mrunge@redhat.com> - 1.5.2-1
72321f
- upgrade to 1.5.2 (rhbz#1048819)
72321f
72321f
* Mon Sep 16 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.4.1-1
72321f
- 1.4.1
72321f
72321f
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-2
72321f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
72321f
72321f
* Thu Mar 21 2013 David Malcolm <dmalcolm@redhat.com> - 1.3.0-1
72321f
- 1.3.0
72321f
72321f
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
72321f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
72321f
72321f
* Wed Aug 29 2012 David Malcolm <dmalcolm@redhat.com> - 1.2.0-1
72321f
- 1.2.0 (rhbz#852658)
72321f
- add %%check section
72321f
72321f
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 1.1.0-4
72321f
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
72321f
72321f
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
72321f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
72321f
72321f
* Fri Jun 22 2012 Ralph Bean <rbean@redhat.com> - 1.1.0-2
72321f
- Conditionalized python3-six, allowing an el6 build.
72321f
72321f
* Tue Feb  7 2012 David Malcolm <dmalcolm@redhat.com> - 1.1.0-1
72321f
- 1.1.0
72321f
72321f
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
72321f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
72321f
72321f
* Thu Mar 24 2011 David Malcolm <dmalcolm@redhat.com> - 1.0.0-1
72321f
- initial packaging
72321f