[packages/python] 'test' sub-package added with all testing modules
jajcus
jajcus at pld-linux.org
Fri Feb 21 12:26:27 CET 2014
commit 72d4c73511e91ccaf97c62e8eaaf94f40fb2925d
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Fri Feb 21 12:24:17 2014 +0100
'test' sub-package added with all testing modules
'testing' does not mean 'useless'!
Users may wish to test their Python environment (changes in the
environment may cause some tests to fail) and e.g. gevent unit test use
Python testing modules.
python.spec | 39 ++++++++++++++++++++++++++++-----------
1 file changed, 28 insertions(+), 11 deletions(-)
---
diff --git a/python.spec b/python.spec
index 8e3d7d7..636997e 100644
--- a/python.spec
+++ b/python.spec
@@ -551,6 +551,24 @@ Przykładowe programy w Pythonie.
Przykłady te są dla Pythona 2.3.4, nie %{version}.
+%package test
+Summary: Python test modules
+Summary(pl.UTF-8): Moduły testowe Pythona
+Group: Development/Languages/Python
+Requires: %{name}-modules = %{epoch}:%{version}-%{release}
+
+%description test
+Python test modules.
+
+Unit tests for Python, some may be reused for testing other Python
+software.
+
+%description test -l pl.UTF-8
+Moduły testowe Pythona.
+
+Niektóre z nich mogą być używane do testowania oprogramowania
+napisanego w Pythonie.
+
%prep
%setup -q -n Python-%{version}%{beta}
%patch0 -p1
@@ -665,17 +683,6 @@ sed 's/=/ /' \
> $RPM_BUILD_ROOT/etc/shrc.d/python-modules.csh
# just to cut the noise, as they are not packaged (now)
-# first tests
-%{__rm} -r $RPM_BUILD_ROOT%{py_scriptdir}/test
-%{__rm} -r $RPM_BUILD_ROOT%{py_scriptdir}/bsddb/test
-%{__rm} -r $RPM_BUILD_ROOT%{py_scriptdir}/ctypes/test
-%{__rm} -r $RPM_BUILD_ROOT%{py_scriptdir}/distutils/tests
-%{__rm} -r $RPM_BUILD_ROOT%{py_scriptdir}/email/test
-%{__rm} -r $RPM_BUILD_ROOT%{py_scriptdir}/sqlite3/test
-%{__rm} -r $RPM_BUILD_ROOT%{py_scriptdir}/json/tests
-%{__rm} -r $RPM_BUILD_ROOT%{py_scriptdir}/lib2to3/tests
-
-# other files
%{__rm} -r $RPM_BUILD_ROOT%{py_scriptdir}/plat-*/regen
find $RPM_BUILD_ROOT%{py_scriptdir} -name \*.egg-info -exec rm {} \;
find $RPM_BUILD_ROOT%{py_scriptdir} -name \*.bat -exec rm {} \;
@@ -1029,6 +1036,16 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%{_examplesdir}/%{name}-%{version}
+%files test
+%{py_scriptdir}/test
+%{py_scriptdir}/bsddb/test
+%{py_scriptdir}/ctypes/test
+%{py_scriptdir}/distutils/tests
+%{py_scriptdir}/email/test
+%{py_scriptdir}/sqlite3/test
+%{py_scriptdir}/json/tests
+%{py_scriptdir}/lib2to3/tests
+
%files doc
%defattr(644,root,root,755)
%doc python-%{dver}-docs-html/*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python.git/commitdiff/72d4c73511e91ccaf97c62e8eaaf94f40fb2925d
More information about the pld-cvs-commit
mailing list