# # spec file for package hpijs-standalone (Version 2.7.6) # # Copyright (c) 2007 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: hpijs-standalone BuildRequires: gcc-c++ libjpeg-devel Summary: HPIJS stand-alone # 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: 2.7.6 Release: 2 Group: Hardware/Printing License: BSD 3-Clause, In general all applications are covered by the GNU General Public License (GPL) and the backend is covered by a MIT license. The printer driver HPIJS uses a BSD license. See the COPYING file in the HPLIP tar ball for more details. URL: http://hpinkjet.sourceforge.net/ # Source0...Source9 is for sources from HP: # URL for Source0: http://switch.dl.sourceforge.net/sourceforge/hplip/hplip-2.7.6.tar.gz Source0: hplip-%{version}.tar.bz2 # Patch0...Patch9 is for patches from HP: # Patch0 fixes printing white spaces and empty lines, see this mail from HP: # Date: Thu, 5 Jul 2007 14:44:45 -0700 # From: Aaron # To: # Subject: [Hplip-help] To Everyone Having the Problem Printing White Spaces and Empty Lines # ... # Edit the file /prnt/hpijs/djgenericvip.h # ... # Add to line 55: virtual DATA_FORMAT GetDataFormat() { return RASTER_STRIP; } # So it should look exactly like: # ... # virtual BOOL HagakiFeedPresent(BOOL bQueryPrinter); # virtual DATA_FORMAT GetDataFormat() { return RASTER_STRIP; } Patch0: fix-printing-white-spaces-and-empty-lines.diff # Patch10...Patch99 is for Suse patches for the sources from HP: # The patch numbers are the same as in hplip.spec. # Source100... is for special Suse sources: # The source numbers are the same as in hplip.spec. # Source102 is a small man page for /usr/bin/hpijs: Source102: hpijs.1.gz # Install into this non-root directory (required when norootforbuild is used): BuildRoot: %{_tmppath}/%{name}-%{version}-build # 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 # hplip-hpijs, hplip17-hpijs, and hplip-hpijs-standalone contain /usr/bin/hpijs: Conflicts: hplip-hpijs hplip17-hpijs # Skip testing devel dependencies required by libtool .la files by the following comment: # skip-check-libtool-deps %description HPIJS is a Ghostscript printer driver for HP printers. This package includes a special version of the hpijs binary which neither needs a HPLIP library nor a CUPS library to run it. Therefore it conflicts with the hpijs binary in the hplip-hpijs package. For special cases (e.g. for LPRng/lpdfilter or for a minimal printing system or for printing without any printing system) it is possible to use only this hpijs binary and Ghostscript. For full documentation and license see the package hplip. Authors: -------- David Suffield Cory Meisch Yie Shiyun Donald J. Welch Cauligi Raghothama S. %prep # Be quiet when unpacking: %setup -q -n hplip-%{version} # Patch0 fixes printing white spaces and empty lines: %patch0 %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: export CFLAGS="$RPM_OPT_FLAGS" export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" # We build a special hpijs which does not require the CUPS library. ./configure --prefix=/usr \ --libdir=%_libdir \ --disable-foomatic-xml-install \ --disable-foomatic-ppd-install \ --disable-doc-build \ --enable-hpijs-only-build make %install make install DESTDIR=%{buildroot} # Remove installed license files (COPYING and prnt/hpijs/README_LIBJPG) # which are packaged directly as documentation via the files section: rm -r %{buildroot}/usr/share/doc/hplip* # 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 %postun /sbin/ldconfig exit 0 %files %defattr(-, root, root) %doc COPYING prnt/hpijs/README_LIBJPG doc/license.html doc/legal.html doc/tech_docs/hpijs.html doc/tech_docs/device_classes.html doc/tech_docs/page_sizes.html doc/tech_docs/printable_areas.html %doc %{_mandir}/man1/hpijs.1.gz %{_bindir}/hpijs %changelog * Fri Jul 06 2007 - jsmeix@suse.de - fix-printing-white-spaces-and-empty-lines.diff fixes printing white spaces and empty lines according to a mail from HP on the hplip-help@lists.sourceforge.net list. * Tue Jul 03 2007 - jsmeix@suse.de - Updated to version 2.7.6: Some more supported Photosmart, Color LaserJet, and DeskJet printers. * Fri Apr 27 2007 - jsmeix@suse.de - Updated to version 1.7.4a: Resolved a build issue that caused a couple missing files in the 1.7.4 release (no Suse bug). * Mon Apr 23 2007 - jsmeix@suse.de - Updated to version 1.7.4: Many bug fixes (no Suse bugs). Some more supported DeskJet printers. * Mon Mar 26 2007 - jsmeix@suse.de - Updated to version 1.7.3: Many bug fixes (no Suse bugs). No new supported models but enhancements for some models. * Thu Mar 01 2007 - jsmeix@suse.de - Updated to version 1.7.2: Several more supported Officejet Pro devices. New OJProKx50 device class (derived from DJGenericVIP). Many bug fixes (no Suse bugs). fix-buffer-overflow.patch and hplip-1.7.1-1.patch are no longer needed because the bugs are now fixed in the sources. * Fri Feb 16 2007 - jsmeix@suse.de - Re-enabled "Supplements: ghostscript_any" because bug #243595 is fixed now. * Mon Feb 12 2007 - aj@suse.de - Do not add supplements to temporary workaround bug #243595. * Mon Feb 05 2007 - jsmeix@suse.de - fix-buffer-overflow.patch fixes a too small string buffer which overflows in line 310 in ljcolor.cpp. * Thu Feb 01 2007 - jsmeix@suse.de - Created new package hpijs-standalone and hpijs-standalone.spec for a special version of /usr/bin/hpijs which neither needs a HPLIP library nor a CUPS library to run it.