Subpackage python2-zope-exceptions has been removed

epel10
Miro Hrončok 6 years ago
parent 61bbdad3a6
commit 780825c898

@ -1,13 +1,9 @@
%global modname zope.exceptions %global modname zope.exceptions
%if 0%{?fedora} || 0%{?rhel} >= 8
%global with_python3 1
%endif
Summary: Zope Exceptions Summary: Zope Exceptions
Name: python-zope-exceptions Name: python-zope-exceptions
Version: 4.0.8 Version: 4.0.8
Release: 14%{?dist} Release: 15%{?dist}
Source0: http://pypi.python.org/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz Source0: http://pypi.python.org/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz
License: ZPLv2.1 License: ZPLv2.1
BuildArch: noarch BuildArch: noarch
@ -17,27 +13,6 @@ URL: http://pypi.python.org/pypi/zope.exceptions
This package contains exception interfaces and implementations which are so This package contains exception interfaces and implementations which are so
general purpose that they don't belong in Zope application-specific packages. 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 %package -n python3-zope-exceptions
Summary: Zope Exceptions Summary: Zope Exceptions
%{?python_provide:%python_provide python3-zope-exceptions} %{?python_provide:%python_provide python3-zope-exceptions}
@ -51,7 +26,6 @@ Requires: python3-zope-interface
%description -n python3-zope-exceptions %description -n python3-zope-exceptions
This package contains exception interfaces and implementations which are so This package contains exception interfaces and implementations which are so
general purpose that they don't belong in Zope application-specific packages. general purpose that they don't belong in Zope application-specific packages.
%endif
%prep %prep
%setup -q -n %{modname}-%{version} %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 rm -rf %{modname}.egg-info
%build %build
%{py2_build}
%if 0%{?with_python3}
%{py3_build} %{py3_build}
%endif
%install %install
%{py2_install}
%if 0%{?with_python3}
%{py3_install} %{py3_install}
%endif
# As of python-zope-exceptions-4.0.6, the tests require # As of python-zope-exceptions-4.0.6, the tests require
# python-zope-testrunner which has not yet been packaged. # python-zope-testrunner which has not yet been packaged.
#%%check #%%check
#%%{__python2} setup.py test
#
#%%if 0%%{?with_python3}
#%%{__python3} setup.py test #%%{__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 %files -n python3-zope-exceptions
%doc LICENSE.txt CHANGES.rst README.rst COPYRIGHT.txt %doc LICENSE.txt CHANGES.rst README.rst COPYRIGHT.txt
%{python3_sitelib}/zope/exceptions/ %{python3_sitelib}/zope/exceptions/
@ -97,9 +51,12 @@ rm -rf %{modname}.egg-info
%exclude %{python3_sitelib}/zope/exceptions/tests/ %exclude %{python3_sitelib}/zope/exceptions/tests/
%{python3_sitelib}/%{modname}-*.egg-info %{python3_sitelib}/%{modname}-*.egg-info
%{python3_sitelib}/%{modname}-*-nspkg.pth %{python3_sitelib}/%{modname}-*-nspkg.pth
%endif
%changelog %changelog
* Fri Sep 20 2019 Miro Hrončok <mhroncok@redhat.com> - 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 <mhroncok@redhat.com> - 4.0.8-14 * Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 4.0.8-14
- Rebuilt for Python 3.8 - Rebuilt for Python 3.8

Loading…
Cancel
Save