|
|
|
@ -1,17 +1,17 @@
|
|
|
|
|
%global modname zope.testing
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} > 12 || 0%{?rhel} > 6
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
%global with_python3 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: python-zope-testing
|
|
|
|
|
Version: 4.1.1
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 4.1.2
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Zope Testing Framework
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
License: ZPLv2.1
|
|
|
|
|
URL: http://pypi.python.org/pypi/%{modname}
|
|
|
|
|
Source0: http://pypi.python.org/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz
|
|
|
|
|
Source0: http://pypi.python.org/packages/source/z/%{modname}/%{modname}-%{version}.zip
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: python-devel
|
|
|
|
@ -83,16 +83,15 @@ rm -f %{buildroot}%{python_sitelib}/zope/__init__.py*
|
|
|
|
|
%check
|
|
|
|
|
%{__python} setup.py test
|
|
|
|
|
|
|
|
|
|
# The python3.3 tests don't completely pass yet.
|
|
|
|
|
#%if 0%{?with_python3}
|
|
|
|
|
#pushd %{py3dir}
|
|
|
|
|
#%{__python3} setup.py test
|
|
|
|
|
#popd
|
|
|
|
|
#%endif
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
popd
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc COPYRIGHT.txt LICENSE.txt CHANGES.txt README.txt src/zope/testing/*.txt
|
|
|
|
|
%doc COPYRIGHT.txt LICENSE.txt CHANGES.rst README.rst src/zope/testing/*.txt
|
|
|
|
|
%{python_sitelib}/zope/testing/
|
|
|
|
|
%exclude %{python_sitelib}/zope/testing/*.txt
|
|
|
|
|
%{python_sitelib}/%{modname}-*.egg-info
|
|
|
|
@ -101,7 +100,7 @@ rm -f %{buildroot}%{python_sitelib}/zope/__init__.py*
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%files -n python3-zope-testing
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc COPYRIGHT.txt LICENSE.txt CHANGES.txt README.txt src/zope/testing/*.txt
|
|
|
|
|
%doc COPYRIGHT.txt LICENSE.txt CHANGES.rst README.rst src/zope/testing/*.txt
|
|
|
|
|
%{python3_sitelib}/zope/testing/
|
|
|
|
|
%exclude %{python3_sitelib}/zope/testing/*.txt
|
|
|
|
|
%{python3_sitelib}/%{modname}-*.egg-info
|
|
|
|
@ -109,6 +108,12 @@ rm -f %{buildroot}%{python_sitelib}/zope/__init__.py*
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Feb 25 2013 Ralph Bean <rbean@redhat.com> - 4.1.2-1
|
|
|
|
|
- Latest upstream.
|
|
|
|
|
- Enabled python3 tests in the check section.
|
|
|
|
|
- Updated the with_python3 conditional.
|
|
|
|
|
- README and CHANGES renamed from .txt to .rst.
|
|
|
|
|
|
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|