Compare commits

...

No commits in common. "c8-stream-2.7" and "c8-stream-3.8" have entirely different histories.

3 changed files with 63 additions and 67 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/six-1.11.0.tar.gz SOURCES/six-1.12.0.tar.gz

View File

@ -1 +1 @@
3647372a0e104e7b53bd477762392024e1083ac0 SOURCES/six-1.11.0.tar.gz 1957b44942be21822414f4dde936e6c40b687565 SOURCES/six-1.12.0.tar.gz

View File

@ -1,17 +1,16 @@
%global modname six %global modname six
%global build_wheel 1
# tests are enabled by default, but on Fedora 32+, Python 2 tests are skipped
%bcond_without tests %bcond_without tests
%bcond_without python2 # python2 is enabled by default, Fedora 32+ exception is anticipated
%bcond_without python3 %bcond_with python2
%global python2_wheelname %{modname}-%{version}-py2.py3-none-any.whl %global python_wheelname %{modname}-%{version}-py2.py3-none-any.whl
%global python3_wheelname %python2_wheelname
Name: python-%{modname} Name: python-%{modname}
Version: 1.11.0 Version: 1.12.0
Release: 5%{?dist} Release: 9%{?dist}
Summary: Python 2 and 3 compatibility utilities Summary: Python 2 and 3 compatibility utilities
License: MIT License: MIT
@ -19,6 +18,10 @@ 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: https://files.pythonhosted.org/packages/source/%(n=%{modname}; echo ${n:0:1})/%{modname}/%{modname}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
# Exclude i686 arch. Due to a modularity issue it's being added to the
# x86_64 compose of CRB, but we don't want to ship it at all.
# See: https://projects.engineering.redhat.com/browse/RCM-72605
ExcludeArch: i686
%global _description \ %global _description \
%%{name} provides simple utilities for wrapping over differences between\ %%{name} provides simple utilities for wrapping over differences between\
@ -33,45 +36,34 @@ Summary: %{summary}
BuildRequires: python2-devel BuildRequires: python2-devel
BuildRequires: python2-setuptools BuildRequires: python2-setuptools
%if %{with tests} %if %{with tests} && 0%{?fedora} < 32
BuildRequires: python2-pytest BuildRequires: python2-pytest
BuildRequires: python2-tkinter BuildRequires: python2-tkinter
%endif %endif
%if 0%{?build_wheel}
BuildRequires: python2-pip
BuildRequires: python2-wheel
%endif
%description -n python2-%{modname} %{_description} %description -n python2-%{modname} %{_description}
Python 2 version. Python 2 version.
%endif %endif
%if %{with python3} %package -n python%{python3_pkgversion}-%{modname}
%package -n python3-%{modname}
Summary: %{summary} Summary: %{summary}
%{?python_provide:%python_provide python3-%{modname}} %{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
Obsoletes: platform-python-%{modname} < %{version}-%{release} BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python3-devel BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python3-setuptools
%if %{with tests}
BuildRequires: python3-pytest
BuildRequires: python3-tkinter
%endif
%if 0%{?build_wheel}
BuildRequires: python%{python3_pkgversion}-pip BuildRequires: python%{python3_pkgversion}-pip
BuildRequires: python%{python3_pkgversion}-wheel BuildRequires: python%{python3_pkgversion}-wheel
BuildRequires: python%{python3_pkgversion}-rpm-macros
%if %{with tests}
BuildRequires: python%{python3_pkgversion}-pytest
BuildRequires: python%{python3_pkgversion}-tkinter
%endif %endif
%description -n python3-%{modname} %{_description} %description -n python%{python3_pkgversion}-%{modname} %{_description}
Python 3 version. Python 3 version.
%endif
%prep %prep
%autosetup -n %{modname}-%{version} %autosetup -n %{modname}-%{version}
@ -79,48 +71,25 @@ Python 3 version.
%build %build
%if %{with python2} %if %{with python2}
%if 0%{?build_wheel}
%py2_build_wheel
%else
%py2_build %py2_build
%endif %endif
%endif
%if %{with python3}
%if 0%{?build_wheel}
%py3_build_wheel %py3_build_wheel
%else
%py3_build
%endif
%endif
%install %install
%if %{with python2} %if %{with python2}
%if 0%{?build_wheel}
%py2_install_wheel %{python2_wheelname}
%else
%py2_install %py2_install
%endif %endif
%endif
%if %{with python3}
%if 0%{?build_wheel}
%py3_install_wheel %{python3_wheelname}
%else
%py3_install
%endif
%endif
%py3_install_wheel %{python_wheelname}
%if %{with tests} %if %{with tests}
%check %check
%if %{with python2} %if %{with python2} && 0%{?fedora} < 32
py.test-2 -rfsxX test_six.py PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-2 -rfsxX test_six.py
%endif
%if %{with python3}
py.test-3 -rfsxX test_six.py
%endif %endif
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -rfsxX test_six.py
%endif %endif
@ -128,27 +97,54 @@ py.test-3 -rfsxX test_six.py
%files -n python2-%{modname} %files -n python2-%{modname}
%license LICENSE %license LICENSE
%doc README.rst documentation/index.rst %doc README.rst documentation/index.rst
%{python2_sitelib}/%{modname}-*.dist-info/ %{python2_sitelib}/%{modname}-*.egg-info/
%{python2_sitelib}/%{modname}.py* %{python2_sitelib}/%{modname}.py*
%endif %endif
%if %{with python3} %files -n python%{python3_pkgversion}-%{modname}
%files -n python3-%{modname}
%license LICENSE %license LICENSE
%doc README.rst documentation/index.rst %doc README.rst documentation/index.rst
%{python3_sitelib}/%{modname}-*.dist-info/ %{python3_sitelib}/%{modname}-*.dist-info/
%{python3_sitelib}/%{modname}.py %{python3_sitelib}/%{modname}.py
%{python3_sitelib}/__pycache__/%{modname}.* %{python3_sitelib}/__pycache__/%{modname}.*
%endif
%changelog %changelog
* Thu Apr 25 2019 Tomas Orsava <torsava@redhat.com> - 1.11.0-5 * Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 1.12.0-9
- Bumping due to problems with modular RPM upgrade path - Exclude unsupported i686 arch
- Resolves: rhbz#1695587
* Wed Jun 27 2018 Tomas Orsava <torsava@redhat.com> - 1.11.0-4 * Tue Nov 19 2019 Lumír Balhar <lbalhar@redhat.com> - 1.12.0-8
- Run tests only of the Python versions that are actually built - Adjusted for Python 3.8 module in RHEL 8
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0-7
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Mon Aug 26 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0-6
- Reduce Python 2 build dependencies
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0-5
- Rebuilt for Python 3.8
* Wed Aug 14 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0-4
- Bootstrap for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Wed Feb 13 2019 Yatin Karel <ykarel@redhat.com> - 1.12.0-1
- Update to 1.12.0
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Sat Jun 16 2018 Miro Hrončok <mhroncok@redhat.com> - 1.11.0-5
- Rebuilt for Python 3.7
* Wed Jun 13 2018 Miro Hrončok <mhroncok@redhat.com> - 1.11.0-4
- Bootstrap for Python 3.7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-3 * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild