- BR: python-zope-interface added

- Add %%check section and run the tests
epel8
Robin Lee 15 years ago
parent dc4b4432c5
commit 11ccda634c

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

Loading…
Cancel
Save