![](https://seccdn.libravatar.org/avatar/af22e20b6884acbc89be6d7736c43e92.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package manufacturer-PPDs checked in at Fri Oct 20 14:07:03 CEST 2006. -------- --- manufacturer-PPDs/manufacturer-PPDs.changes 2006-10-19 16:04:38.000000000 +0200 +++ /mounts/work_src_done/NOARCH/manufacturer-PPDs/manufacturer-PPDs.changes 2006-10-20 12:53:07.000000000 +0200 @@ -1,0 +2,6 @@ +Fri Oct 20 12:52:06 CEST 2006 - jsmeix@suse.de + +- Fix bugs in HP PPDs ("* PageRegion" must be "*PageRegion"). +- Check and warn for duplicate NickName entries. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ manufacturer-PPDs.spec ++++++ --- /var/tmp/diff_new_pack.T1D5mr/_old 2006-10-20 14:06:48.000000000 +0200 +++ /var/tmp/diff_new_pack.T1D5mr/_new 2006-10-20 14:06:48.000000000 +0200 @@ -38,11 +38,6 @@ # Remove old version PPDs (according to the file or directory-date at LinuxPrinting.org). # Rename all PPDs to have the suffix .ppd (and not .ppd.1, .ppd.2, ...). # Some PPDs may have MAC style cr line breaks. Recode or translate them to nl. -# Some PPDs contain "1284DeviceId" which must be "1284DeviceID": -# for p in hp/*.ppd -# do perl -pi -e 's/600x600x2dpi/600x1200dpi/;' $p -# done -# Test them with cupstestppd and fix remaining trivial bugs manually. # Make a bzip2 compressed tar-archive of the remaining PPDs: # tar -cjvf hp.ppd.tar.bz2 hp/*.ppd Source0: hp.ppd.tar.bz2 @@ -219,7 +214,7 @@ Source1130: toshiba.license # The package version matches to the openSUSE version: Version: 10.2 -Release: 1 +Release: 3 # Install into this non-root directory (required when norootforbuild is used): BuildRoot: %{_tmppath}/%{name}-%{version}-build %prep @@ -311,6 +306,13 @@ sed -i -e "/^\*DefaultResolution: [0-9][0-9]*x[0-9][0-9]*\$/s/$/dpi/" $p sed -i -e "/^\*Resolution [0-9][0-9]*x[0-9][0-9]*\//s/\//dpi\//" $p done +# Fix bugs in HP PPDs: +# Some PPDs contain "1284DeviceId" which must be "1284DeviceID". +# Some PPDs contain "* PageRegion" which must be "*PageRegion". +for p in hp/*.ppd +do perl -pi -e 's/1284DeviceId/1284DeviceID/;' $p + perl -pi -e 's/\* PageRegion/*PageRegion/;' $p +done # Correct problematic HP PPDs: # HP_LaserJet_5Si.ppd works only when this printer has the optional PostScript module: sed -i -e '/^\*NickName:/s/ (recommended)//' hp/HP_LaserJet_5Si.ppd @@ -370,6 +372,14 @@ do grep -v DuplexBooklet $p | cupstestppd - || { rm -v $p ; continue ; } gzip $p done +# For each manufacturer check and warn for duplicate NickName entries. +# Usually the NickName entry is shown to the user to let him select a PPD +# and then PPDs with same NickName entries are undistinguishable for the user. +# Nevertheless we keep them because e.g. in YaST or when using "lpadmin" +# the user can alternatively select a PPD via its file name. +for d in hp oce sharp epson kyocera oki ricoh gestetner infotec lanier nrg savin brother toshiba TurbolinuxJapanesePPDs +do zgrep -h '^\*NickName:' $d/*.ppd.gz | grep -o '"[^"]*"' | sort -f | uniq -dci | grep '.*' && echo "duplicate NickName entries for $d" +done %install # Make the install directories and install the matching PPDs: @@ -403,6 +413,9 @@ %changelog -n manufacturer-PPDs +* Fri Oct 20 2006 - jsmeix@suse.de +- Fix bugs in HP PPDs ("* PageRegion" must be "*PageRegion"). +- Check and warn for duplicate NickName entries. * Wed Oct 18 2006 - jsmeix@suse.de - Updated PPDs from the following manufacturers to the newest available from LinuxPrinting.org: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@suse.de