churchyard / rpms / python-six

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