use versionized Python interpreter path

This commit is contained in:
Nils Philippsen 2018-11-10 15:35:39 +01:00
parent 171587f9eb
commit 0e386fde50

View File

@ -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. # to the system python interpreter, but this will avoid false alarms.
grep -E -rl '^#!\s*%{_bindir}/env\s+python' --include=\*.py "%{buildroot}" | grep -E -rl '^#!\s*%{_bindir}/env\s+python' --include=\*.py "%{buildroot}" |
while read file; do 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 done
echo "%{__python2}=%{__python2}" >> %{buildroot}%{_libdir}/gimp/%{lib_api_version}/interpreters/pygimp.interp
%endif %endif
%if %unstable %if %unstable
@ -680,6 +682,7 @@ make check %{?_smp_mflags}
%changelog %changelog
* Sat Nov 10 2018 Nils Philippsen <nils@tiptoe.de> * Sat Nov 10 2018 Nils Philippsen <nils@tiptoe.de>
- remove obsolete configure options - remove obsolete configure options
- use versionized Python interpreter path
* Sat Nov 10 2018 Nils Philippsen <nils@tiptoe.de> - 2:2.10.8-1 * Sat Nov 10 2018 Nils Philippsen <nils@tiptoe.de> - 2:2.10.8-1
- version 2.10.8 - version 2.10.8