[python-zope-testing/f13/master: 8/8] * Wed Sep 15 2010 Robin Lee <robinlee.sysu at gmail.com> - 3.9.5-6 - Requirement: python-zope-filesyste
cheeselee
cheeselee at fedoraproject.org
Mon Oct 4 05:08:53 UTC 2010
commit b744d1f67e085eff3422da07c47c8bef1cc5c356
Author: Robin Lee <cheeselee at fedoraproject.org>
Date: Mon Oct 4 13:07:47 2010 +0800
* Wed Sep 15 2010 Robin Lee <robinlee.sysu at gmail.com> - 3.9.5-6
- Requirement: python-zope-filesystem removed, python-zope-exceptions and
python-setuptools added
- BR: python-zope-exceptions and python-zope-interface added
- Rearrange documents
- Add a small patch and a %%check section to make the tests run
* Sat Jul 31 2010 David Malcolm <dmalcolm at redhat.com> - 3.9.5-5
- actually remove the requirement on python-zope-exceptions this time
* Fri Jul 30 2010 David Malcolm <dmalcolm at redhat.com> - 3.9.5-4
- add missing build-time requirement on python-setuptools
* Fri Jul 30 2010 David Malcolm <dmalcolm at redhat.com> - 3.9.5-3
- remove requirement on python-zope-exceptions for now (bug 619478)
- add missing zope-testrunner executable to %%files
* Thu Jul 22 2010 David Malcolm <dmalcolm at redhat.com> - 3.9.5-2
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
* Thu Jun 17 2010 Robin Lee <robinlee.sysu at gmail.com> - 3.9.5-1
- Update to 3.9.5
- Rearrange documents
- Requires: python-zope-interface and python-zope-exceptions added
python-zope-testing.spec | 30 ++++++++++++++++++++++++------
1 files changed, 24 insertions(+), 6 deletions(-)
---
diff --git a/python-zope-testing.spec b/python-zope-testing.spec
index 6e890bd..cc3c112 100644
--- a/python-zope-testing.spec
+++ b/python-zope-testing.spec
@@ -4,18 +4,26 @@
Name: python-zope-testing
Version: 3.9.5
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: Zope Testing Framework
Group: Development/Languages
License: ZPLv2.1
URL: http://pypi.python.org/pypi/zope.testing
Source0: http://pypi.python.org/packages/source/z/zope.testing/zope.testing-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+# register the test suite
+Patch0: python-zope-testing-3.9.5-run-tests.patch
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools
-Requires: python-zope-filesystem
+# for tests
+BuildRequires: python-zope-exceptions
+BuildRequires: python-zope-interface
+# for the script
+Requires: python-setuptools
+# python-zope-exceptions is noarch
+Requires: python-zope-exceptions
Requires: python-zope-interface
@@ -26,6 +34,7 @@ flexible test runner, and supports both doctest and unittest.
%prep
%setup -q -n zope.testing-%{version}
+%patch0 -p1 -b .run_tests
%build
@@ -36,7 +45,7 @@ flexible test runner, and supports both doctest and unittest.
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
-# Use the __init__.py from python-zope-filesystem instead.
+# __init__.py* are not needed since .pth file is used
rm -f $RPM_BUILD_ROOT%{python_sitelib}/zope/__init__.py*
# Deal with documents
@@ -48,20 +57,29 @@ cp -p src/zope/testing/testrunner/*.txt \
$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/testrunner/
cp -p COPYRIGHT.txt LICENSE.txt CHANGES.txt README.txt \
$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/
-
+
%clean
rm -rf $RPM_BUILD_ROOT
+%check
+%{__python} setup.py test
%files
%defattr(-,root,root,-)
%{_bindir}/zope-testrunner
%{_docdir}/%{name}-%{version}/
%{python_sitelib}/zope/testing/
-%{python_sitelib}/zope.testing*
-
+%{python_sitelib}/zope.testing-*.egg-info
+%{python_sitelib}/zope.testing-*-nspkg.pth
%changelog
+* Wed Sep 15 2010 Robin Lee <robinlee.sysu at gmail.com> - 3.9.5-6
+- Requirement: python-zope-filesystem removed, python-zope-exceptions and
+ python-setuptools added
+- BR: python-zope-exceptions and python-zope-interface added
+- Rearrange documents
+- Add a small patch and a %%check section to make the tests run
+
* Sat Jul 31 2010 David Malcolm <dmalcolm at redhat.com> - 3.9.5-5
- actually remove the requirement on python-zope-exceptions this time
More information about the scm-commits
mailing list