diff --git a/hplip.spec b/hplip.spec index 815ea4b..70b01e2 100644 --- a/hplip.spec +++ b/hplip.spec @@ -3,7 +3,7 @@ %define cups_ver %(cups-config --api-version) Name: hplip Version: 3.20.3 -Release: 1mamba +Release: 2mamba Summary: A printer driver for HP inkjet devices Group: System/Spooling Vendor: openmamba @@ -94,6 +94,16 @@ sed -i "s|chmod 774|/bin/true 774|" Makefile.in 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' autoreconf -f -i @@ -299,6 +309,9 @@ fi %{_localstatedir}/lib/hp/hplip.state %changelog +* Wed May 13 2020 Silvan Calarco 3.20.3-2mamba +- replace shebang to work with python36 + * Fri Mar 13 2020 Automatic Build System 3.20.3-1mamba - automatic version update by autodist @@ -556,7 +569,7 @@ fi * Tue Jun 20 2006 Stefano Cotta Ramusino 1.6.6-1qilnx - update to version 1.6.6 by autospec -* Sun Jan 07 2006 Silvan Calarco 0.9.7-1qilnx +* Sat Jan 07 2006 Silvan Calarco 0.9.7-1qilnx - renamed from hpijs to hplip - foomatic files install remove (already provided by foomatic)