summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Lee <robinlee.sysu@gmail.com>2010-09-13 10:29:19 +0800
committerRobin Lee <robinlee.sysu@gmail.com>2010-09-13 10:29:19 +0800
commitd8bfb9463624c1e924488a9f366260e2ac4e86e4 (patch)
tree26671e6cfd04137d1002bfb0d663d91e58b48c20
parentbe327c82223adbd73da0571933f6876ce312f364 (diff)
downloadzope-rpm-d8bfb9463624c1e924488a9f366260e2ac4e86e4.tar.gz
zope-rpm-d8bfb9463624c1e924488a9f366260e2ac4e86e4.tar.xz
zope-rpm-d8bfb9463624c1e924488a9f366260e2ac4e86e4.zip
python-zope-conttenttype 3.5.1-2
-rw-r--r--python-zope-contenttype/F-13/python-zope-contenttype.spec35
1 files changed, 19 insertions, 16 deletions
diff --git a/python-zope-contenttype/F-13/python-zope-contenttype.spec b/python-zope-contenttype/F-13/python-zope-contenttype.spec
index 4bfe4fd..805a4ec 100644
--- a/python-zope-contenttype/F-13/python-zope-contenttype.spec
+++ b/python-zope-contenttype/F-13/python-zope-contenttype.spec
@@ -1,49 +1,52 @@
-%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.contenttype
-%global version 3.5.1
-%global release 1
-Summary: Zope contenttype
+Summary: Content-Type Handling Utility
Name: python-zope-contenttype
-Version: %{version}
-Release: %{release}%{?dist}
+Version: 3.5.1
+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.contenttype
+# register the test suite, applied in upstream svn116335 with trivial difference
+Patch0: python-zope-contenttype-3.5.1-run-tests.patch
+
BuildRequires: python2-devel
BuildRequires: python-setuptools
-Requires: python-zope-filesystem
-Requires: python-setuptools
%description
This package provides a utility module for content-type handling.
%prep
%setup -q -n %{modname}-%{version}
+%patch0 -p1 -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
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install --root=$RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc CHANGES.txt README.txt
%{python_sitelib}/zope/contenttype/
+%dir %{python_sitelib}/zope/
%{python_sitelib}/%{modname}-*.egg-info
%{python_sitelib}/%{modname}-*-nspkg.pth
+%check
+%{__python} setup.py test
%changelog
+* Sun Sep 12 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.5.1-2
+- Requires: python-zope-filesystem and python-setuptools removed
+- Spec cleaned up
+- Co-own %%{python_sitelib}/zope/
+- Add %%check section and run tests
+- Add python-zope-contenttype-3.5.1-run-tests.patch to register the test_suite
+
* Wed Jun 16 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.5.1-1
- Initial packaging