From 7c7644da8aff6960cc18c896702d969d9a5403f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 20 Sep 2019 12:01:49 +0200 Subject: [PATCH] Subpackage python2-zope-testing has been removed --- python-zope-testing.spec | 50 ++++------------------------------------ 1 file changed, 5 insertions(+), 45 deletions(-) diff --git a/python-zope-testing.spec b/python-zope-testing.spec index 7c4aa69..45a6d7f 100644 --- a/python-zope-testing.spec +++ b/python-zope-testing.spec @@ -1,16 +1,9 @@ -%if 0%{?rhel} && 0%{?rhel} <= 6 -%{!?__python2: %global __python2 /usr/bin/python2} -%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} -%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} -%endif - %global modname zope.testing -%bcond_without python3 Name: python-zope-testing Version: 4.6.1 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Zope Testing Framework License: ZPLv2.1 URL: https://pypi.io/project/%{modname} @@ -23,22 +16,6 @@ This package provides a number of testing frameworks. It includes a flexible test runner, and supports both doctest and unittest. -%package -n python2-zope-testing -Summary: Zope Testing Framework -%{?python_provide:%python_provide python2-zope-testing} - -BuildRequires: python2-devel -BuildRequires: python2-setuptools -BuildRequires: python2-zope-exceptions -BuildRequires: python2-zope-interface -Requires: python2-zope-exceptions -Requires: python2-zope-interface - -%description -n python2-zope-testing -This package provides a number of testing frameworks. It includes a -flexible test runner, and supports both doctest and unittest. - -%if %{with python3} %package -n python%{python3_pkgversion}-zope-testing Summary: Zope Testing Framework %{?python_provide:%python_provide python%{python3_pkgversion}-zope-testing} @@ -53,7 +30,6 @@ Requires: python%{python3_pkgversion}-zope-interface %description -n python%{python3_pkgversion}-zope-testing This package provides a number of testing frameworks. It includes a flexible test runner, and supports both doctest and unittest. -%endif %prep %setup -q -n %{modname}-%{version} @@ -61,44 +37,28 @@ flexible test runner, and supports both doctest and unittest. rm -rf %{modname}.egg-info %build -%{py2_build} -%if %{with python3} %{py3_build} -%endif %install -%{py2_install} -# __init__.py* are not needed since .pth file is used -rm -f %{buildroot}%{python2_sitelib}/zope/__init__.py* -%if %{with python3} %{py3_install} # __init__.py* are not needed since .pth file is used rm -f %{buildroot}%{python3_sitelib}/zope/__init__.py* -%endif %check -%{__python2} setup.py test -%if %{with python3} %{__python3} setup.py test -%endif -%files -n python2-zope-testing -%doc COPYRIGHT.txt LICENSE.txt CHANGES.rst README.rst src/zope/testing/*.txt -%{python2_sitelib}/zope/testing/ -%exclude %{python2_sitelib}/zope/testing/*.txt -%{python2_sitelib}/%{modname}-*.egg-info -%{python2_sitelib}/%{modname}-*-nspkg.pth - -%if %{with python3} %files -n python%{python3_pkgversion}-zope-testing %doc COPYRIGHT.txt LICENSE.txt CHANGES.rst README.rst src/zope/testing/*.txt %{python3_sitelib}/zope/testing/ %exclude %{python3_sitelib}/zope/testing/*.txt %{python3_sitelib}/%{modname}-*.egg-info %{python3_sitelib}/%{modname}-*-nspkg.pth -%endif %changelog +* Fri Sep 20 2019 Miro Hrončok - 4.6.1-11 +- Subpackage python2-zope-testing has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Fri Aug 16 2019 Miro Hrončok - 4.6.1-10 - Rebuilt for Python 3.8