[packages/python-zope.testing] - updated to 4.7; zope.testrunner is separate package now
qboosh
qboosh at pld-linux.org
Sun Dec 29 20:09:09 CET 2019
commit 3693e166a66e5614a7d5cc230a6912146a85fd6e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Dec 29 20:10:01 2019 +0100
- updated to 4.7; zope.testrunner is separate package now
python-zope.testing.spec | 77 +++++++++++++++++++++++++++---------------------
1 file changed, 44 insertions(+), 33 deletions(-)
---
diff --git a/python-zope.testing.spec b/python-zope.testing.spec
index 3654cdc..7143b7b 100644
--- a/python-zope.testing.spec
+++ b/python-zope.testing.spec
@@ -1,4 +1,6 @@
+#
# Conditional build:
+%bcond_without tests # unit tests
%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
@@ -6,65 +8,65 @@
Summary: Support for different testing frameworks
Summary(pl.UTF-8): Obsługa różnych szkieletów testowych
Name: python-%{module}
-Version: 3.10.2
-Release: 4
-License: ZPL 2.1
+Version: 4.7
+Release: 1
+License: ZPL v2.1
Group: Libraries/Python
-Source0: http://pypi.python.org/packages/source/z/zope.testing/zope.testing-%{version}.tar.gz
-# Source0-md5: 35fc3139992a92a4db13653167fc7be9
-URL: http://www.zope.org/
+#Source0Download: https://pypi.org/simple/zope-testing/
+Source0: https://files.pythonhosted.org/packages/source/z/zope.testing/zope.testing-%{version}.tar.gz
+# Source0-md5: 13b45a1c9ec987e75a3f9e83b50d22a4
+URL: https://www.zope.org/
%if %{with python2}
-BuildRequires: python >= 1:2.5
-BuildRequires: python-devel >= 1:2.5
+BuildRequires: python >= 1:2.7
+BuildRequires: python-devel >= 1:2.7
%endif
%if %{with python3}
-BuildRequires: python3-devel
-BuildRequires: python3-modules
+BuildRequires: python3-devel >= 1:3.3
+BuildRequires: python3-modules >= 1:3.3
BuildRequires: python3-setuptools
%endif
BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.710
-%pyrequires_eq python-modules
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python-modules >= 1:2.7
+Requires: python-zope-base
Obsoletes: Zope-Testing
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-This package provides a number of testing frameworks. It includes a
-flexible test runner, and supports both doctest and unittest.
+This package provides a number of testing frameworks. It supports both
+doctest and unittest.
%description -l pl.UTF-8
-Ten pakiet udostępnia wiele szkieletów testowych. Zawiera elastyczne
-narzędzie do uruchamiania testów, obsługuje zarówno doctest jak i
-unittest.
+Ten pakiet udostępnia wiele szkieletów testowych. Obsługuje zarówno
+doctest jak i unittest.
%package -n python3-%{module}
-Summary: -
-Summary(pl.UTF-8): -
+Summary: Support for different testing frameworks
+Summary(pl.UTF-8): Obsługa różnych szkieletów testowych
Group: Libraries/Python
-Requires: python3-modules
+Requires: python3-modules >= 1:3.3
+Requires: python3-zope-base
%description -n python3-%{module}
-This package provides a number of testing frameworks. It includes a
-flexible test runner, and supports both doctest and unittest.
+This package provides a number of testing frameworks. It supports both
+doctest and unittest.
%description -n python3-%{module} -l pl.UTF-8
-Ten pakiet udostępnia wiele szkieletów testowych. Zawiera elastyczne
-narzędzie do uruchamiania testów, obsługuje zarówno doctest jak i
-unittest.
+Ten pakiet udostępnia wiele szkieletów testowych. Obsługuje zarówno
+doctest jak i unittest.
%prep
%setup -q -n %{module}-%{version}
%build
%if %{with python2}
-%py_build
+%py_build %{?with_tests:test}
%endif
%if %{with python3}
-%py3_build
+%py3_build %{?with_tests:test}
%endif
-
%install
rm -rf $RPM_BUILD_ROOT
@@ -73,26 +75,35 @@ rm -rf $RPM_BUILD_ROOT
--install-purelib=%{py_sitedir}
%py_postclean
+# tests
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/zope/testing/{test_renormalizing,tests}.py*
%endif
%if %{with python3}
%py3_install \
--install-purelib=%{py3_sitedir}
+
+# tests
+%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/zope/testing/{test_renormalizing,tests}.py*
%endif
%clean
rm -rf $RPM_BUILD_ROOT
+%if %{with python2}
%files
%defattr(644,root,root,755)
+%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
%{py_sitedir}/zope/testing
-%{py_sitedir}/zope.testing-*.egg-info
-%{py_sitedir}/zope.testing-*-nspkg.pth
+%{py_sitedir}/zope.testing-%{version}-py*.egg-info
+%{py_sitedir}/zope.testing-%{version}-py*-nspkg.pth
+%endif
%if %{with python3}
%files -n python3-%{module}
%defattr(644,root,root,755)
-%{py3_sitedir}//zope/testing
-%{py3_sitedir}//zope.testing-*.egg-info
-%{py3_sitedir}//zope.testing-*-nspkg.pth
+%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
+%{py3_sitedir}/zope/testing
+%{py3_sitedir}/zope.testing-%{version}-py*.egg-info
+%{py3_sitedir}/zope.testing-%{version}-py*-nspkg.pth
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-zope.testing.git/commitdiff/3693e166a66e5614a7d5cc230a6912146a85fd6e
More information about the pld-cvs-commit
mailing list