commit 91a96d8d2c51ae69c5956e4d14c253ed7bc737ff8442fdafa71e63bb3953252b Author: OBS User unknown Date: Wed Dec 20 17:14:39 2006 +0000 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hplip?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/change-doc-install-dir.diff b/change-doc-install-dir.diff new file mode 100644 index 0000000..8785b83 --- /dev/null +++ b/change-doc-install-dir.diff @@ -0,0 +1,22 @@ +--- Makefile.am.orig 2006-12-14 14:40:24.000000000 +0100 ++++ Makefile.am 2006-12-14 14:41:49.000000000 +0100 +@@ -10,7 +10,7 @@ INCLUDES = -Iip -Iapi + hplipdir = $(datadir)/hplip + rundir = /var/run + +-docdir = $(datadir)/doc/$(distdir) ++docdir = $(datadir)/doc/packages/hplip + doc_DATA = COPYING scan/sane/hpaio.desc + + wwwsrc = doc +--- prnt/hpijs/Makefile.am.orig 2006-12-14 14:59:55.000000000 +0100 ++++ prnt/hpijs/Makefile.am 2006-12-14 15:01:32.000000000 +0100 +@@ -2,7 +2,7 @@ if HPLIP_BUILD + INCLUDES = -I../../ip -I../../api + endif + +-docdir = $(datadir)/doc/$(distdir) ++docdir = $(datadir)/doc/packages/hplip + ppddir = $(datadir)/cups/model/manufacturer-PPDs/hplip + + #APDKLABEL=JetReady_PreMerge_11-08-04 diff --git a/change-ppd-install-dir.diff b/change-ppd-install-dir.diff new file mode 100644 index 0000000..6cd97ce --- /dev/null +++ b/change-ppd-install-dir.diff @@ -0,0 +1,20 @@ +--- Makefile.am.orig 2006-06-14 19:43:09.000000000 +0200 ++++ Makefile.am 2006-06-19 15:14:50.000000000 +0200 +@@ -70,7 +70,7 @@ + + cupsdir = $(CUPS_BACKEND_PATH) + cupsppddir = $(CUPS_PPD_PATH) +-hpppddir = $(datadir)/ppd/HP ++hpppddir = $(datadir)/cups/model/manufacturer-PPDs/hplip + + # hp backend. + cups_PROGRAMS = hp +--- prnt/hpijs/Makefile.am.orig 2006-06-15 22:44:32.000000000 +0200 ++++ prnt/hpijs/Makefile.am 2006-06-19 15:39:03.000000000 +0200 +@@ -1,5 +1,5 @@ + docdir = $(datadir)/doc/$(distdir) +-ppddir = $(datadir)/ppd/HP ++ppddir = $(datadir)/cups/model/manufacturer-PPDs/hplip + + #APDKLABEL=JetReady_PreMerge_11-08-04 + APDKLABEL=HPLIP-0_9_11_11C diff --git a/fix-uninitialized-variables.diff b/fix-uninitialized-variables.diff new file mode 100644 index 0000000..aa8c525 --- /dev/null +++ b/fix-uninitialized-variables.diff @@ -0,0 +1,11 @@ +--- ip/xmatrix.c.orig 2004-02-18 23:43:44.000000000 +0100 ++++ ip/xmatrix.c 2005-05-17 13:48:17.000000000 +0200 +@@ -380,7 +380,7 @@ + + while (pwOut < (WORD*)pOutAfter) + { +- int prod0, prod1, prod2; ++ int prod0 = 0, prod1 = 0, prod2 = 0; + + /* The fixed-point calculations below are as follows: + * 17.15 = input pixel diff --git a/hp-toolbox.wrapper b/hp-toolbox.wrapper new file mode 100644 index 0000000..009fbbd --- /dev/null +++ b/hp-toolbox.wrapper @@ -0,0 +1,20 @@ +#! /bin/bash + +# If possible use the KDE program kdialog +# otherwise fall back to the generic X program xmessage. +if test -x $( type -p kdialog ) +then PopupProgram='kdialog --error' +else PopupProgram='xmessage' +fi + +# If hp-toolbox cannot access a hplip device +# then it doesn't show up on the X window system. +# It only shows an 'ERROR...' or 'error...' message on stderr +# but exits nevertheless with zero exit code. +# Note that one cannot grep for '^error' because there are leading +# escape codes (e.g. "esc [ 3 1 ; 0 1 m") in the output lines. +if test -x $( type -p hp-toolbox ) +then hp-toolbox 2>&1 1>/dev/null | grep -q -i 'error' && $PopupProgram 'No HP all-in-one device found (those devices require a special setup).' +else $PopupProgram 'Cannot execute hp-toolbox.' +fi + diff --git a/hpijs.1.gz b/hpijs.1.gz new file mode 100644 index 0000000..4537ec0 --- /dev/null +++ b/hpijs.1.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cfc7a2c917ec233811880cbbb2bff4fdcf8d8f1305e6caa057e7f21127e9ba6c +size 736 diff --git a/hplip-1.6.12.tar.bz2 b/hplip-1.6.12.tar.bz2 new file mode 100644 index 0000000..a9a19f0 --- /dev/null +++ b/hplip-1.6.12.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e6f3693712a96554e731928d9baa3182beaa971b9934edeb3f6e535aa2a272e6 +size 9603902 diff --git a/hplip-init-script.diff b/hplip-init-script.diff new file mode 100644 index 0000000..a2fffd4 --- /dev/null +++ b/hplip-init-script.diff @@ -0,0 +1,15 @@ +--- hplip.orig 2006-08-03 11:43:10.000000000 +0200 ++++ hplip 2006-08-03 11:57:49.000000000 +0200 +@@ -105,10 +105,10 @@ + RETVAL=$? + echo + [ $RETVAL = 0 ] && [ -d /var/lock/subsys ] && touch /var/lock/subsys/hpssd.py +-# killall -HUP cupsd ++ echo "Note: You may have to restart the cupsd." + if [ -f /var/lock/subsys/hpiod -a -f /var/lock/subsys/hpssd.py ]; then + touch /var/lock/subsys/hplip +- fi ++ fi + return $RETVAL + } + diff --git a/hplip.changes b/hplip.changes new file mode 100644 index 0000000..2273b0d --- /dev/null +++ b/hplip.changes @@ -0,0 +1,341 @@ +------------------------------------------------------------------- +Wed Dec 20 14:45:25 CET 2006 - jsmeix@suse.de + +- Updated to version 1.6.12: + Three more supported LaserJet printers. + Many bug fixes (no Suse bugs). + For details see release_notes.html + Added SANE_DEBUG_HPAIO support for the hpaio SANE backend. + The new models.dat file replaces the .xml files. The hplip_api + can be used to get model attributes without running the HPLIP + daemons. See hplip_api.h for reference (this affects the Suse + Bugzilla bugs #184798 and #184824). +- Fixed hp-toolbox.wrapper to catch 'error' regardless of the case + (see Suse Bugzilla bug #229620). + +------------------------------------------------------------------- +Tue Oct 17 09:59:50 CEST 2006 - jsmeix@suse.de + +- Updated to version 1.6.10: + Several more supported LaserJet printers. + Many bug fixes (no Suse bugs). +- Fixed typo in keyword in some LaserJet PPDs + ("* PageRegion" -> "*PageRegion"). + +------------------------------------------------------------------- +Mon Sep 18 11:02:03 CEST 2006 - jsmeix@suse.de + +- Updated to version 1.6.9: + Added support CD/DVD label printing (ie: PS D5100). + Several more supported Photosmart printers. + Many bug fixes (no Suse bugs). + +------------------------------------------------------------------- +Mon Sep 11 12:14:32 CEST 2006 - jsmeix@suse.de + +- Using generalised cupsext* and pcardext* in the files section + (instead of explicit only cupsext.so and pcardext.so) + so that it works now both for Python 2.4 and 2.5 + (the latter installs additional *.egg-info files). + +------------------------------------------------------------------- +Mon Sep 4 12:00:12 CEST 2006 - jsmeix@suse.de + +- Exchanged the hard RPM requirement for ghostscript_any by a + supplements entry for hplip-hpijs so that there is no longer + a mutual (cyclic) hard RPM dependency between hplip-hpijs + and ghostscript-library. + +------------------------------------------------------------------- +Thu Aug 3 11:37:07 CEST 2006 - jsmeix@suse.de + +- Updated to version 1.6.7: + Changed from dynamic IP ports to static IANA IP ports + for hpiod (2208) and hpssd (2207). + Two more supported Photosmart printers. + Several bug fixes (no Suse bugs). + +------------------------------------------------------------------- +Mon Jul 17 13:52:36 CEST 2006 - jsmeix@suse.de + +- Fixed PPDs which contain "1284DeviceId" which must be + "1284DeviceID" (detected by new CUPS 1.2 cupstestppd). + +------------------------------------------------------------------- +Wed Jun 28 14:47:47 CEST 2006 - jsmeix@suse.de + +- Updated to maintenance release 1.6.6a: + This provides various minor fixes and enhancements. + For details see doc/release_notes.html in the source + or /usr/share/doc/packages/hplip/release_notes.html + +------------------------------------------------------------------- +Mon Jun 19 13:46:28 CEST 2006 - jsmeix@suse.de + +- Updated to version 1.6.6: + HPLIP has reached 1.0 status. + With this release a date encoded revision number x.y.m is used: + x = major release number, y = year (6=2006), m = month (6=June) + Correct URLs in HTML docs (obsoletes fix-doc-hrefs.diff). + Removed DeviceOpen from hp backend. This fixes two problems: + 1) usblp will no longer be removed for device discovery + 2) device discovery will no longer cause Inkjets to power-up. + Added hpaio.desc file for SANE. + Several more supported printers. +- Cleaned up build (simplified spec file): + Changed install dir for PPDs and doc in Makefile.am. + Using configure without rpm-install. + Using configure with --disable-cups-install. + Links to work around inconsistent naming of python scripts + and links to hpfax backend and its associated PPD file + are no longer needed. + +------------------------------------------------------------------- +Fri Jun 9 12:19:59 CEST 2006 - jsmeix@suse.de + +- Added man page for /usr/bin/hpijs (hpijs.1.gz). +- Fixed wrong URLs in HTML documentation (fix-doc-hrefs.diff). +- Added links to work around inconsistent naming of python scripts. +- Added links to hpfax backend and its associated PPD file + to make them available as usual for CUPS setup tools. + +------------------------------------------------------------------- +Mon May 22 14:04:20 CEST 2006 - jsmeix@suse.de + +- Fixed typo (missing '"') in hplip-init-script.diff + +------------------------------------------------------------------- +Fri May 19 13:04:46 CEST 2006 - jsmeix@suse.de + +- Updated to version 0.9.11: + Revised and updated documentation. + Some more supported all-in-one devices and printers. + Several bug fixes (no Suse bugs). +- Updated to version 0.9.10: + Several bug fixes (no Suse bugs). +- Updated to version 0.9.9: + Uses libusb for all USB I/O. + CUPS USB DeviceURIs must be changed from + "hp:/hp_model?device=/dev/usb/lpX" (no longer supported) + to "hp:/hp_model?serial=xxxxxxxx". + One more supported all-in-one device. + Several bug fixes (no Suse bugs). +- Updated to version 0.9.8: + New PC send fax support via special CUPS backend (hpfax) + and special HP-Fax-hplip.ppd PPD file + and a new send fax UI (hp-sendfax). + Some more supported printers. + Several bug fixes (no Suse bugs). + +------------------------------------------------------------------- +Wed Apr 26 12:11:00 CEST 2006 - jsmeix@suse.de + +- Fixed PPDs for "LaserJet 5Si" and "LaserJet 5MP" + (see Suse bugzilla bug #164991). + +------------------------------------------------------------------- +Fri Feb 24 14:11:01 CET 2006 - jsmeix@suse.de + +- Fixed an array index underflow (for LJ1010, LJ1012) + in ljfastraster.cpp (Suse Bugzilla #152720). + +------------------------------------------------------------------- +Wed Jan 25 21:36:29 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Thu Jan 12 11:13:05 CET 2006 - jsmeix@suse.de + +- Set compiler flag "-fstack-protector-all" to build it with + "Stack Protector" via a so called "canary" (requires gcc >= 4.1) + +------------------------------------------------------------------- +Wed Jan 4 16:08:08 CET 2006 - jsmeix@suse.de + +- Moved /usr/lib[64]/libhpip.* library files to the hplip-hpijs + sub-package because /usr/bin/hpijs requires libhpip but for + special cases (e.g. for a minimal printing system) it should + be possible to use only HPIJS without the rest of HPLIP. + +------------------------------------------------------------------- +Tue Jan 3 14:52:07 CET 2006 - jsmeix@suse.de + +- Updated to version 0.9.7 + including the additional hplip-0.9.7-2.patch from HP. + +------------------------------------------------------------------- +Thu Dec 22 15:29:13 CET 2005 - ro@suse.de + +- requires: PyQt -> python-qt + +------------------------------------------------------------------- +Thu Dec 1 16:01:58 CET 2005 - jsmeix@suse.de + +- Removed unneeded KDE packages from "neededforbuild" since + the new package python-qt was split from kdebindings3-python + (see Suse bugzilla bug #135250). + +------------------------------------------------------------------- +Mon Nov 28 11:30:30 CET 2005 - jsmeix@suse.de + +- Replaced requirement for the package kdebindings3-python + by a generic requirement for the RPM capability PyQt + to avoid needless dependencies to KDE libraries + (see Suse bugzilla bug #135250). + +------------------------------------------------------------------- +Tue Nov 22 12:31:52 CET 2005 - jsmeix@suse.de + +- Added -fno-strict-aliasing to the CXXFLAGS to avoid problems + in ljfastraster.cpp (line 1213) and hpijs.cpp (lines 86, 223). + +------------------------------------------------------------------- +Fri Nov 18 15:55:05 CET 2005 - jsmeix@suse.de + +- Updated to version 0.9.6 + +------------------------------------------------------------------- +Wed Sep 21 16:58:51 CEST 2005 - jsmeix@suse.de + +- Updated to version 0.9.5 + including the additional hplip-0.9.5-3.patch from HP. + +------------------------------------------------------------------- +Mon Sep 12 14:02:17 CEST 2005 - jsmeix@suse.de + +- Several PPDs contain "600x600x2dpi" which is not allowed + according to the Adobe PPD specification section 5.9 + and which is therefore simply replaced by "600x1200dpi" + (see Suse bugzilla bug #116393). + +------------------------------------------------------------------- +Mon Aug 29 17:09:07 CEST 2005 - jsmeix@suse.de + +- Removed a non-working PPD. +- Fix "... is used uninitialized ..." warning. + +------------------------------------------------------------------- +Tue Jul 26 17:33:13 CEST 2005 - jsmeix@suse.de + +- Updated to version 0.9.4 +- Removed obsolete fixes for missing class prototypes. +- Removed obsolete fixes for HP_Business_Inkjet_3000.ppd +- Added a fix for condrestart in /etc/init.d/hplip + +------------------------------------------------------------------- +Tue May 31 17:07:13 CEST 2005 - jsmeix@suse.de + +- Updated to version 0.9.3 + +------------------------------------------------------------------- +Tue May 24 10:48:26 CEST 2005 - jsmeix@suse.de + +- Fixed missing class prototypes, otherwise it fails with + "error: ISO C++ forbids declaration of 'xxx' with no type". + +------------------------------------------------------------------- +Tue May 17 14:10:49 CEST 2005 - jsmeix@suse.de + +- Fix "... is used uninitialized ..." warnings. + +------------------------------------------------------------------- +Wed May 4 12:14:09 CEST 2005 - jsmeix@suse.de + +- Updated to version 0.9.2 which does no longer need + the "fix C" (i.e. hplip-0.8.8.diff) from below. + +------------------------------------------------------------------- +Sun Apr 10 12:13:29 CEST 2005 - coolo@suse.de + +- fix C + +------------------------------------------------------------------- +Tue Mar 22 11:59:00 CET 2005 - jsmeix@suse.de + +- Added PreReq. + +------------------------------------------------------------------- +Thu Mar 17 10:53:11 CET 2005 - jsmeix@suse.de + +- Fixed a bug in HP-DeskJet_3740-hpijs.ppd.gz: + According to hpijs_readme.html the DeskJet 3740 belongs to the + DJ3320 device class. + +------------------------------------------------------------------- +Tue Mar 8 11:59:09 CET 2005 - jsmeix@suse.de + +- Added %suse_update_desktop_file stuff for hp-toolbox. +- Moved %{_libdir}/libsane-hpaio.* to %{_libdir}/sane/ + instead of creating symlinks (see Tue Mar 1 11:15:33). + +------------------------------------------------------------------- +Tue Mar 1 11:15:33 CET 2005 - jsmeix@suse.de + +- Added python-xml to RPM requirements because otherwise + hpssd (i.e. /usr/share/hplip/hpssd.py) doesn't work. +- Create symlinks (via '%triggerin -- sane') to all + %{_libdir}/libsane-hpaio.* so that SANE will find them. +- Added kdebindings3-python to RPM requirements because otherwise + hp-toolbox (i.e. /usr/share/hplip/toolbox) doesn't work. + +------------------------------------------------------------------- +Tue Feb 22 10:48:35 CET 2005 - jsmeix@suse.de + +- Changed default media size from Letter to A4 + if this is an available choice in the PPD. + +------------------------------------------------------------------- +Tue Feb 15 16:57:52 CET 2005 - jsmeix@suse.de + +- Updated to version 0.8.8, for details see ChangeLog and + http://hpinkjet.sourceforge.net/updates.php +- Removed the "compatibility"-links because they are not needed. +- Fixed basic stuff in the init script (needs further improvement). +- Source should be x86_64 clean (SUSE patch no longer needed). + +------------------------------------------------------------------- +Tue Feb 1 17:06:20 CET 2005 - jsmeix@suse.de + +- Updated to version 0.8.7, for details see ChangeLog and + http://hpinkjet.sourceforge.net/updates.php +- Added triggerin and postun scripts to add and remove + the SANE backend "hpaio" in /etc/sane.d/dll.conf +- Replaced hplip-0.8.4-models.xml.diff by + hplip-0.8.7-models.xml.diff because the "HP LaserJet 1220" + is now in the models.xml file but the entry is buggy. + +------------------------------------------------------------------- +Tue Jan 25 15:40:55 CET 2005 - jsmeix@suse.de + +- Branched the sub-package hplip-hpijs which contains only + the plain HPIJS binary so that Ghostscript can require + only this sub-package (without all the other stuff). +- Added a link to the toolbox program to have it accessible + via the user's PATH. +- Added the usual 'rc'-link to the runlevel script. +- Added the following RPM requirements regarding printing: + hplip requires hplip-hpijs and foomatic-filters + hplip-hpijs requires ghostscript_any + (There are no RPM requirements regarding scanning because + HPLIP will be also used for plain printers.) +- Exchanged the destructive line for the cupsd in the runlevel script + because cupsd runs as user lp and dies in case of a SIGHUP. + +------------------------------------------------------------------- +Tue Jan 18 14:36:29 CET 2005 - jsmeix@suse.de + +- patch hplip-0.8.4-models.xml.diff adds the "HP LaserJet 1220" + to the list of known models of the SANE backend "hpaio" + +------------------------------------------------------------------- +Wed Jan 12 11:23:00 CET 2005 - sf@suse.de + +- add --libdir=%_libdir to build on multilib archs +- add patch for cups search path for backends + +------------------------------------------------------------------- +Thu Dec 2 12:21:55 CET 2004 - jsmeix@suse.de + +- initial version + diff --git a/hplip.desktop b/hplip.desktop new file mode 100644 index 0000000..263260a --- /dev/null +++ b/hplip.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Type=Application +Name=hp-toolbox +GenericName=HP Device Manager +Exec=hp-toolbox.wrapper +Icon=HPmenu.png diff --git a/hplip.spec b/hplip.spec new file mode 100644 index 0000000..9f9ebc8 --- /dev/null +++ b/hplip.spec @@ -0,0 +1,513 @@ +# +# spec file for package hplip (Version 1.6.12) +# +# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: hplip +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 +# HPLIP has reached 1.0 status. With this release a date encoded revision number is used: +# x.y.m : x = major release number, y = year (eg: 6 = 2006), m = month (eg: 6a = second release in June) +# Official releases have a 3 digit number and release candidates have a 4 digit number: x.y.m.rc +Version: 1.6.12 +Release: 1 +%define hpijsVersion 2.6.12 +Group: Hardware/Printing +License: BSD License and BSD-like, Other License(s), see package +URL: http://hpinkjet.sourceforge.net/ +# URL for Source0: http://superb-west.dl.sourceforge.net/sourceforge/hplip/hplip-1.6.12.tar.gz +Source0: %{name}-%{version}.tar.bz2 +# Fix "... is used uninitialized ..." warnings: +Patch10: fix-uninitialized-variables.diff +# Change installation directory for PPDs: +Patch11: change-ppd-install-dir.diff +# Change installation directory for the documentation: +Patch12: change-doc-install-dir.diff +# Source100 is the primary source for the suse_update_desktop_file stuff. +# It is found automatically in $RPM_SOURCE_DIR by 'suse_update_desktop_file -i hplip': +Source100: %{name}.desktop +# Source101 is a wrapper for hp-toolbox which shows meaningful error messages even under X. +# hp-toolbox.wrapper is called via hplip.desktop. +Source101: hp-toolbox.wrapper +# Source102 is a small man page for /usr/bin/hpijs: +Source102: hpijs.1.gz +# Patch100 changes the init script after it was installed: +Patch100: %{name}-init-script.diff +# Install into this non-root directory (required when norootforbuild is used): +BuildRoot: %{_tmppath}/%{name}-%{version}-build +PreReq: coreutils, /bin/grep, /bin/sed +Requires: %{name}-hpijs, foomatic-filters, python-xml, python-qt +# Skip testing devel dependencies required by libtool .la files by the following comment: +# skip-check-libtool-deps + +%description +The Hewlett-Packard Linux Imaging and Printing project (HPLIP) provides +a unified single and multifunction connectivity solution for HP +printers and scanners (in particular, HP all-in-one devices). + +HPLIP provides unified connectivity for printing, scanning, sending +faxes, photo card access, and device management and is designed to work +with CUPS. It includes the Ghostscript printer driver HPIJS for HP +printers and a special "hp" CUPS back-end that provides bidirectional +communication with the device (required for HP printer device +management). It also includes the SANE scanner back-end "hpaio" for HP +all-in-one devices and another special "hpfax" CUPS back-end that is +required to send faxes. The "hp-toolbox" program is provided for device +management. The "hp-sendfax" program must be used to send faxes. The +"hp-setup" program can be used to set up HP all-in-one devices. + +The HPLIP project is open source software and uses GPL-compatible +licenses. For more information, see: + +http://hpinkjet.sourceforge.net/ + +/usr/share/doc/packages/hplip/index.html + +/usr/share/doc/packages/hplip/tech_docs/hpijs.html + + + +Authors: +-------- + David Suffield + Cory Meisch + Yie Shiyun + Donald J. Welch + Cauligi Raghothama S. + +%package hpijs +Summary: HPIJS for HP's printing and scanning software HPLIP. +Group: Hardware/Printing +# Mutual RPM package requirements are meanwhile considered to be bad because +# such cyclic dependencies which makes it harder to automatically solve dependencies. +# Actually the hpijs driver requires Ghostscript (i.e ghostscript_any, e.g. ghostscript-library). +# But ghostscript-library must also require the hpijs driver which is the more imortant requirement +# because when a user (or a printer setup tool) wants to set up a HP printer with the hpijs driver +# it must be 100% sure that all what the hpijs driver needs to run is also installed. +# Therefore the requirement is weakened for this package: +Supplements: ghostscript_any + +%description hpijs +HPIJS is a Ghostscript printer driver for HP printers. + +This sub-package includes only the hpijs binary and the libhpip library +which is needed to run it. Normally (in particular for CUPS) the HPIJS +driver needs the rest of HP's printing and scanning software in the +package hplip. For special cases (e.g. for LPRng/lpdfilter or for a +minimal printing system) it is possible to use only the hpijs binary +and Ghostscript. + +For documentation and license see the main-package hplip. + + + +Authors: +-------- + David Suffield + Cory Meisch + Yie Shiyun + Donald J. Welch + Cauligi Raghothama S. + +%prep +# Be quiet when unpacking: +%setup -q +# Fix "... is used uninitialized ..." warnings: +%patch10 +# Change installation directory for PPDs: +%patch11 +# Change installation directory for the documentation: +%patch12 + +%build +# If AUTOMAKE='automake --foreign' is not set, autoreconf (in fact automake) +# complains about missing files like NEWS, README, AUTHORS, ChangeLog +# in each directory where a Makefile.am exists: +AUTOMAKE='automake --foreign' autoreconf --force --install +# Set our preferred architecture-specific flags for the compiler and linker: +# Set -fstack-protector-all to enable "Stack Protector" via a so called "canary" (requires gcc >= 4.1): +export CFLAGS="$RPM_OPT_FLAGS -fstack-protector-all" +export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fstack-protector-all" +# Regarding the configure options see tech_docs/tarball_install.html (not very explanatory): +# --disable-rpm-install disables sane, icon, /etc/hp and /etc/init.d install (default = disabled) +# --disable-foomatic-install disables foomatic install (HPIJS option, default = enabled) +# --disable-cups-install disables cups install (HPIJS option, default = enabled) +# CUPS install would do: +# (1) remove any old HP HPIJS PPD files from the CUPS PPD directory +# (2) symlink the HP HPIJS PPD files to the CUPS PPD directory +# (3) symlink foomatic-rip to the CUPS filter directory. +# --disable-network-build disables network support, will not link with libsnmp (default = enabled) +# --disable-pp-build disables parallel port support (default = enabled) +# --enable-scan-build enable scanner build (default=yes) +# --enable-gui-build enable gui build (default=yes) +# --enable-fax-build enable fax build (default=yes) +# rpm-install is no longer needed because "make install DESTDIR=/tmp/myhplip" works correctly now. +# disable-cups-install avoids useless stuff when building a RPM. +./configure --prefix=/usr --libdir=%_libdir --disable-cups-install +make + +%install +make install DESTDIR=%{buildroot} +# Remove the installed /etc/sane.d/dll.conf +# because this is provided by the sane package: +rm %{buildroot}%{_sysconfdir}/sane.d/dll.conf +# Move /usr/lib/libsane-hpaio.* to where SANE expects them: +mv -f %{buildroot}%{_libdir}/libsane-hpaio.* %{buildroot}%{_libdir}/sane/ +# Remove the installed /usr/bin/foomatic-rip +# because this is provided by the foomatic-filters package: +rm %{buildroot}%{_bindir}/foomatic-rip +# Exchange the non-working and deactivated "killall -HUP cupsd" line: +patch %{buildroot}%{_initrddir}/%{name} %{PATCH100} +# Add the usual 'rc'-link to the runlevel script: +install -d %{buildroot}%{_sbindir} +ln -s ../..%{_initrddir}/%{name} %{buildroot}%{_sbindir}/rc%{name} +# Make some general tests and adjustments for all PPDs (see manufacturer-PPDs.spec): +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 +# and which can be simply replaced by "600x1200dpi" +# 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. +# Some PPDs contain "1284DeviceId" which must be "1284DeviceID". +# Some PPDs contain "* PageRegion" which must be "*PageRegion". +for p in *.ppd +do perl -pi -e 's/600x600x2dpi/600x1200dpi/;' $p + grep -q '^\*cupsFilter:.*hppostprocessing' $p && rm -v $p + perl -pi -e 's/1284DeviceId/1284DeviceID/;' $p + perl -pi -e 's/\* PageRegion/*PageRegion/;' $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 *.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 + fi + done +done +# 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 *.ppd +do cupstestppd $p || { rm -v $p ; continue ; } + gzip $p +done +popd +# End of the general tests and adjustments for all PPDs. +# Desktop menue entry stuff: +# Install the wrapper for hp-toolbox: +install -m 755 %{SOURCE101} %{buildroot}%{_bindir}/hp-toolbox.wrapper +# Install /usr/share/hplip/data/images/HPmenu.png as desktop icon file: +install -d %{buildroot}%{_datadir}/pixmaps +install -m 644 %{buildroot}%{_datadir}/%{name}/data/images/HPmenu.png %{buildroot}%{_datadir}/pixmaps/HPmenu.png +# Set up and install the desktop menue entry stuff using "Categories=System;Monitor;" +# and remove HP's hplip.desktop file before because we use Source100: +rm %{buildroot}%{_datadir}/applications/%{name}.desktop +%suse_update_desktop_file -i %{name} System Monitor +# Install the man page for /usr/bin/hpijs: +install -d %{buildroot}%{_mandir}/man1 +install -m 644 %{SOURCE102} %{buildroot}%{_mandir}/man1/ + +%post +/sbin/ldconfig +exit 0 + +%triggerin -- sane +# As hplip can be used for plain printers it cannot "PreReq sane". +# Therefore if sane is installed it may be installed or updated after hplip. +# In this case trigger to add the SANE backend "hpaio" to /etc/sane.d/dll.conf if it is not there. +# To be safe there is a test that /etc/sane.d/dll.conf is writable. +if [ -w /etc/sane.d/dll.conf ] +then grep -q 'hpaio' /etc/sane.d/dll.conf || echo -e '# The hpaio backend is provided by the hplip package:\n#hpaio' >>/etc/sane.d/dll.conf +fi +exit 0 + +%postun +/sbin/ldconfig +# If the package was removed (but not if it was updated) +# then remove the hpaio lines in /etc/sane.d/dll.conf. +# The "exit 0" is necessary, otherwise the postun script +# would exit with non-zero exit-code if the package was not removed. +# Note that sane may not be installed (see triggerin) +# and therefore the test that /etc/sane.d/dll.conf is writable. +if [ "$1" = "0" ] +then [ -w /etc/sane.d/dll.conf ] && sed -i -e '/hpaio/d' /etc/sane.d/dll.conf +fi +exit 0 + +%files +%defattr(-, root, root) +%config %{_sysconfdir}/hp/ +%{_initrddir}/%{name} +%{_sbindir}/rc%{name} +%{_datadir}/%{name}/ +%{_sbindir}/hpiod +%{_bindir}/hp-align +%{_bindir}/hp-check +%{_bindir}/hp-clean +%{_bindir}/hp-colorcal +%{_bindir}/hp-fab +%{_bindir}/hp-firmware +%{_bindir}/hp-info +%{_bindir}/hp-levels +%{_bindir}/hp-makecopies +%{_bindir}/hp-makeuri +%{_bindir}/hp-print +%{_bindir}/hp-probe +%{_bindir}/hp-sendfax +%{_bindir}/hp-setup +%{_bindir}/hp-testpage +%{_bindir}/hp-timedate +%{_bindir}/hp-toolbox +%{_bindir}/hp-unload +%{_libdir}/python%{py_ver}/site-packages/cupsext* +%{_libdir}/python%{py_ver}/site-packages/pcardext* +%dir %{_libdir}/cups +%dir %{_libdir}/cups/backend +%{_libdir}/cups/backend/hp +%{_libdir}/cups/backend/hpfax +%dir %{_libdir}/sane +%{_libdir}/sane/libsane-hpaio.* +%dir %{_datadir}/cups +%dir %{_datadir}/cups/model +%dir %{_datadir}/cups/model/manufacturer-PPDs +%{_datadir}/cups/model/manufacturer-PPDs/%{name}/ +%doc %{_defaultdocdir}/%{name}/ +%{_bindir}/hp-toolbox.wrapper +%{_datadir}/pixmaps/HPmenu.png +%{_datadir}/applications/%{name}.desktop +%doc %{_mandir}/man1/hpijs.1.gz + +%files hpijs +%defattr(-, root, root) +%{_bindir}/hpijs +%{_libdir}/libhpip.* + +%changelog -n hplip +* Wed Dec 20 2006 - jsmeix@suse.de +- Updated to version 1.6.12: + Three more supported LaserJet printers. + Many bug fixes (no Suse bugs). + For details see release_notes.html + Added SANE_DEBUG_HPAIO support for the hpaio SANE backend. + The new models.dat file replaces the .xml files. The hplip_api + can be used to get model attributes without running the HPLIP + daemons. See hplip_api.h for reference (this affects the Suse + Bugzilla bugs #184798 and #184824). +- Fixed hp-toolbox.wrapper to catch 'error' regardless of the case + (see Suse Bugzilla bug #229620). +* Tue Oct 17 2006 - jsmeix@suse.de +- Updated to version 1.6.10: + Several more supported LaserJet printers. + Many bug fixes (no Suse bugs). +- Fixed typo in keyword in some LaserJet PPDs + ("* PageRegion" -> "*PageRegion"). +* Mon Sep 18 2006 - jsmeix@suse.de +- Updated to version 1.6.9: + Added support CD/DVD label printing (ie: PS D5100). + Several more supported Photosmart printers. + Many bug fixes (no Suse bugs). +* Mon Sep 11 2006 - jsmeix@suse.de +- Using generalised cupsext* and pcardext* in the files section + (instead of explicit only cupsext.so and pcardext.so) + so that it works now both for Python 2.4 and 2.5 + (the latter installs additional *.egg-info files). +* Mon Sep 04 2006 - jsmeix@suse.de +- Exchanged the hard RPM requirement for ghostscript_any by a + supplements entry for hplip-hpijs so that there is no longer + a mutual (cyclic) hard RPM dependency between hplip-hpijs + and ghostscript-library. +* Thu Aug 03 2006 - jsmeix@suse.de +- Updated to version 1.6.7: + Changed from dynamic IP ports to static IANA IP ports + for hpiod (2208) and hpssd (2207). + Two more supported Photosmart printers. + Several bug fixes (no Suse bugs). +* Mon Jul 17 2006 - jsmeix@suse.de +- Fixed PPDs which contain "1284DeviceId" which must be + "1284DeviceID" (detected by new CUPS 1.2 cupstestppd). +* Wed Jun 28 2006 - jsmeix@suse.de +- Updated to maintenance release 1.6.6a: + This provides various minor fixes and enhancements. + For details see doc/release_notes.html in the source + or /usr/share/doc/packages/hplip/release_notes.html +* Mon Jun 19 2006 - jsmeix@suse.de +- Updated to version 1.6.6: + HPLIP has reached 1.0 status. + With this release a date encoded revision number x.y.m is used: + x = major release number, y = year (6=2006), m = month (6=June) + Correct URLs in HTML docs (obsoletes fix-doc-hrefs.diff). + Removed DeviceOpen from hp backend. This fixes two problems: + 1) usblp will no longer be removed for device discovery + 2) device discovery will no longer cause Inkjets to power-up. + Added hpaio.desc file for SANE. + Several more supported printers. +- Cleaned up build (simplified spec file): + Changed install dir for PPDs and doc in Makefile.am. + Using configure without rpm-install. + Using configure with --disable-cups-install. + Links to work around inconsistent naming of python scripts + and links to hpfax backend and its associated PPD file + are no longer needed. +* Fri Jun 09 2006 - jsmeix@suse.de +- Added man page for /usr/bin/hpijs (hpijs.1.gz). +- Fixed wrong URLs in HTML documentation (fix-doc-hrefs.diff). +- Added links to work around inconsistent naming of python scripts. +- Added links to hpfax backend and its associated PPD file + to make them available as usual for CUPS setup tools. +* Mon May 22 2006 - jsmeix@suse.de +- Fixed typo (missing '"') in hplip-init-script.diff +* Fri May 19 2006 - jsmeix@suse.de +- Updated to version 0.9.11: + Revised and updated documentation. + Some more supported all-in-one devices and printers. + Several bug fixes (no Suse bugs). +- Updated to version 0.9.10: + Several bug fixes (no Suse bugs). +- Updated to version 0.9.9: + Uses libusb for all USB I/O. + CUPS USB DeviceURIs must be changed from + "hp:/hp_model?device=/dev/usb/lpX" (no longer supported) + to "hp:/hp_model?serial=xxxxxxxx". + One more supported all-in-one device. + Several bug fixes (no Suse bugs). +- Updated to version 0.9.8: + New PC send fax support via special CUPS backend (hpfax) + and special HP-Fax-hplip.ppd PPD file + and a new send fax UI (hp-sendfax). + Some more supported printers. + Several bug fixes (no Suse bugs). +* 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). +* Wed Jan 25 2006 - mls@suse.de +- converted neededforbuild to BuildRequires +* Thu Jan 12 2006 - jsmeix@suse.de +- Set compiler flag "-fstack-protector-all" to build it with + "Stack Protector" via a so called "canary" (requires gcc >= 4.1) +* Wed Jan 04 2006 - jsmeix@suse.de +- Moved /usr/lib[64]/libhpip.* library files to the hplip-hpijs + sub-package because /usr/bin/hpijs requires libhpip but for + special cases (e.g. for a minimal printing system) it should + be possible to use only HPIJS without the rest of HPLIP. +* Tue Jan 03 2006 - jsmeix@suse.de +- Updated to version 0.9.7 + including the additional hplip-0.9.7-2.patch from HP. +* Thu Dec 22 2005 - ro@suse.de +- requires: PyQt -> python-qt +* Thu Dec 01 2005 - jsmeix@suse.de +- Removed unneeded KDE packages from "neededforbuild" since + the new package python-qt was split from kdebindings3-python + (see Suse bugzilla bug #135250). +* Mon Nov 28 2005 - jsmeix@suse.de +- Replaced requirement for the package kdebindings3-python + by a generic requirement for the RPM capability PyQt + to avoid needless dependencies to KDE libraries + (see Suse bugzilla bug #135250). +* Tue Nov 22 2005 - jsmeix@suse.de +- Added -fno-strict-aliasing to the CXXFLAGS to avoid problems + in ljfastraster.cpp (line 1213) and hpijs.cpp (lines 86, 223). +* Fri Nov 18 2005 - jsmeix@suse.de +- Updated to version 0.9.6 +* Wed Sep 21 2005 - jsmeix@suse.de +- Updated to version 0.9.5 + including the additional hplip-0.9.5-3.patch from HP. +* Mon Sep 12 2005 - jsmeix@suse.de +- Several PPDs contain "600x600x2dpi" which is not allowed + according to the Adobe PPD specification section 5.9 + and which is therefore simply replaced by "600x1200dpi" + (see Suse bugzilla bug #116393). +* Mon Aug 29 2005 - jsmeix@suse.de +- Removed a non-working PPD. +- Fix "... is used uninitialized ..." warning. +* Tue Jul 26 2005 - jsmeix@suse.de +- Updated to version 0.9.4 +- Removed obsolete fixes for missing class prototypes. +- Removed obsolete fixes for HP_Business_Inkjet_3000.ppd +- Added a fix for condrestart in /etc/init.d/hplip +* Tue May 31 2005 - jsmeix@suse.de +- Updated to version 0.9.3 +* Tue May 24 2005 - jsmeix@suse.de +- Fixed missing class prototypes, otherwise it fails with + "error: ISO C++ forbids declaration of 'xxx' with no type". +* Tue May 17 2005 - jsmeix@suse.de +- Fix "... is used uninitialized ..." warnings. +* Wed May 04 2005 - jsmeix@suse.de +- Updated to version 0.9.2 which does no longer need + the "fix C" (i.e. hplip-0.8.8.diff) from below. +* Sun Apr 10 2005 - coolo@suse.de +- fix C +* Tue Mar 22 2005 - jsmeix@suse.de +- Added PreReq. +* Thu Mar 17 2005 - jsmeix@suse.de +- Fixed a bug in HP-DeskJet_3740-hpijs.ppd.gz: + According to hpijs_readme.html the DeskJet 3740 belongs to the + DJ3320 device class. +* Tue Mar 08 2005 - jsmeix@suse.de +- Added %%suse_update_desktop_file stuff for hp-toolbox. +- Moved %%{_libdir}/libsane-hpaio.* to %%{_libdir}/sane/ + instead of creating symlinks (see Tue Mar 1 11:15:33). +* Tue Mar 01 2005 - jsmeix@suse.de +- Added python-xml to RPM requirements because otherwise + hpssd (i.e. /usr/share/hplip/hpssd.py) doesn't work. +- Create symlinks (via '%%triggerin -- sane') to all + %%{_libdir}/libsane-hpaio.* so that SANE will find them. +- Added kdebindings3-python to RPM requirements because otherwise + hp-toolbox (i.e. /usr/share/hplip/toolbox) doesn't work. +* Tue Feb 22 2005 - jsmeix@suse.de +- Changed default media size from Letter to A4 + if this is an available choice in the PPD. +* Tue Feb 15 2005 - jsmeix@suse.de +- Updated to version 0.8.8, for details see ChangeLog and + http://hpinkjet.sourceforge.net/updates.php +- Removed the "compatibility"-links because they are not needed. +- Fixed basic stuff in the init script (needs further improvement). +- Source should be x86_64 clean (SUSE patch no longer needed). +* Tue Feb 01 2005 - jsmeix@suse.de +- Updated to version 0.8.7, for details see ChangeLog and + http://hpinkjet.sourceforge.net/updates.php +- Added triggerin and postun scripts to add and remove + the SANE backend "hpaio" in /etc/sane.d/dll.conf +- Replaced hplip-0.8.4-models.xml.diff by + hplip-0.8.7-models.xml.diff because the "HP LaserJet 1220" + is now in the models.xml file but the entry is buggy. +* Tue Jan 25 2005 - jsmeix@suse.de +- Branched the sub-package hplip-hpijs which contains only + the plain HPIJS binary so that Ghostscript can require + only this sub-package (without all the other stuff). +- Added a link to the toolbox program to have it accessible + via the user's PATH. +- Added the usual 'rc'-link to the runlevel script. +- Added the following RPM requirements regarding printing: + hplip requires hplip-hpijs and foomatic-filters + hplip-hpijs requires ghostscript_any + (There are no RPM requirements regarding scanning because + HPLIP will be also used for plain printers.) +- Exchanged the destructive line for the cupsd in the runlevel script + because cupsd runs as user lp and dies in case of a SIGHUP. +* Tue Jan 18 2005 - jsmeix@suse.de +- patch hplip-0.8.4-models.xml.diff adds the "HP LaserJet 1220" + to the list of known models of the SANE backend "hpaio" +* Wed Jan 12 2005 - sf@suse.de +- add --libdir=%%_libdir to build on multilib archs +- add patch for cups search path for backends +* Thu Dec 02 2004 - jsmeix@suse.de +- initial version diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4