diff --git a/hplip-requirespageregion.patch b/hplip-requirespageregion.patch new file mode 100644 index 0000000..bc4c50c --- /dev/null +++ b/hplip-requirespageregion.patch @@ -0,0 +1,12 @@ +diff -up hplip-3.9.8/prnt/drv/hpcups.drv.in.margins hplip-3.9.8/prnt/drv/hpcups.drv.in +--- hplip-3.9.8/prnt/drv/hpcups.drv.in.margins 2009-08-26 09:58:47.957555770 +0100 ++++ hplip-3.9.8/prnt/drv/hpcups.drv.in 2009-08-26 11:39:43.443555856 +0100 +@@ -115,6 +115,8 @@ Filter "application/vnd.cups-raster 0 hp + // Manufacturer - PPD spec has "HP" registered for "Hewlett-Packard"... + Manufacturer "HP" + ++Attribute "RequiresPageRegion" "All" "True" ++ + ///////// DJ9xx + { + diff --git a/hplip.spec b/hplip.spec index bad14c4..81fcc2b 100644 --- a/hplip.spec +++ b/hplip.spec @@ -1,7 +1,7 @@ Summary: HP Linux Imaging and Printing Project Name: hplip Version: 3.9.8 -Release: 10%{?dist} +Release: 11%{?dist} License: GPLv2+ and MIT Group: System Environment/Daemons Conflicts: system-config-printer < 0.6.132 @@ -21,6 +21,7 @@ Patch5: hplip-clear-previous-state-reasons.patch Patch6: hplip-state-reasons-newline.patch Patch7: hplip-parenths.patch Patch8: hplip-non-scripts.patch +Patch9: hplip-requirespageregion.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires(pre): /sbin/service @@ -133,6 +134,9 @@ rm -rf $RPM_BUILD_DIR/%{name}-%{version} # Don't install base/*.py with executable bit set. %patch8 -p1 -b .non-scripts +# Set RequiresPageRegion in hpcups PPDs (bug #518756). +%patch9 -p1 -b .requirespageregion + %build %configure \ --enable-scan-build --enable-gui-build --enable-fax-build \ @@ -337,6 +341,9 @@ fi exit 0 %changelog +* Wed Aug 26 2009 Tim Waugh 3.9.8-11 +- Set RequiresPageRegion in hpcups PPDs (bug #518756). + * Tue Aug 25 2009 Tim Waugh 3.9.8-10 - Removed never-used definition of BREAKPOINT in scan/sane/common.h in hope of fixing the build.