|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
Summary: Zope Exceptions
|
|
|
|
|
Name: python-zope-exceptions
|
|
|
|
|
Version: 3.6.1
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Source0: http://pypi.python.org/packages/source/z/%{modname}/%{modname}-%{version}.zip
|
|
|
|
|
License: ZPLv2.1
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
@ -12,6 +12,8 @@ URL: http://cheeseshop.python.org/pypi/zope.exceptions
|
|
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
|
# for the tests
|
|
|
|
|
BuildRequires: python-zope-interface
|
|
|
|
|
Requires: python-zope-interface
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -22,21 +24,29 @@ general purpose that they don't belong in Zope application-specific packages.
|
|
|
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
python setup.py build
|
|
|
|
|
%{__python} setup.py build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
python setup.py install --root=$RPM_BUILD_ROOT
|
|
|
|
|
%{__python} setup.py install --root=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{__python} setup.py test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc LICENSE.txt CHANGES.txt README.txt COPYRIGHT.txt
|
|
|
|
|
%{python_sitelib}/zope/exceptions/
|
|
|
|
|
# Co-own %%{python_sitelib}/zope/
|
|
|
|
|
%dir %{python_sitelib}/zope/
|
|
|
|
|
%{python_sitelib}/%{modname}-*.egg-info
|
|
|
|
|
%{python_sitelib}/%{modname}-*-nspkg.pth
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Sep 15 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.6.1-5
|
|
|
|
|
- BR: python-zope-interface added
|
|
|
|
|
- Add %%check section and run the tests
|
|
|
|
|
|
|
|
|
|
* Tue Aug 31 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.6.1-4
|
|
|
|
|
- Own %%{python_sitelib}/zope/
|
|
|
|
|
|
|
|
|
|