From: Jan Palus Date: Wed, 21 Oct 2020 16:13:13 +0000 (+0200) Subject: fix shebangs X-Git-Tag: auto/th/python-pygtk-2.24.0-5~3 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=eb68d672b16f6da71c513899b475677626d0720c;p=packages%2Fpython-pygtk.git fix shebangs --- 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}