|
|
|
@ -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 <robinlee.sysu@gmail.com> - 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 <rel-eng@lists.fedoraproject.org> - 3.7.3-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|