From b9bcaedc9d19a028deb9e0b2d4890cc83cf4b57c Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Tue, 4 Nov 2014 10:58:08 +0000 Subject: [PATCH 1/2] IEEE 1284 Device ID for HP LaserJet Color M451dn (bug #1159380). --- hplip-deviceIDs-ppd.patch | 11 +++++++++++ hplip.spec | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/hplip-deviceIDs-ppd.patch b/hplip-deviceIDs-ppd.patch index 0399f5b..c869e03 100644 --- a/hplip-deviceIDs-ppd.patch +++ b/hplip-deviceIDs-ppd.patch @@ -592,3 +592,14 @@ diff -up hplip-3.13.7/prnt/ps/hp-laserjet_p3010_series-ps.ppd.deviceIDs-ppd hpli *Product: "(HP LaserJet P3015)" *Product: "(Hewlett-Packard HP LaserJet P3015)" *Product: "(HP LaserJet P3011)" +diff -up hplip-3.14.10/prnt/ps/hp-lj_300_400_color_m351_m451-ps.ppd.gz-deviceid hplip-3.14.10/prnt/ps/hp-lj_300_400_color_m351_m451-ps.ppd +--- hplip-3.14.10/prnt/ps/hp-lj_300_400_color_m351_m451-ps.ppd.gz-deviceid 2014-11-04 09:41:13.200005393 +0000 ++++ hplip-3.14.10/prnt/ps/hp-lj_300_400_color_m351_m451-ps.ppd 2014-11-04 09:42:13.168312042 +0000 +@@ -82,6 +82,7 @@ + *cupsManualCopies: False + *cupsLanguages: "en da de es fi fr it ja ko nb nl pt ru sv zh_CN zh_TW" + *cupsFilter: "application/vnd.cups-postscript 0 hpps" ++*1284DeviceID: "MFG:Hewlett-Packard;MDL:HP LaserJet 400 color M451dn;DES:HP LaserJet 400 color M451dn;" + *UIConstraints: *HPOption_Duplexer False *Duplex + *UIConstraints: *Duplex *HPOption_Duplexer False + *UIConstraints: *HPOption_Tray3 False *InputSlot Tray3 diff --git a/hplip.spec b/hplip.spec index 66afe0f..e4448ab 100644 --- a/hplip.spec +++ b/hplip.spec @@ -7,7 +7,7 @@ Summary: HP Linux Imaging and Printing Project Name: hplip Version: 3.14.10 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ and MIT Url: http://hplip.sourceforge.net/ @@ -216,6 +216,7 @@ mv prnt/drv/hpijs.drv.in{,.deviceIDs-drv-hpijs} # Designjet T770 (bug #747957) # Color LaserJet CM4540 MFP (bug #968177) # Color LaserJet cp4005 (bug #980976) +# HP LaserJet Color M451dn (bug #1159380) for ppd_file in $(grep '^diff' %{PATCH14} | cut -d " " -f 4); do gunzip ${ppd_file#*/}.gz @@ -492,6 +493,9 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop %postun libs -p /sbin/ldconfig %changelog +* Tue Nov 4 2014 Tim Waugh - 3.14.10-2 +- IEEE 1284 Device ID for HP LaserJet Color M451dn (bug #1159380). + * Tue Oct 07 2014 Jiri Popelka - 3.14.10-1 - 3.14.10 From ad222e464179fde1e359cbe63f4c72a7826c642b Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Tue, 4 Nov 2014 11:00:03 +0000 Subject: [PATCH 2/2] IEEE 1284 Device ID for HP LaserJet Professional M1132 MFP (bug #1158743 comment #5). --- hplip-deviceIDs-drv.patch | 13 +++++++++++-- hplip.spec | 3 +++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/hplip-deviceIDs-drv.patch b/hplip-deviceIDs-drv.patch index 4021dde..81e2372 100644 --- a/hplip-deviceIDs-drv.patch +++ b/hplip-deviceIDs-drv.patch @@ -1,6 +1,6 @@ diff -up hplip-3.14.10/prnt/drv/hpcups.drv.in.deviceIDs-drv hplip-3.14.10/prnt/drv/hpcups.drv.in ---- hplip-3.14.10/prnt/drv/hpcups.drv.in.deviceIDs-drv 2014-10-07 10:56:09.000000000 +0200 -+++ hplip-3.14.10/prnt/drv/hpcups.drv.in 2014-10-07 15:57:42.392251535 +0200 +--- hplip-3.14.10/prnt/drv/hpcups.drv.in.deviceIDs-drv 2014-10-07 09:56:09.000000000 +0100 ++++ hplip-3.14.10/prnt/drv/hpcups.drv.in 2014-11-04 10:47:59.260551958 +0000 @@ -473,7 +473,7 @@ Manufacturer "HP" ModelName "HP Officejet v40xi" Attribute "NickName" "" "HP Officejet v40xi, hpcups $Version" @@ -1613,6 +1613,15 @@ diff -up hplip-3.14.10/prnt/drv/hpcups.drv.in.deviceIDs-drv hplip-3.14.10/prnt/d PCFileName "hp-laserjet_professional_p1102.ppd" Attribute "Product" "" "(HP LaserJet Professional p1102 Printer)" Attribute "Product" "" "(HP LaserJet Professional p1102s Printer)" +@@ -17335,7 +17338,7 @@ Group "RLT/HP Real Life Technologies" + ModelName "HP LaserJet Professional m1132 MFP" + Attribute "NickName" "" "HP LaserJet Professional m1132 MFP, hpcups $Version, requires proprietary plugin" + Attribute "ShortNickName" "" "HP LJ Professional m1132 MFP" +- Attribute "1284DeviceID" "" "MFG:HP;MDL:hp laserjet professional m1132 mfp;DES:hp laserjet professional m1132 mfp;" ++ Attribute "1284DeviceID" "" "MFG:Hewlett-Packard;MDL:hp laserjet professional m1132 mfp;DES:hp laserjet professional m1132 mfp;" + PCFileName "hp-laserjet_professional_m1132_mfp.ppd" + Attribute "Product" "" "(HP LaserJet Professional m1132 Multifunction Printer)" + Attribute "Product" "" "(HP LaserJet Professional m1132s Multifunction Printer)" @@ -17376,7 +17379,7 @@ Group "RLT/HP Real Life Technologies" ModelName "HP LaserJet Professional m1212nf MFP" Attribute "NickName" "" "HP LaserJet Professional m1212nf MFP, hpcups $Version, requires proprietary plugin" diff --git a/hplip.spec b/hplip.spec index e4448ab..4844edd 100644 --- a/hplip.spec +++ b/hplip.spec @@ -166,6 +166,7 @@ SANE driver for scanners in HP's multi-function devices (from HPOJ). # LaserJet Professional P1102w (bug #795958) # Color LaserJet CM4540 MFP (bug #968177) # Color LaserJet cp4005 (bug #980976) +# HP LaserJet Professional M1132 MFP (bug #1158743) %patch5 -p1 -b .deviceIDs-drv chmod +x %{SOURCE2} mv prnt/drv/hpijs.drv.in{,.deviceIDs-drv-hpijs} @@ -494,6 +495,8 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop %changelog * Tue Nov 4 2014 Tim Waugh - 3.14.10-2 +- IEEE 1284 Device ID for HP LaserJet Professional M1132 MFP + (bug #1158743 comment #5). - IEEE 1284 Device ID for HP LaserJet Color M451dn (bug #1159380). * Tue Oct 07 2014 Jiri Popelka - 3.14.10-1