[python-ZODB3] Enable the tests
cheeselee
cheeselee at fedoraproject.org
Sat Apr 30 21:30:06 UTC 2011
commit 55c78f5263a166b76847bd3d64fecdb81856b1bb
Author: Robin Lee <cheeselee at fedoraproject.org>
Date: Sun May 1 05:29:44 2011 +0800
Enable the tests
python-ZODB3.spec | 28 ++++++++++++++++++++--------
1 files changed, 20 insertions(+), 8 deletions(-)
---
diff --git a/python-ZODB3.spec b/python-ZODB3.spec
index efa3879..0753b29 100644
--- a/python-ZODB3.spec
+++ b/python-ZODB3.spec
@@ -5,7 +5,7 @@
Name: python-ZODB3
Version: 3.10.3
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Zope Object Database: Object Database and Persistence
Group: Development/Libraries
License: ZPLv2.1
@@ -14,8 +14,16 @@ Source0: http://pypi.python.org/packages/source/Z/ZODB3/ZODB3-%{version}%
BuildRequires: python2-devel
BuildRequires: python-setuptools
-# need for tests, not yet in Fedora
-#BuildRequires: python-manuel
+# need for tests
+BuildRequires: python-transaction
+BuildRequires: python-zc-lockfile
+BuildRequires: python-ZConfig
+BuildRequires: python-zdaemon
+BuildRequires: python-zope-event
+BuildRequires: python-zope-interface
+BuildRequires: python-zope-proxy
+BuildRequires: python-manuel
+BuildRequires: python-zope-testing
Requires: python-setuptools
Requires: python-transaction
Requires: python-zc-lockfile
@@ -86,13 +94,14 @@ done
popd
-cp -p src/CHANGES.txt{,.orig}
-iconv -f ISO-8859-1 -t UTF-8 src/CHANGES.txt.orig >src/CHANGES.txt
-touch -r src/CHANGES.txt{.orig,}
-rm src/CHANGES.txt.orig
-cp -p COPYRIGHT.txt LICENSE.txt HISTORY.txt README.txt src/CHANGES.txt \
+iconv -f ISO-8859-1 -t UTF-8 src/CHANGES.txt >$DOCDIR/CHANGES.txt
+touch -r src/CHANGES.txt $DOCDIR/CHANGES.txt
+cp -p COPYRIGHT.txt LICENSE.txt HISTORY.txt README.txt \
doc/* $DOCDIR
+%check
+python setup.py test
+
%files
%defattr(-,root,root,-)
%{_docdir}/%{name}-%{version}/
@@ -115,6 +124,9 @@ cp -p COPYRIGHT.txt LICENSE.txt HISTORY.txt README.txt src/CHANGES.txt \
%{_includedir}/python?.?/ZODB3
%changelog
+* Sun May 1 2011 Robin Lee <cheeselee at fedoraproject.org> - 3.10.3-2
+- Enable the tests
+
* Wed Apr 27 2011 Jerry James <loganjerry at gmail.com> - 3.10.3-1
- Update to 3.10.3
More information about the scm-commits
mailing list