From 780825c8984b8c1c7cd150f21f06c144e38b458c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 20 Sep 2019 23:50:33 +0200 Subject: [PATCH] Subpackage python2-zope-exceptions has been removed --- python-zope-exceptions.spec | 53 ++++--------------------------------- 1 file changed, 5 insertions(+), 48 deletions(-) diff --git a/python-zope-exceptions.spec b/python-zope-exceptions.spec index 4e6adc2..dd768a6 100644 --- a/python-zope-exceptions.spec +++ b/python-zope-exceptions.spec @@ -1,13 +1,9 @@ %global modname zope.exceptions -%if 0%{?fedora} || 0%{?rhel} >= 8 -%global with_python3 1 -%endif - Summary: Zope Exceptions Name: python-zope-exceptions Version: 4.0.8 -Release: 14%{?dist} +Release: 15%{?dist} Source0: http://pypi.python.org/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz License: ZPLv2.1 BuildArch: noarch @@ -17,27 +13,6 @@ URL: http://pypi.python.org/pypi/zope.exceptions This package contains exception interfaces and implementations which are so general purpose that they don't belong in Zope application-specific packages. -%package -n python2-zope-exceptions -Summary: Zope Exceptions -%{?python_provide:%python_provide python2-zope-exceptions} - -BuildRequires: python2-devel -BuildRequires: python2-setuptools - -%if 0%{?rhel} && 0%{?rhel} <= 6 -BuildRequires: python-zope-interface4 -Requires: python-zope-interface4 -%else -BuildRequires: python2-zope-interface -Requires: python2-zope-interface -%endif - - -%description -n python2-zope-exceptions -This package contains exception interfaces and implementations which are so -general purpose that they don't belong in Zope application-specific packages. - -%if 0%{?with_python3} %package -n python3-zope-exceptions Summary: Zope Exceptions %{?python_provide:%python_provide python3-zope-exceptions} @@ -51,7 +26,6 @@ Requires: python3-zope-interface %description -n python3-zope-exceptions This package contains exception interfaces and implementations which are so general purpose that they don't belong in Zope application-specific packages. -%endif %prep %setup -q -n %{modname}-%{version} @@ -59,36 +33,16 @@ general purpose that they don't belong in Zope application-specific packages. rm -rf %{modname}.egg-info %build -%{py2_build} -%if 0%{?with_python3} %{py3_build} -%endif %install -%{py2_install} -%if 0%{?with_python3} %{py3_install} -%endif # As of python-zope-exceptions-4.0.6, the tests require # python-zope-testrunner which has not yet been packaged. #%%check -#%%{__python2} setup.py test -# -#%%if 0%%{?with_python3} #%%{__python3} setup.py test -#%%endif -%files -n python2-zope-exceptions -%doc LICENSE.txt CHANGES.rst README.rst COPYRIGHT.txt -%{python2_sitelib}/zope/exceptions/ -# Co-own %%{python2_sitelib}/zope/ -%dir %{python2_sitelib}/zope/ -%exclude %{python2_sitelib}/zope/exceptions/tests/ -%{python2_sitelib}/%{modname}-*.egg-info -%{python2_sitelib}/%{modname}-*-nspkg.pth - -%if 0%{?with_python3} %files -n python3-zope-exceptions %doc LICENSE.txt CHANGES.rst README.rst COPYRIGHT.txt %{python3_sitelib}/zope/exceptions/ @@ -97,9 +51,12 @@ rm -rf %{modname}.egg-info %exclude %{python3_sitelib}/zope/exceptions/tests/ %{python3_sitelib}/%{modname}-*.egg-info %{python3_sitelib}/%{modname}-*-nspkg.pth -%endif %changelog +* Fri Sep 20 2019 Miro Hrončok - 4.0.8-15 +- Subpackage python2-zope-exceptions has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Fri Aug 16 2019 Miro Hrončok - 4.0.8-14 - Rebuilt for Python 3.8