From cfc4b47f2267f1d2bae59412d1682d2ae3aeeb41 Mon Sep 17 00:00:00 2001 From: cheeselee Date: Wed, 16 Jun 2010 19:14:28 +0000 Subject: [PATCH] - Update to 3.9.5 - Rearrange documents - Requires: python-zope-interface and python-zope-exceptions added --- .cvsignore | 2 +- python-zope-testing.spec | 28 +++++++++++++++++++++++----- sources | 2 +- 3 files changed, 25 insertions(+), 7 deletions(-) diff --git a/.cvsignore b/.cvsignore index a1c11db..f957636 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -zope.testing-3.7.3.tar.gz +zope.testing-3.9.5.tar.gz diff --git a/python-zope-testing.spec b/python-zope-testing.spec index 9544ed5..01a3a0c 100644 --- a/python-zope-testing.spec +++ b/python-zope-testing.spec @@ -1,8 +1,10 @@ -%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%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 Name: python-zope-testing -Version: 3.7.3 -Release: 4%{?dist} +Version: 3.9.5 +Release: 1%{?dist} Summary: Zope Testing Framework Group: Development/Languages License: ZPLv2.1 @@ -13,6 +15,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel Requires: python-zope-filesystem +Requires: python-zope-exceptions +Requires: python-zope-interface %description @@ -35,6 +39,15 @@ rm -rf $RPM_BUILD_ROOT # Use the __init__.py from python-zope-filesystem instead. rm -f $RPM_BUILD_ROOT%{python_sitelib}/zope/__init__.py* +# Deal with documents +rm -f $RPM_BUILD_ROOT%{python_sitelib}/zope/testing/*.txt +rm -f $RPM_BUILD_ROOT%{python_sitearch}/zope/testing/testrunner/*.txt +mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/testrunner/ +cp -p src/zope/testing/*.txt $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/ +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 @@ -42,12 +55,17 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%doc documentation.txt CHANGES.txt README.txt -%{python_sitelib}/zope/* +%{_docdir}/%{name}-%{version}/ +%{python_sitelib}/zope/testing/ %{python_sitelib}/zope.testing* %changelog +* Thu Jun 17 2010 Robin Lee - 3.9.5-1 +- Update to 3.9.5 +- Rearrange documents +- Requires: python-zope-interface and python-zope-exceptions added + * Sun Jul 26 2009 Fedora Release Engineering - 3.7.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild diff --git a/sources b/sources index 37443c0..80871d2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -5b4beacff550fb306fb49500679080cf zope.testing-3.7.3.tar.gz +39092299d71c5dea5378c912df4cc84c zope.testing-3.9.5.tar.gz