hplip/hpijs-standalone.spec

185 lines
7.5 KiB
RPMSpec

#
# spec file for package hpijs-standalone (Version 2.8.2)
#
# Copyright (c) 2008 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.8.2
Release: 4
Group: Hardware/Printing
License: BSD 3-Clause
Url: http://hpinkjet.sourceforge.net/
# Source0...Source9 is for sources from HP:
# URL for Source0: http://prdownloads.sourceforge.net/hplip/hplip-2.8.2.tar.gz
Source0: hplip-%{version}.tar.bz2
# 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, 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 <david.suffield@hp.com>
Cory Meisch <cory.meisch@hp.com>
Yie Shiyun <shiyun.yie@hp.com>
Donald J. Welch <donald.welch@hp.com>
Cauligi Raghothama S. <raghothama.cauligi@hp.com>
%prep
# Be quiet when unpacking:
%setup -q -n hplip-%{version}
%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-foomatic-drv-install \
--disable-foomatic-rip-hplip-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
* Thu Feb 21 2008 jsmeix@suse.de
- Updated to version 2.8.2:
Updated the krgb patch for gpl ghostscript 8.61.
Changed margins to 0.125 inch from 0.
Several more supported printers (some more ZJStream printers).
- Updated to version 2.7.12:
Several more supported LaserJet printers, one ZJStream printer,
one LJm1005 printer with binary-only plugin (LaserJet M1005 MFP).
* Tue Oct 23 2007 jsmeix@suse.de
- Updated to version 2.7.10:
New LJZjsMono printer device class for ZJStream printers.
ZJStream printers require JBIG which has issues
(see Novell/Suse Bugzilla bnc#263181). Therefore the support
for ZJStream printers is provided only via a binary-only plugin
which is downloaded by "hp-setup" from the HP web-site only after
the user has accepted the license terms. The "hp-setup" utility
is provided by the "hplip" main package.
Several bug fixes (no Suse bugs).
Two more supported Photosmart and Officejet printers.
- Updated to version 2.7.9:
Many bug fixes (no Suse bugs).
Some more supported Photosmart and Officejet printers.
* Thu Aug 02 2007 jsmeix@suse.de
- Updated to version 2.7.7:
Some more supported Photosmart printers.
- fix-printing-white-spaces-and-empty-lines.diff is no longer
needed because the bug is now fixed in the source.
* 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
bnc#243595 is fixed now.
* Mon Feb 12 2007 aj@suse.de
- Do not add supplements to temporary workaround bnc#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.