summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Lee <robinlee.sysu@gmail.com>2010-09-13 10:50:07 +0800
committerRobin Lee <robinlee.sysu@gmail.com>2010-09-13 10:50:07 +0800
commitf4737396585afbd05360842943e801d2a0e1001e (patch)
tree06568cb0cd75f773b63eb131a0d26fb43ab7d0bc
parentd8bfb9463624c1e924488a9f366260e2ac4e86e4 (diff)
downloadzope-rpm-f4737396585afbd05360842943e801d2a0e1001e.tar.gz
zope-rpm-f4737396585afbd05360842943e801d2a0e1001e.tar.xz
zope-rpm-f4737396585afbd05360842943e801d2a0e1001e.zip
python-zope-dottedname 3.4.6-2
-rw-r--r--python-zope-dottedname/F-13/python-zope-dottedname.spec39
1 files changed, 23 insertions, 16 deletions
diff --git a/python-zope-dottedname/F-13/python-zope-dottedname.spec b/python-zope-dottedname/F-13/python-zope-dottedname.spec
index 88f0c60..739fb7a 100644
--- a/python-zope-dottedname/F-13/python-zope-dottedname.spec
+++ b/python-zope-dottedname/F-13/python-zope-dottedname.spec
@@ -1,24 +1,23 @@
-%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
-%endif
%global modname zope.dottedname
-%global version 3.4.6
-%global release 1
Summary: Resolver for Python dotted names
Name: python-zope-dottedname
-Version: %{version}
-Release: %{release}%{?dist}
+Version: 3.4.6
+Release: 2%{?dist}
Source0: http://pypi.python.org/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz
License: ZPLv2.1
Group: Development/Libraries
BuildArch: noarch
URL: http://pypi.python.org/pypi/zope.dottedname
+# register the test suite, applied in upstream svn116336
+Patch0: python-zope-dottedname-3.4.6-run-tests.patch
+
+
BuildRequires: python2-devel
BuildRequires: python-setuptools
-Requires: python-zope-filesystem
-Requires: python-setuptools
+# for tests, should be removed in the next upstream release
+BuildRequires: python-zope-testing
%description
The zope.dottedname module provides one function, 'resolve' that
@@ -27,27 +26,35 @@ object.
%prep
%setup -q -n %{modname}-%{version}
+%patch0 -p2 -b .run_tests
%build
-python setup.py build
+%{__python} setup.py build
%install
-rm -rf $RPM_BUILD_ROOT
-python setup.py install --root=$RPM_BUILD_ROOT
-rm -f $RPM_BUILD_ROOT%{python_sitelib}/zope/dottedname/*.txt
+%{__python} setup.py install --root=$RPM_BUILD_ROOT
-%clean
-rm -rf $RPM_BUILD_ROOT
+%check
+%{__python} setup.py test
%files
%defattr(-,root,root,-)
%doc CHANGES.txt
-%doc src/zope/dottedname/*.txt
+# Co-own %%{python_sitelib}/zope/
+%dir %{python_sitelib}/zope/
%{python_sitelib}/zope/dottedname/
%{python_sitelib}/%{modname}-*.egg-info
%{python_sitelib}/%{modname}-*-nspkg.pth
%changelog
+* Mon Sep 13 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.4.6-2
+- Requires: python-zope-filesystem and python-setuptools removed
+- Add %%check section and run tests
+- Add python-zope-dottedname-3.4.6-run-tests.patch to register the test_suite
+- Co-own %%{python_sitelib}/zope/
+- Don't move the text files
+- Spec cleaned up
+
* Wed Jun 16 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.4.6-1
- Initial packaging