diff --git a/hplip-dj990c-margin.patch b/hplip-dj990c-margin.patch new file mode 100644 index 0000000..1091384 --- /dev/null +++ b/hplip-dj990c-margin.patch @@ -0,0 +1,15 @@ +diff -up hplip-3.14.10/prnt/drv/hpcups.drv.in.dj990c-margin hplip-3.14.10/prnt/drv/hpcups.drv.in +--- hplip-3.14.10/prnt/drv/hpcups.drv.in.dj990c-margin 2014-12-23 15:55:09.779368939 +0000 ++++ hplip-3.14.10/prnt/drv/hpcups.drv.in 2014-12-23 15:55:24.488454126 +0000 +@@ -1531,9 +1531,9 @@ Manufacturer "HP" + "<>setpagedevice" + CustomMedia "Letter.Duplex/Letter AutoDuplex 8.5x11in" 612 783 18 27 18 36 "<>setpagedevice" + "<>setpagedevice" +- CustomMedia "A4/A4 210x297mm" 595.44 841.68 18 36.00 18 9.00 "<>setpagedevice" ++ CustomMedia "A4/A4 210x297mm" 595.44 841.68 9 36.00 9 9.00 "<>setpagedevice" + "<>setpagedevice" +- CustomMedia "A4.Duplex/A4 AutoDuplex 210x297mm" 595 833 18 27 18 36 "<>setpagedevice" ++ CustomMedia "A4.Duplex/A4 AutoDuplex 210x297mm" 595 833 9 27 9 36 "<>setpagedevice" + "<>setpagedevice" + CustomMedia "ExecutiveJIS/Executive (JIS) 8.5x12.986in" 612 936 18 36 18 9 "<>setpagedevice" + "<>setpagedevice" diff --git a/hplip.spec b/hplip.spec index 6a50125..11c4831 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: 3%{?dist} +Release: 4%{?dist} License: GPLv2+ and MIT Url: http://hplip.sourceforge.net/ @@ -35,6 +35,7 @@ Patch18: hplip-log-stderr.patch Patch19: hplip-avahi-parsing.patch Patch20: hplip-reportlab.patch Patch21: hplip-device_open.patch +Patch22: hplip-dj990c-margin.patch %global hpijs_epoch 1 Requires: hpijs%{?_isa} = %{hpijs_epoch}:%{version}-%{release} @@ -259,6 +260,9 @@ done # port device is used (bug #1159161). %patch21 -p1 -b .device_open +# Fixed left/right margins for HP DeskJet 990C (LP #1405212). +%patch22 -p1 -b .dj990c-margin + sed -i.duplex-constraints \ -e 's,\(UIConstraints.* \*Duplex\),//\1,' \ prnt/drv/hpcups.drv.in @@ -495,6 +499,9 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop %postun libs -p /sbin/ldconfig %changelog +* Tue Dec 23 2014 Tim Waugh - 3.14.10-4 +- Fixed left/right margins for HP DeskJet 990C (LP #1405212). + * Tue Nov 4 2014 Tim Waugh - 3.14.10-3 - IEEE 1284 Device ID for HP LaserJet Professional M1132 MFP (bug #1158743 comment #5).