From 9828dfcc61a0989aff45f3080d83a2375d32b4ae Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Apr 09 2018 16:55:50 +0000 Subject: Do not ship the Tools directory It is not a part of the standard library, also has problematic shebangs, etc. --- diff --git a/python35.spec b/python35.spec index 3fabe38..bdcc0a9 100644 --- a/python35.spec +++ b/python35.spec @@ -689,21 +689,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 @@ -779,6 +768,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 \) \ @@ -786,8 +778,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 {} \; @@ -1043,6 +1034,7 @@ CheckPython optimized %changelog * Tue Mar 27 2018 Miro Hrončok - 3.5.5-1 - Rebased to version 3.5.5 +- Do not ship the Tools directory * Fri Feb 09 2018 Fedora Release Engineering - 3.5.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild