Hello community,
here is the log from the commit of package hplip
checked in at Wed Apr 26 17:59:52 CEST 2006.
--------
--- hplip/hplip.changes 2006-02-24 14:13:12.000000000 +0100
+++ STABLE/hplip/hplip.changes 2006-04-26 12:12:22.000000000 +0200
@@ -1,0 +2,6 @@
+Wed Apr 26 12:11:00 CEST 2006 - jsmeix@suse.de
+
+- Fixed PPDs for "LaserJet 5Si" and "LaserJet 5MP"
+ (see Suse bugzilla bug #164991).
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ hplip.spec ++++++
--- /var/tmp/diff_new_pack.to8X4j/_old 2006-04-26 17:59:49.000000000 +0200
+++ /var/tmp/diff_new_pack.to8X4j/_new 2006-04-26 17:59:49.000000000 +0200
@@ -14,7 +14,7 @@
BuildRequires: cups cups-devel libdrm-devel libjpeg-devel net-snmp-devel pkgconfig python-devel python-openssl python-qt python-tk python-xml qt3-devel readline-devel sane update-desktop-files
Summary: HP's Printing and Scanning Software
Version: 0.9.7
-Release: 6
+Release: 16
%define hpijsVersion 2.1.7
Group: Hardware/Printing
License: GPL, X11/MIT
@@ -74,6 +74,7 @@
Cory Meisch
Yie Shiyun
Donald J. Welch
+ Cauligi Raghothama S.
%package hpijs
Summary: HPIJS for HP's printing and scanning software HPLIP.
@@ -100,6 +101,7 @@
Cory Meisch
Yie Shiyun
Donald J. Welch
+ Cauligi Raghothama S.
%prep
# Be quiet when unpacking:
@@ -175,7 +177,8 @@
rm %{buildroot}%{_datadir}/cups/model/foomatic-ppds
rm -r %{buildroot}%{_datadir}/ppd/
# Make some general tests and adjustments for all PPDs (see manufacturer-PPDs.spec):
-gunzip %{buildroot}%{_datadir}/cups/model/manufacturer-PPDs/%{name}/*.ppd.gz
+pushd %{buildroot}%{_datadir}/cups/model/manufacturer-PPDs/%{name}
+gunzip *.ppd.gz
# Correct or remove non-working PPDs:
# Several HP PPDs contain "600x600x2dpi" which is not allowed
# according to the Adobe PPD specification section 5.9
@@ -183,13 +186,18 @@
# because "600x1200dpi" is not used elsewhere in the PPD.
# Some PPDs contain a "*cupsFilter: ... hppostprocessing" line
# which cannot work because there is no "hppostprocessing" filter.
-for p in %{buildroot}%{_datadir}/cups/model/manufacturer-PPDs/%{name}/*.ppd
+for p in *.ppd
do perl -pi -e 's/600x600x2dpi/600x1200dpi/;' $p
grep -q '^\*cupsFilter:.*hppostprocessing' $p && rm -v $p
done
+# HP_LaserJet_5Si.ppd works only when this printer has the optional PostScript module:
+sed -i -e '/^\*NickName:/s/ (recommended)//' HP_LaserJet_5Si.ppd
+sed -i -e '/^\*ModelName:/s/5Si/5Si MX/' HP_LaserJet_5Si.ppd
+# HP_LaserJet_5MP.ppd works only for the model with the built-in PostScript module ("MP"):
+sed -i -e '/^\*ModelName:/s/5P/5MP/' HP_LaserJet_5MP.ppd
# Change default media size to A4 if this is an available choice in the PPD and then
# set DefaultPageSize, DefaultPageRegion, DefaultImageableArea, DefaultPaperDimension to A4:
-for p in %{buildroot}%{_datadir}/cups/model/manufacturer-PPDs/%{name}/*.ppd
+for p in *.ppd
do for i in PageSize PageRegion ImageableArea PaperDimension
do if grep -q "^\*$i[[:space:]]*A4[:/]" $p
then grep -q "^\*Default$i:[[:space:]]*A4\$" $p || perl -pi -e "s/^\*Default$i:.*/\*Default$i: A4/" $p
@@ -199,10 +207,12 @@
# Final test by cupstestppd:
# Only keep files which don't FAIL for cupstestppd.
# To save disk space gzip the files (gzipped PPDs can also be used by CUPS):
-for p in %{buildroot}%{_datadir}/cups/model/manufacturer-PPDs/%{name}/*.ppd
+for p in *.ppd
do cupstestppd $p || { rm -v $p ; continue ; }
gzip $p
done
+popd
+# End of the general tests and adjustments for all PPDs.
# Move the installed HPIJS documentation files to the usual place:
install -d %{buildroot}%{_defaultdocdir}/%{name}/hpijs-%{hpijsVersion}
mv %{buildroot}%{_datadir}/doc/hpijs-%{hpijsVersion}/* %{buildroot}%{_defaultdocdir}/%{name}/hpijs-%{hpijsVersion}/
@@ -276,6 +286,9 @@
%{_libdir}/libhpip.*
%changelog -n hplip
+* Wed Apr 26 2006 - jsmeix@suse.de
+- Fixed PPDs for "LaserJet 5Si" and "LaserJet 5MP"
+ (see Suse bugzilla bug #164991).
* Fri Feb 24 2006 - jsmeix@suse.de
- Fixed an array index underflow (for LJ1010, LJ1012)
in ljfastraster.cpp (Suse Bugzilla #152720).
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...