fix versionized Python interpreter path
This commit is contained in:
		
							parent
							
								
									4133d71acc
								
							
						
					
					
						commit
						fe0f42a983
					
				| @ -88,7 +88,7 @@ Summary:        GNU Image Manipulation Program | |||||||
| Name:           gimp | Name:           gimp | ||||||
| Epoch:          2 | Epoch:          2 | ||||||
| Version:        2.10.8 | Version:        2.10.8 | ||||||
| %global rel 4 | %global rel 5 | ||||||
| Release:        %{?prerelprefix}%{rel}%{dotprerel}%{dotgitrev}%{?dist} | Release:        %{?prerelprefix}%{rel}%{dotprerel}%{dotgitrev}%{?dist} | ||||||
| 
 | 
 | ||||||
| # Compute some version related macros. | # Compute some version related macros. | ||||||
| @ -484,7 +484,8 @@ 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,#!%{__python2},' -i "$file" |         sed -r '1s,^#!\s*%{_bindir}/env\s+python$,#!%{__python2},' -i "$file" | ||||||
|  |         sed -r '1s,^#!\s*%{_bindir}/env\s+python2$,#!%{__python2},' -i "$file" | ||||||
|     done |     done | ||||||
| 
 | 
 | ||||||
| echo "%{__python2}=%{__python2}" >> %{buildroot}%{_libdir}/gimp/%{lib_api_version}/interpreters/pygimp.interp | echo "%{__python2}=%{__python2}" >> %{buildroot}%{_libdir}/gimp/%{lib_api_version}/interpreters/pygimp.interp | ||||||
| @ -691,6 +692,9 @@ make check %{?_smp_mflags} | |||||||
| %endif | %endif | ||||||
| 
 | 
 | ||||||
| %changelog | %changelog | ||||||
|  | * Mon Nov 12 2018 Björn Esser <besser82@fedoraproject.org> - 2:2.10.8-5 | ||||||
|  | - fix versionized Python interpreter path | ||||||
|  | 
 | ||||||
| * Sat Nov 10 2018 Nils Philippsen <nils@tiptoe.de> - 2:2.10.8-4 | * Sat Nov 10 2018 Nils Philippsen <nils@tiptoe.de> - 2:2.10.8-4 | ||||||
| - more fun with Python byte-compilation on Fedora 28 | - more fun with Python byte-compilation on Fedora 28 | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user