|
|
|
@ -3,19 +3,18 @@
|
|
|
|
|
# tests are enabled by default, but on Fedora 32+, Python 2 tests are skipped
|
|
|
|
|
%bcond_without tests
|
|
|
|
|
|
|
|
|
|
# python2 is enabled by default, Fedora 32+ exception is anticipated
|
|
|
|
|
%bcond_with python2
|
|
|
|
|
|
|
|
|
|
%global python_wheelname %{modname}-%{version}-py2.py3-none-any.whl
|
|
|
|
|
|
|
|
|
|
Name: python3x-%{modname}
|
|
|
|
|
Version: 1.12.0
|
|
|
|
|
Release: 10%{?dist}
|
|
|
|
|
Version: 1.15.0
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Summary: Python 2 and 3 compatibility utilities
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://pypi.python.org/pypi/six
|
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/%(n=%{modname}; echo ${n:0:1})/%{modname}/%{modname}-%{version}.tar.gz
|
|
|
|
|
Source0: %{pypi_source %{modname}}
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# Exclude i686 arch. Due to a modularity issue it's being added to the
|
|
|
|
@ -24,7 +23,7 @@ BuildArch: noarch
|
|
|
|
|
ExcludeArch: i686
|
|
|
|
|
|
|
|
|
|
%global _description \
|
|
|
|
|
python-%{modname} provides simple utilities for wrapping over differences between\
|
|
|
|
|
python-%%{modname} provides simple utilities for wrapping over differences between\
|
|
|
|
|
Python 2 and Python 3.
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
@ -51,10 +50,10 @@ Python 2 version.
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pip
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-wheel
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
|
@ -87,9 +86,9 @@ Python 3 version.
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
%check
|
|
|
|
|
%if %{with python2} && 0%{?fedora} < 32
|
|
|
|
|
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-2 -rfsxX test_six.py
|
|
|
|
|
PYTHONPATH=%{buildroot}%{python2_sitelib} pytest-2 -rfsxX test_six.py
|
|
|
|
|
%endif
|
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -rfsxX test_six.py
|
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -rfsxX test_six.py
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -110,14 +109,28 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -rfsxX test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Nov 10 2020 Tomas Orsava <torsava@redhat.com> - 1.12.0-10
|
|
|
|
|
- Rebuild from a new component name
|
|
|
|
|
* Tue Jan 12 2021 Tomas Orsava <torsava@redhat.com> - 1.15.0-3
|
|
|
|
|
- Convert from Fedora to the python39 module in RHEL8
|
|
|
|
|
- Resolves: rhbz#1877430
|
|
|
|
|
|
|
|
|
|
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 1.12.0-9
|
|
|
|
|
- Exclude unsupported i686 arch
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Nov 19 2019 Lumír Balhar <lbalhar@redhat.com> - 1.12.0-8
|
|
|
|
|
- Adjusted for Python 3.8 module in RHEL 8
|
|
|
|
|
* Mon Jun 01 2020 Charalampos Stratakis <cstratak@redhat.com> - 1.15.0-1
|
|
|
|
|
- Update to 1.15.0 (#1838702)
|
|
|
|
|
|
|
|
|
|
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.14.0-4
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 1.14.0-3
|
|
|
|
|
- Bootstrap for Python 3.9
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 17 2020 Miro Hrončok <mhroncok@redhat.com> - 1.14.0-1
|
|
|
|
|
- Update to 1.14.0 (#1768982) for Python 3.9 support (#1788494)
|
|
|
|
|
- Drop old obsoletes for platform-python-six
|
|
|
|
|
|
|
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0-7
|
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|