diff --git a/python33.spec b/python33.spec index 0836b86..7f4d2c9 100644 --- a/python33.spec +++ b/python33.spec @@ -126,7 +126,7 @@ Summary: Version %{pybasever} of the Python programming language Name: python%{pyshortver} Version: %{pybasever}.7 -Release: 5%{?dist} +Release: 6%{?dist} License: Python Group: Development/Languages @@ -1101,21 +1101,10 @@ install -d -m 0755 ${RPM_BUILD_ROOT}%{pylibdir}/site-packages/__pycache__ mv ${RPM_BUILD_ROOT}%{_bindir}/2to3 ${RPM_BUILD_ROOT}%{_bindir}/python3-2to3 -# Development tools -install -m755 -d ${RPM_BUILD_ROOT}%{pylibdir}/Tools -install Tools/README ${RPM_BUILD_ROOT}%{pylibdir}/Tools/ -cp -ar Tools/freeze ${RPM_BUILD_ROOT}%{pylibdir}/Tools/ -cp -ar Tools/i18n ${RPM_BUILD_ROOT}%{pylibdir}/Tools/ -cp -ar Tools/pynche ${RPM_BUILD_ROOT}%{pylibdir}/Tools/ -cp -ar Tools/scripts ${RPM_BUILD_ROOT}%{pylibdir}/Tools/ - # Documentation tools install -m755 -d %{buildroot}%{pylibdir}/Doc cp -ar Doc/tools %{buildroot}%{pylibdir}/Doc/ -# Demo scripts -cp -ar Tools/demo %{buildroot}%{pylibdir}/Tools/ - # Fix for bug #136654 rm -f %{buildroot}%{pylibdir}/email/test/data/audiotest.au %{buildroot}%{pylibdir}/test/audiotest.au @@ -1191,6 +1180,9 @@ find %{buildroot} -name \*.py \ -perm /u+x,g+x,o+x ! -exec grep -m 1 -q '^#!' {} \; \ -exec chmod a-x {} \; \) \) +# Remove tests for tools, we don't ship those +rm -rf %{buildroot}%{pylibdir}/test/test_tools + # .xpm and .xbm files should not be executable: find %{buildroot} \ \( -name \*.xbm -o -name \*.xpm -o -name \*.xpm.1 \) \ @@ -1198,8 +1190,7 @@ find %{buildroot} \ # Remove executable flag from files that shouldn't have it: chmod a-x \ - %{buildroot}%{pylibdir}/distutils/tests/Setup.sample \ - %{buildroot}%{pylibdir}/Tools/README + %{buildroot}%{pylibdir}/distutils/tests/Setup.sample # Get rid of DOS batch files: find %{buildroot} -name \*.bat -exec rm {} \; @@ -1447,6 +1438,9 @@ CheckPython optimized # ====================================================== %changelog +* Sat Mar 31 2018 Miro Hrončok - 3.3.7-6 +- Do not ship the Tools directory + * Tue Mar 27 2018 Miro Hrončok - 3.3.7-5 - Disable test_buffer on ppc64le (rhbz#1561011)