Accepting request 873230 from home:Sauerland

added a patch to support some printers

OBS-URL: https://build.opensuse.org/request/show/873230
OBS-URL: https://build.opensuse.org/package/show/Printing/hplip?expand=0&rev=211
This commit is contained in:
2021-02-19 10:20:08 +00:00
committed by Git OBS Bridge
parent 8ed15c02ce
commit c5032febc1
3 changed files with 618 additions and 2 deletions

View File

@@ -25,7 +25,7 @@
%global use_qt5 1
Name: hplip
Version: 3.20.11
Release: 0
Release: lp152.227.1
Summary: HP's Printing, Scanning, and Faxing Software
License: BSD-3-Clause AND GPL-2.0-or-later AND MIT
Group: Hardware/Printing
@@ -84,6 +84,7 @@ Patch401: hplip-orblite-return-null.diff
Patch402: hplip-change-pgp-server.patch
# boo#1107711
Patch403: Revert-changes-from-3.18.5-that-break-hp-setup-for-f.patch
Patch500: hplip-missing-drivers.patch
BuildRequires: %{pymod devel}
BuildRequires: %{pymod qt5-devel}
BuildRequires: %{pymod xml}
@@ -319,7 +320,7 @@ This sub-package is only required by developers.
%patch401 -p1
%patch402 -p1
%patch403 -p1
%patch500 -p1
# replace "env" shebang and "/usr/bin/python" with real executable
find . -name '*.py' -o -name pstotiff | \
xargs -n 1 sed -i '1s,^#!\(%{_bindir}/env python\|%{_bindir}/python\),#!%{pyexe},'