|
|
@ -1,19 +1,31 @@
|
|
|
|
|
|
|
|
%global modname zope.testing
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} > 12 || 0%{?rhel} > 6
|
|
|
|
|
|
|
|
%global with_python3 1
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-zope-testing
|
|
|
|
Name: python-zope-testing
|
|
|
|
Version: 3.10.3
|
|
|
|
Version: 4.1.1
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Zope Testing Framework
|
|
|
|
Summary: Zope Testing Framework
|
|
|
|
Group: Development/Languages
|
|
|
|
Group: Development/Languages
|
|
|
|
License: ZPLv2.1
|
|
|
|
License: ZPLv2.1
|
|
|
|
URL: http://pypi.python.org/pypi/zope.testing
|
|
|
|
URL: http://pypi.python.org/pypi/%{modname}
|
|
|
|
Source0: http://pypi.python.org/packages/source/z/zope.testing/zope.testing-%{version}.tar.gz
|
|
|
|
Source0: http://pypi.python.org/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
# for testing
|
|
|
|
|
|
|
|
BuildRequires: python-zope-exceptions
|
|
|
|
BuildRequires: python-zope-exceptions
|
|
|
|
BuildRequires: python-zope-interface
|
|
|
|
BuildRequires: python-zope-interface
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
|
|
|
BuildRequires: python3-zope-exceptions
|
|
|
|
|
|
|
|
BuildRequires: python3-zope-interface
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Requires: python-zope-exceptions
|
|
|
|
Requires: python-zope-exceptions
|
|
|
|
Requires: python-zope-interface
|
|
|
|
Requires: python-zope-interface
|
|
|
|
|
|
|
|
|
|
|
@ -22,34 +34,83 @@ Requires: python-zope-interface
|
|
|
|
This package provides a number of testing frameworks. It includes a
|
|
|
|
This package provides a number of testing frameworks. It includes a
|
|
|
|
flexible test runner, and supports both doctest and unittest.
|
|
|
|
flexible test runner, and supports both doctest and unittest.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
%package -n python3-zope-testing
|
|
|
|
|
|
|
|
Summary: Zope Testing Framework
|
|
|
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Requires: python3-zope-exceptions
|
|
|
|
|
|
|
|
Requires: python3-zope-interface
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-zope-testing
|
|
|
|
|
|
|
|
This package provides a number of testing frameworks. It includes a
|
|
|
|
|
|
|
|
flexible test runner, and supports both doctest and unittest.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n zope.testing-%{version}
|
|
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rm -rf %{modname}.egg-info
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%{__python} setup.py build
|
|
|
|
%{__python} setup.py build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
|
|
|
%{__python3} setup.py build
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
|
|
|
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
|
|
|
|
# __init__.py* are not needed since .pth file is used
|
|
|
|
|
|
|
|
rm -f %{buildroot}%{python3_sitelib}/zope/__init__.py*
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
# __init__.py* are not needed since .pth file is used
|
|
|
|
# __init__.py* are not needed since .pth file is used
|
|
|
|
rm -f $RPM_BUILD_ROOT%{python_sitelib}/zope/__init__.py*
|
|
|
|
rm -f %{buildroot}%{python_sitelib}/zope/__init__.py*
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%{__python} setup.py test
|
|
|
|
%{__python} setup.py test
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYRIGHT.txt LICENSE.txt CHANGES.txt README.txt src/zope/testing/*.txt
|
|
|
|
%doc COPYRIGHT.txt LICENSE.txt CHANGES.txt README.txt src/zope/testing/*.txt
|
|
|
|
%{python_sitelib}/zope/testing/
|
|
|
|
%{python_sitelib}/zope/testing/
|
|
|
|
%exclude %{python_sitelib}/zope/testing/*.txt
|
|
|
|
%exclude %{python_sitelib}/zope/testing/*.txt
|
|
|
|
%{python_sitelib}/zope.testing-*.egg-info
|
|
|
|
%{python_sitelib}/%{modname}-*.egg-info
|
|
|
|
%{python_sitelib}/zope.testing-*-nspkg.pth
|
|
|
|
%{python_sitelib}/%{modname}-*-nspkg.pth
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
%{python3_sitelib}/zope/testing/
|
|
|
|
|
|
|
|
%exclude %{python3_sitelib}/zope/testing/*.txt
|
|
|
|
|
|
|
|
%{python3_sitelib}/%{modname}-*.egg-info
|
|
|
|
|
|
|
|
%{python3_sitelib}/%{modname}-*-nspkg.pth
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Tue Dec 11 2012 Ralph Bean <rbean@redhat.com> - 4.1.1-1
|
|
|
|
|
|
|
|
- Latest upstream release.
|
|
|
|
|
|
|
|
- Packaged a python3 subpackage.
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.10.3-2
|
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.10.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|