|
|
|
@ -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 <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
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|