Remove %{pylibdir}/Tools/scripts/2to3

* the file has wrong shebang (#!/usr/bin/env python)
    * it is not covered by the shebang correction because it is not
      named with .py extension
    * a note has been added to the shebang correction code about this
 * ignoring shebang, the file is identical to /usr/bin/2to3
   * thus redundant
This commit is contained in:
Miro Hrončok 2017-09-01 17:42:46 +02:00 committed by Petr Viktorin
parent 5f24f39d01
commit 1acd7dfa33

View File

@ -14,7 +14,7 @@ URL: https://www.python.org/
# WARNING When rebasing to a new Python version, # WARNING When rebasing to a new Python version,
# remember to update the python3-docs package as well # remember to update the python3-docs package as well
Version: %{pybasever}.2 Version: %{pybasever}.2
Release: 14%{?dist} Release: 15%{?dist}
License: Python License: Python
@ -893,10 +893,14 @@ sed -i -e "s/'pyconfig.h'/'%{_pyconfig_h}'/" \
%{buildroot}%{pylibdir}/sysconfig.py %{buildroot}%{pylibdir}/sysconfig.py
# Switch all shebangs to refer to the specific Python version. # Switch all shebangs to refer to the specific Python version.
# This currently only covers files with .py extension
LD_LIBRARY_PATH=./build/optimized ./build/optimized/python \ LD_LIBRARY_PATH=./build/optimized ./build/optimized/python \
Tools/scripts/pathfix.py \ Tools/scripts/pathfix.py \
-i "%{_bindir}/python%{pybasever}" \ -i "%{_bindir}/python%{pybasever}" \
%{buildroot} %{buildroot}
# not covered, also redundant and useless:
rm %{buildroot}%{pylibdir}/Tools/scripts/2to3
# Remove shebang lines from .py files that aren't executable, and # Remove shebang lines from .py files that aren't executable, and
# remove executability from .py files that don't have a shebang line: # remove executability from .py files that don't have a shebang line:
@ -1576,6 +1580,9 @@ fi
# ====================================================== # ======================================================
%changelog %changelog
* Fri Sep 01 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.2-15
- Remove %%{pylibdir}/Tools/scripts/2to3
* Fri Sep 01 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.2-14 * Fri Sep 01 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.2-14
- Expat >= 2.1.0 is everywhere, remove explicit requires - Expat >= 2.1.0 is everywhere, remove explicit requires
- Conditionalize systemtap-devel BuildRequires - Conditionalize systemtap-devel BuildRequires