From b1a24b465f100ff1eed8ef7c6f447ab8a57cbfd1 Mon Sep 17 00:00:00 2001 From: Tomas Orsava Date: Apr 26 2018 08:35:56 +0000 Subject: Change shebangs to the proper versioned binary --- diff --git a/python2.spec b/python2.spec index 37c7347..49e4e97 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 python2-docs when changing this: Version: 2.7.14 -Release: 16%{?dist} +Release: 17%{?dist} License: Python Group: Development/Languages Requires: %{python}-libs%{?_isa} = %{version}-%{release} @@ -1216,10 +1216,16 @@ make EXTRA_CFLAGS="$CFLAGS" %{?_smp_mflags} # optimized python binary: if $PathFixWithThisBinary then + # pathfix.py currently only works with files matching ^[a-zA-Z0-9_]+\.py$ + # when crawling through directories, so we handle the special cases manually LD_LIBRARY_PATH="$topdir/$ConfDir" ./$BinaryName \ $topdir/Tools/scripts/pathfix.py \ - -i "/usr/bin/env $BinaryName" \ - $topdir + -i "%{_bindir}/python%{pybasever}" \ + $topdir \ + $topdir/Tools/pynche/pynche \ + $topdir/Demo/pdist/{rcvs,rcsbump,rrcs} \ + $topdir/Demo/scripts/find-uname.py \ + $topdir/Tools/scripts/reindent-rst.py fi # Rebuild with new python @@ -1988,6 +1994,9 @@ CheckPython \ # ====================================================== %changelog +* Wed Apr 25 2018 Tomas Orsava - 2.7.14-17 +- Change shebangs to the proper versioned binary + * Fri Apr 13 2018 Miro HronĨok - 2.7.14-16 - Remove Obsoletes tag from when python was renamed to python2 (Fedora 25 was last)