replace shebang to work with python36 [release 3.20.3-2mamba;Wed May 13 2020]
This commit is contained in:
parent
d1c61cf593
commit
7c0cdc929f
17
hplip.spec
17
hplip.spec
@ -3,7 +3,7 @@
|
|||||||
%define cups_ver %(cups-config --api-version)
|
%define cups_ver %(cups-config --api-version)
|
||||||
Name: hplip
|
Name: hplip
|
||||||
Version: 3.20.3
|
Version: 3.20.3
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: A printer driver for HP inkjet devices
|
Summary: A printer driver for HP inkjet devices
|
||||||
Group: System/Spooling
|
Group: System/Spooling
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -94,6 +94,16 @@ sed -i "s|chmod 774|/bin/true 774|" Makefile.in
|
|||||||
|
|
||||||
sh %{SOURCE1} --target hplip-%{version}-plugin --noexec
|
sh %{SOURCE1} --target hplip-%{version}-plugin --noexec
|
||||||
|
|
||||||
|
#replace shebang lines to python3 interpreter (from hplip-install)
|
||||||
|
PAT1="#!\/usr\/bin\/(env )?python$"
|
||||||
|
PAT2="#!\/usr\/bin\/env python3\.6"
|
||||||
|
for pyfile in `find . -maxdepth 1 -name "*.py"`; do
|
||||||
|
sed -i -r "0,/$PAT1/s//$PAT2/" $pyfile
|
||||||
|
done
|
||||||
|
for pyfile in `find . -type f \( -iname hpps -o -iname hpfax.py -o -iname pstotiff \)`; do
|
||||||
|
sed -i -r "0,/$PAT1/s//$PAT2/" $pyfile
|
||||||
|
done
|
||||||
|
|
||||||
export AUTOMAKE='automake --foreign'
|
export AUTOMAKE='automake --foreign'
|
||||||
autoreconf -f -i
|
autoreconf -f -i
|
||||||
|
|
||||||
@ -299,6 +309,9 @@ fi
|
|||||||
%{_localstatedir}/lib/hp/hplip.state
|
%{_localstatedir}/lib/hp/hplip.state
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed May 13 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.20.3-2mamba
|
||||||
|
- replace shebang to work with python36
|
||||||
|
|
||||||
* Fri Mar 13 2020 Automatic Build System <autodist@mambasoft.it> 3.20.3-1mamba
|
* Fri Mar 13 2020 Automatic Build System <autodist@mambasoft.it> 3.20.3-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
@ -556,7 +569,7 @@ fi
|
|||||||
* Tue Jun 20 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 1.6.6-1qilnx
|
* Tue Jun 20 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 1.6.6-1qilnx
|
||||||
- update to version 1.6.6 by autospec
|
- update to version 1.6.6 by autospec
|
||||||
|
|
||||||
* Sun Jan 07 2006 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.7-1qilnx
|
* Sat Jan 07 2006 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.7-1qilnx
|
||||||
- renamed from hpijs to hplip
|
- renamed from hpijs to hplip
|
||||||
- foomatic files install remove (already provided by foomatic)
|
- foomatic files install remove (already provided by foomatic)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user