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