]> git.pld-linux.org Git - packages/python-pygtk.git/commitdiff
fix shebangs
authorJan Palus <atler@pld-linux.org>
Wed, 21 Oct 2020 16:13:13 +0000 (18:13 +0200)
committerJan Palus <atler@pld-linux.org>
Wed, 21 Oct 2020 16:13:13 +0000 (18:13 +0200)
python-pygtk.spec

index 8cda5686490ac4f5d0f5a975d9fa60ef25c11667..37823f9126aa430319baa47b017c88bec098a7bf 100644 (file)
@@ -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}
This page took 0.106325 seconds and 4 git commands to generate.