|
|
@ -1,16 +1,9 @@
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 6
|
|
|
|
|
|
|
|
%{!?__python2: %global __python2 /usr/bin/python2}
|
|
|
|
|
|
|
|
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
|
|
|
|
|
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global modname zope.testing
|
|
|
|
%global modname zope.testing
|
|
|
|
|
|
|
|
|
|
|
|
%bcond_without python3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-zope-testing
|
|
|
|
Name: python-zope-testing
|
|
|
|
Version: 4.6.1
|
|
|
|
Version: 4.7
|
|
|
|
Release: 8%{?dist}
|
|
|
|
Release: 7%{?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}
|
|
|
@ -23,37 +16,16 @@ 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python2-zope-testing
|
|
|
|
|
|
|
|
Summary: Zope Testing Framework
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python2-zope-testing}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
|
|
|
|
BuildRequires: python2-zope-exceptions
|
|
|
|
|
|
|
|
BuildRequires: python2-zope-interface
|
|
|
|
|
|
|
|
Requires: python2-zope-exceptions
|
|
|
|
|
|
|
|
Requires: python2-zope-interface
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python2-zope-testing
|
|
|
|
|
|
|
|
This package provides a number of testing frameworks. It includes a
|
|
|
|
|
|
|
|
flexible test runner, and supports both doctest and unittest.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
%package -n python%{python3_pkgversion}-zope-testing
|
|
|
|
%package -n python%{python3_pkgversion}-zope-testing
|
|
|
|
Summary: Zope Testing Framework
|
|
|
|
Summary: Zope Testing Framework
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-zope-testing}
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-zope-testing}
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
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 python%{python3_pkgversion}-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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
%setup -q -n %{modname}-%{version}
|
|
|
@ -61,46 +33,63 @@ flexible test runner, and supports both doctest and unittest.
|
|
|
|
rm -rf %{modname}.egg-info
|
|
|
|
rm -rf %{modname}.egg-info
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%{py2_build}
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
%{py3_build}
|
|
|
|
%{py3_build}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%{py2_install}
|
|
|
|
|
|
|
|
# __init__.py* are not needed since .pth file is used
|
|
|
|
|
|
|
|
rm -f %{buildroot}%{python2_sitelib}/zope/__init__.py*
|
|
|
|
|
|
|
|
%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*
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%{__python2} setup.py test
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
%{__python3} setup.py test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python2-zope-testing
|
|
|
|
|
|
|
|
%doc COPYRIGHT.txt LICENSE.txt CHANGES.rst README.rst src/zope/testing/*.txt
|
|
|
|
|
|
|
|
%{python2_sitelib}/zope/testing/
|
|
|
|
|
|
|
|
%exclude %{python2_sitelib}/zope/testing/*.txt
|
|
|
|
|
|
|
|
%{python2_sitelib}/%{modname}-*.egg-info
|
|
|
|
|
|
|
|
%{python2_sitelib}/%{modname}-*-nspkg.pth
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-zope-testing
|
|
|
|
%files -n python%{python3_pkgversion}-zope-testing
|
|
|
|
%doc COPYRIGHT.txt LICENSE.txt CHANGES.rst README.rst src/zope/testing/*.txt
|
|
|
|
%doc CHANGES.rst README.rst src/zope/testing/*.txt
|
|
|
|
|
|
|
|
%license COPYRIGHT.txt LICENSE.txt
|
|
|
|
%{python3_sitelib}/zope/testing/
|
|
|
|
%{python3_sitelib}/zope/testing/
|
|
|
|
%exclude %{python3_sitelib}/zope/testing/*.txt
|
|
|
|
%exclude %{python3_sitelib}/zope/testing/*.txt
|
|
|
|
%{python3_sitelib}/%{modname}-*.egg-info
|
|
|
|
%{python3_sitelib}/%{modname}-*.egg-info
|
|
|
|
%{python3_sitelib}/%{modname}-*-nspkg.pth
|
|
|
|
%{python3_sitelib}/%{modname}-*-nspkg.pth
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Wed Jan 24 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 4.6.1-8
|
|
|
|
* Fri Oct 25 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 4.7-7
|
|
|
|
- Rebuilt for MSVSphere 8.9
|
|
|
|
- Rebuilt for MSVSphere 9.4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.7-7
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.7-6
|
|
|
|
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
|
|
|
|
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 4.7-5
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.7-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.7-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 4.7-2
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Mar 23 2020 Lumír Balhar <lbalhar@redhat.com> - 4.7-1
|
|
|
|
|
|
|
|
- Update to 4.7 (#1460853)
|
|
|
|
|
|
|
|
- Removed unnecessary dependencies, fixed license files
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.1-12
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Sep 20 2019 Miro Hrončok <mhroncok@redhat.com> - 4.6.1-11
|
|
|
|
|
|
|
|
- Subpackage python2-zope-testing has been removed
|
|
|
|
|
|
|
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 4.6.1-10
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.1-9
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Mar 09 2019 Carl George <carl@george.computer> - 4.6.1-8
|
|
|
|
* Sat Mar 09 2019 Carl George <carl@george.computer> - 4.6.1-8
|
|
|
|
- EPEL compatibility
|
|
|
|
- EPEL compatibility
|
|
|
|