[python-zope-exceptions] - BR: python-zope-interface added - Add %%check section and run the tests
cheeselee
cheeselee at fedoraproject.org
Wed Sep 15 07:48:25 UTC 2010
commit 11ccda634c58da7428dc2d08e97f191921609a7f
Author: Robin Lee <robinlee.sysu at gmail.com>
Date: Wed Sep 15 15:47:13 2010 +0800
- BR: python-zope-interface added
- Add %%check section and run the tests
python-zope-exceptions.spec | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/python-zope-exceptions.spec b/python-zope-exceptions.spec
index 9bee5ae..6c2d825 100644
--- a/python-zope-exceptions.spec
+++ b/python-zope-exceptions.spec
@@ -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 at 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 at gmail.com> - 3.6.1-4
- Own %%{python_sitelib}/zope/
More information about the scm-commits
mailing list