From 0e386fde5050bd3c136079df817a1bf9008cb8c3 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Sat, 10 Nov 2018 15:35:39 +0100 Subject: [PATCH] use versionized Python interpreter path --- gimp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gimp.spec b/gimp.spec index d4a3d20..7009d8e 100644 --- a/gimp.spec +++ b/gimp.spec @@ -473,8 +473,10 @@ ln -snf gimprc-%{binver}.5 %{buildroot}/%{_mandir}/man5/gimprc.5 # to the system python interpreter, but this will avoid false alarms. grep -E -rl '^#!\s*%{_bindir}/env\s+python' --include=\*.py "%{buildroot}" | while read file; do - sed -r '1s,^#!\s*%{_bindir}/env\s+python,#!%{__python},' -i "$file" + sed -r '1s,^#!\s*%{_bindir}/env\s+python,#!%{__python2},' -i "$file" done + +echo "%{__python2}=%{__python2}" >> %{buildroot}%{_libdir}/gimp/%{lib_api_version}/interpreters/pygimp.interp %endif %if %unstable @@ -680,6 +682,7 @@ make check %{?_smp_mflags} %changelog * Sat Nov 10 2018 Nils Philippsen - remove obsolete configure options +- use versionized Python interpreter path * Sat Nov 10 2018 Nils Philippsen - 2:2.10.8-1 - version 2.10.8