- Compare MFG and MDL fields case insensitively when adding automatic
queues, because HPLIP provides them with different case than the actual devices do. Upstream HPLIP bug: https://bugs.launchpad.net/hplip/+bug/405804
This commit is contained in:
parent
76a01ca745
commit
dba4e31faa
14
system-config-printer-hplip-hack.patch
Normal file
14
system-config-printer-hplip-hack.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
diff -up system-config-printer-1.1.11/udev/udev-configure-printer.c.hplip-hack system-config-printer-1.1.11/udev/udev-configure-printer.c
|
||||||
|
--- system-config-printer-1.1.11/udev/udev-configure-printer.c.hplip-hack 2009-08-07 17:42:55.000000000 +0100
|
||||||
|
+++ system-config-printer-1.1.11/udev/udev-configure-printer.c 2009-08-14 15:50:32.302334316 +0100
|
||||||
|
@@ -791,8 +791,8 @@ find_matching_device_uris (struct device
|
||||||
|
|
||||||
|
/* Now check the manufacturer and model names. */
|
||||||
|
if (device_uri && this_id.mfg && this_id.mdl &&
|
||||||
|
- !strcmp (this_id.mfg, id->mfg) &&
|
||||||
|
- !strcmp (this_id.mdl, id->mdl))
|
||||||
|
+ !strcasecmp (this_id.mfg, id->mfg) &&
|
||||||
|
+ !strcasecmp (this_id.mdl, id->mdl))
|
||||||
|
{
|
||||||
|
/* We've checked everything except the serial numbers. This
|
||||||
|
* is more complicated. Some devices include a serial
|
@ -7,7 +7,7 @@
|
|||||||
Summary: A printer administration tool
|
Summary: A printer administration tool
|
||||||
Name: system-config-printer
|
Name: system-config-printer
|
||||||
Version: 1.1.11
|
Version: 1.1.11
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://cyberelk.net/tim/software/system-config-printer/
|
URL: http://cyberelk.net/tim/software/system-config-printer/
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
@ -15,6 +15,7 @@ Source0: http://cyberelk.net/tim/data/system-config-printer/1.1/system-config-pr
|
|||||||
Source1: http://cyberelk.net/tim/data/pycups/pycups-%{pycups_version}.tar.bz2
|
Source1: http://cyberelk.net/tim/data/pycups/pycups-%{pycups_version}.tar.bz2
|
||||||
Source2: http://cyberelk.net/tim/data/pysmbc/pysmbc-%{pysmbc_version}.tar.bz2
|
Source2: http://cyberelk.net/tim/data/pysmbc/pysmbc-%{pysmbc_version}.tar.bz2
|
||||||
Patch1: system-config-printer-getdevices.patch
|
Patch1: system-config-printer-getdevices.patch
|
||||||
|
Patch2: system-config-printer-hplip-hack.patch
|
||||||
|
|
||||||
BuildRequires: cups-devel >= 1.2
|
BuildRequires: cups-devel >= 1.2
|
||||||
BuildRequires: python-devel >= 2.4
|
BuildRequires: python-devel >= 2.4
|
||||||
@ -76,6 +77,7 @@ printers.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -a 1 -a 2
|
%setup -q -a 1 -a 2
|
||||||
%patch1 -p1 -b .getdevices
|
%patch1 -p1 -b .getdevices
|
||||||
|
%patch2 -p1 -b .hplip-hack
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --with-udev-rules
|
%configure --with-udev-rules
|
||||||
@ -188,6 +190,12 @@ rm -rf %buildroot
|
|||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 14 2009 Tim Waugh <twaugh@redhat.com> 1.1.11-4
|
||||||
|
- Compare MFG and MDL fields case insensitively when adding automatic
|
||||||
|
queues, because HPLIP provides them with different case than the
|
||||||
|
actual devices do. Upstream HPLIP bug:
|
||||||
|
https://bugs.launchpad.net/hplip/+bug/405804
|
||||||
|
|
||||||
* Fri Aug 14 2009 Tim Waugh <twaugh@redhat.com> 1.1.11-3
|
* Fri Aug 14 2009 Tim Waugh <twaugh@redhat.com> 1.1.11-3
|
||||||
- Own /var/run/udev-configure-printer.
|
- Own /var/run/udev-configure-printer.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user