|
|
|
@ -1,14 +1,14 @@
|
|
|
|
|
%global modname zope.exceptions
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} > 12 || 0%{?rhel} > 6
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
%global with_python3 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Summary: Zope Exceptions
|
|
|
|
|
Name: python-zope-exceptions
|
|
|
|
|
Version: 4.0.5
|
|
|
|
|
Version: 4.0.6
|
|
|
|
|
Release: 1%{?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}.zip
|
|
|
|
|
License: ZPLv2.1
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
BuildArch: noarch
|
|
|
|
@ -74,18 +74,20 @@ popd
|
|
|
|
|
|
|
|
|
|
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{__python} setup.py test
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
popd
|
|
|
|
|
%endif
|
|
|
|
|
# As of python-zope-exceptions-4.0.6, the tests require
|
|
|
|
|
# python-zope-testrunner which has not yet been packaged.
|
|
|
|
|
#%%check
|
|
|
|
|
#%%{__python} setup.py test
|
|
|
|
|
#
|
|
|
|
|
#%%if 0%%{?with_python3}
|
|
|
|
|
#pushd %%{py3dir}
|
|
|
|
|
#%%{__python3} setup.py test
|
|
|
|
|
#popd
|
|
|
|
|
#%%endif
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc LICENSE.txt CHANGES.txt README.txt COPYRIGHT.txt
|
|
|
|
|
%doc LICENSE.txt CHANGES.rst README.rst COPYRIGHT.txt
|
|
|
|
|
%{python_sitelib}/zope/exceptions/
|
|
|
|
|
# Co-own %%{python_sitelib}/zope/
|
|
|
|
|
%dir %{python_sitelib}/zope/
|
|
|
|
@ -95,7 +97,7 @@ popd
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%files -n python3-zope-exceptions
|
|
|
|
|
%doc LICENSE.txt CHANGES.txt README.txt COPYRIGHT.txt
|
|
|
|
|
%doc LICENSE.txt CHANGES.rst README.rst COPYRIGHT.txt
|
|
|
|
|
%{python3_sitelib}/zope/exceptions/
|
|
|
|
|
# Co-own %%{python3_sitelib}/zope/
|
|
|
|
|
%dir %{python3_sitelib}/zope/
|
|
|
|
@ -106,6 +108,12 @@ popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Apr 10 2013 Ralph Bean <rbean@redhat.com> - 4.0.6-1
|
|
|
|
|
- Update to the latest upstream.
|
|
|
|
|
- Modernized python3 conditional.
|
|
|
|
|
- Renamed CHANGES and README from .txt to .rst.
|
|
|
|
|
- Disabled tests which now require python-zope-testrunner.
|
|
|
|
|
|
|
|
|
|
* Mon Feb 25 2013 Ralph Bean <rbean@redhat.com> - 4.0.5-1
|
|
|
|
|
- Latest upstream.
|
|
|
|
|
|
|
|
|
|