EPEL compatibility

epel8
Carl George 6 years ago
parent 187421d79d
commit 10049e9749

@ -6,13 +6,11 @@
%global modname zope.testing %global modname zope.testing
%if 0%{?fedora} %bcond_without python3
%global with_python3 1
%endif
Name: python-zope-testing Name: python-zope-testing
Version: 4.6.1 Version: 4.6.1
Release: 7%{?dist} Release: 8%{?dist}
Summary: Zope Testing Framework Summary: Zope Testing Framework
License: ZPLv2.1 License: ZPLv2.1
URL: https://pypi.io/project/%{modname} URL: https://pypi.io/project/%{modname}
@ -40,20 +38,19 @@ Requires: python2-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} %if %{with python3}
%package -n python3-zope-testing %package -n python%{python3_pkgversion}-zope-testing
Summary: Zope Testing Framework Summary: Zope Testing Framework
%{?python_provide:%python_provide python3-zope-testing} %{?python_provide:%python_provide python%{python3_pkgversion}-zope-testing}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-zope-exceptions
BuildRequires: python3-zope-interface
Requires: python3-zope-exceptions BuildRequires: python%{python3_pkgversion}-devel
Requires: python3-zope-interface BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-zope-exceptions
BuildRequires: python%{python3_pkgversion}-zope-interface
Requires: python%{python3_pkgversion}-zope-exceptions
Requires: python%{python3_pkgversion}-zope-interface
%description -n python3-zope-testing %description -n python%{python3_pkgversion}-zope-testing
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.
%endif %endif
@ -65,7 +62,7 @@ rm -rf %{modname}.egg-info
%build %build
%{py2_build} %{py2_build}
%if 0%{?with_python3} %if %{with python3}
%{py3_build} %{py3_build}
%endif %endif
@ -73,7 +70,7 @@ rm -rf %{modname}.egg-info
%{py2_install} %{py2_install}
# __init__.py* are not needed since .pth file is used # __init__.py* are not needed since .pth file is used
rm -f %{buildroot}%{python2_sitelib}/zope/__init__.py* rm -f %{buildroot}%{python2_sitelib}/zope/__init__.py*
%if 0%{?with_python3} %if %{with python3}
%{py3_install} %{py3_install}
# __init__.py* are not needed since .pth file is used # __init__.py* are not needed since .pth file is used
rm -f %{buildroot}%{python3_sitelib}/zope/__init__.py* rm -f %{buildroot}%{python3_sitelib}/zope/__init__.py*
@ -81,7 +78,7 @@ rm -f %{buildroot}%{python3_sitelib}/zope/__init__.py*
%check %check
%{__python2} setup.py test %{__python2} setup.py test
%if 0%{?with_python3} %if %{with python3}
%{__python3} setup.py test %{__python3} setup.py test
%endif %endif
@ -92,8 +89,8 @@ rm -f %{buildroot}%{python3_sitelib}/zope/__init__.py*
%{python2_sitelib}/%{modname}-*.egg-info %{python2_sitelib}/%{modname}-*.egg-info
%{python2_sitelib}/%{modname}-*-nspkg.pth %{python2_sitelib}/%{modname}-*-nspkg.pth
%if 0%{?with_python3} %if %{with python3}
%files -n python3-zope-testing %files -n python%{python3_pkgversion}-zope-testing
%doc COPYRIGHT.txt LICENSE.txt CHANGES.rst README.rst src/zope/testing/*.txt %doc COPYRIGHT.txt LICENSE.txt CHANGES.rst README.rst src/zope/testing/*.txt
%{python3_sitelib}/zope/testing/ %{python3_sitelib}/zope/testing/
%exclude %{python3_sitelib}/zope/testing/*.txt %exclude %{python3_sitelib}/zope/testing/*.txt
@ -102,6 +99,9 @@ rm -f %{buildroot}%{python3_sitelib}/zope/__init__.py*
%endif %endif
%changelog %changelog
* Sat Mar 09 2019 Carl George <carl@george.computer> - 4.6.1-8
- EPEL compatibility
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.1-7 * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

Loading…
Cancel
Save