[packages/python-pygtk] fix shebangs
atler
atler at pld-linux.org
Wed Oct 21 19:13:50 CEST 2020
commit eb68d672b16f6da71c513899b475677626d0720c
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Oct 21 18:13:13 2020 +0200
fix shebangs
python-pygtk.spec | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/python-pygtk.spec b/python-pygtk.spec
index 8cda568..37823f9 100644
--- a/python-pygtk.spec
+++ b/python-pygtk.spec
@@ -159,6 +159,8 @@ Dokumentacja API pygtk.
%patch1 -p1
%patch2 -p1
+grep -r '#!.*env python' -l examples | xargs %{__sed} -i -e '1s,#!.*env python.*,#!%{__python},'
+
# don't remove it
#mkdir m4
#cp %{SOURCE1} m4/python.m4
@@ -171,6 +173,7 @@ Dokumentacja API pygtk.
%{__autoheader}
%{__automake}
%configure \
+ PYTHON=%{__python} \
--enable-thread \
%{!?with_numpy:--disable-numpy}
%{__make}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pygtk.git/commitdiff/eb68d672b16f6da71c513899b475677626d0720c
More information about the pld-cvs-commit
mailing list