[packages/python3] - rel 2; fix more shebangs

arekm arekm at pld-linux.org
Wed Jan 8 10:06:37 CET 2020


commit 59758f4da1abef93ee9664ae4ac02cb7495f7c21
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Jan 8 10:06:04 2020 +0100

    - rel 2; fix more shebangs

 python3.spec | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/python3.spec b/python3.spec
index ad55fd4..a65336b 100644
--- a/python3.spec
+++ b/python3.spec
@@ -42,7 +42,7 @@ Summary(tr.UTF-8):	X arayüzlü, yüksek düzeyli, kabuk yorumlayıcı dili
 Summary(uk.UTF-8):	Мова програмування дуже високого рівня з X-інтерфейсом
 Name:		python3
 Version:	%{py_ver}.1
-Release:	1
+Release:	2
 Epoch:		1
 License:	PSF
 Group:		Development/Languages/Python
@@ -515,6 +515,20 @@ for f in $files; do
 done
 %endif
 
+sed -E -i -e '1s,#![[:space:]]*/usr/bin/env[[:space:]]+python2,#!%{__python},' -e '1s,#![[:space:]]*/usr/bin/env[[:space:]]+python,#!%{__python},' -e '1s,#![[:space:]]*/usr/bin/python,#!%{__python},' \
+        Lib/encodings/rot_13.py \
+        Lib/lib2to3/tests/data/different_encoding.py \
+        Lib/lib2to3/tests/data/false_encoding.py \
+        Tools/gdb/libpython.py \
+        Tools/pynche/pynche \
+        Tools/pynche/pynche.pyw \
+        Tools/scripts/2to3 \
+        Tools/scripts/smelly.py
+
+sed -E -i -e '1s,#![[:space:]]*/usr/bin/env[[:space:]]+python3,#!%{__python3},' \
+	Tools/scripts/idle3 \
+	Tools/scripts/pydoc3
+
 find . -name '*.py' | xargs -r grep -El '^#! */usr/bin/env python3?' | xargs %{__sed} -i -e '1s,^#! */usr/bin/env python3\?,#!/usr/bin/python3,'
 
 %build
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3.git/commitdiff/59758f4da1abef93ee9664ae4ac02cb7495f7c21



More information about the pld-cvs-commit mailing list