diff --git a/python2.spec b/python2.spec index de0323d..566c54b 100644 --- a/python2.spec +++ b/python2.spec @@ -112,7 +112,7 @@ Summary: An interpreted, interactive, object-oriented programming language Name: %{python} # Remember to also rebase python-docs when changing this: Version: 2.7.14 -Release: 6%{?dist} +Release: 7%{?dist} License: Python Group: Development/Languages Requires: %{python}-libs%{?_isa} = %{version}-%{release} @@ -912,7 +912,7 @@ These have been removed to save space, as they are never or almost never used in production. You might want to install the python2-test package if you're developing python 2 -code that uses more than just unittest and/or test_support.py. +code that uses more than just unittest and/or test.support. %if %{with debug_build} %package debug @@ -1712,9 +1712,15 @@ rm -fr %{buildroot} %{pylibdir}/pydoc_data %dir %{pylibdir}/sqlite3 %{pylibdir}/sqlite3/*.py* + +# Some bits of test are used for actual testing of stuff, not just python itself: +# See also https://bugzilla.redhat.com/show_bug.cgi?id=1528899 %dir %{pylibdir}/test -%{pylibdir}/test/test_support.py* %{pylibdir}/test/__init__.py* +%{pylibdir}/test/support/ +%{pylibdir}/test/script_helper.py* +%{pylibdir}/test/test_support.py* + %{pylibdir}/unittest %{pylibdir}/wsgiref %{pylibdir}/xml @@ -1799,9 +1805,14 @@ rm -fr %{buildroot} %{pylibdir}/lib2to3/tests %{pylibdir}/sqlite3/test %{pylibdir}/test/* -# These two are shipped in the main subpackage: -%exclude %{pylibdir}/test/test_support.py* + +# Some bits of test are used for actual testing of stuff, not just python itself: +# See also https://bugzilla.redhat.com/show_bug.cgi?id=1528899 %exclude %{pylibdir}/test/__init__.py* +%exclude %{pylibdir}/test/support/ +%exclude %{pylibdir}/test/script_helper.py* +%exclude %{pylibdir}/test/test_support.py* + %{dynload_dir}/_ctypes_test.so %{dynload_dir}/_testcapimodule.so @@ -1957,6 +1968,10 @@ rm -fr %{buildroot} # ====================================================== %changelog +* Thu Feb 15 2018 Miro Hrončok - 2.7.14-17 +- Move test.support and test.script_helper to python2-libs +Resolves: rhbz#1528899 + * Tue Jan 16 2018 Miro Hrončok - 2.7.14-6 - Rebuild for reverted gdbm 1.13 on Fedora 27