This commit is contained in:
committed by
Git OBS Bridge
parent
e590bd57e8
commit
7889c8a8cb
97
hplip.spec
97
hplip.spec
@@ -12,24 +12,31 @@
|
||||
|
||||
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-backends update-desktop-files
|
||||
Summary: HP's Printing and Scanning Software
|
||||
Summary: HP's Printing, Scanning, and Faxing 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.7.1
|
||||
Release: 2
|
||||
Release: 3
|
||||
%define hpijsVersion 2.7.1
|
||||
Group: Hardware/Printing
|
||||
License: BSD License and BSD-like, GNU General Public License (GPL)
|
||||
URL: http://hpinkjet.sourceforge.net/
|
||||
# Source0...Source9 is for sources from HP:
|
||||
# URL for Source0: http://superb-west.dl.sourceforge.net/sourceforge/hplip/hplip-1.7.1.tar.gz
|
||||
Source0: %{name}-%{version}.tar.bz2
|
||||
# Patch0...Patch9 is for patches from HP:
|
||||
# URL for Patch0: http://sourceforge.net/project/showfiles.php?group_id=149981
|
||||
# Fix Deskjet D4100/D4160 christmas-tree (firmware hangs up with flashing LEDs) on second print job:
|
||||
Patch0: hplip-1.7.1-1.patch
|
||||
# Patch10...Patch99 is for Suse patches for the sources from HP:
|
||||
# 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 for special Suse sources:
|
||||
# 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
|
||||
@@ -38,6 +45,7 @@ Source100: %{name}.desktop
|
||||
Source101: hp-toolbox.wrapper
|
||||
# Source102 is a small man page for /usr/bin/hpijs:
|
||||
Source102: hpijs.1.gz
|
||||
# Patch100... is for special Suse patches:
|
||||
# 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):
|
||||
@@ -54,14 +62,23 @@ 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.
|
||||
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 driver "hpaio" for HP all-in-one
|
||||
devices.
|
||||
|
||||
Basic PC send fax functionality is supported on a number of devices.
|
||||
The special "hpfax" CUPS back-end is required to send faxes. Direct
|
||||
uploading (i.e. without print and scan) of received faxes from the
|
||||
device to the PC is not supported.
|
||||
|
||||
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:
|
||||
@@ -70,8 +87,6 @@ http://hpinkjet.sourceforge.net/
|
||||
|
||||
/usr/share/doc/packages/hplip/index.html
|
||||
|
||||
/usr/share/doc/packages/hplip/tech_docs/hpijs.html
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
@@ -93,18 +108,22 @@ Group: Hardware/Printing
|
||||
# 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 and hpijs-standalone both contain /usr/bin/hpijs:
|
||||
Conflicts: hpijs-standalone
|
||||
|
||||
%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
|
||||
which is needed to run it. Additionally it needs at least the CUPS
|
||||
library in the package cups-libs. Normally (in particular when used
|
||||
with the CUPS printing system) the HPIJS driver needs the rest of HP's
|
||||
printing and scanning software in the package hplip (in particular the
|
||||
PPD files for CUPS). For special cases (e.g. for LPRng/lpdfilter or for
|
||||
a small printing system) it is possible to use only the hpijs binary
|
||||
and Ghostscript.
|
||||
|
||||
For documentation and license see the main-package hplip.
|
||||
For full documentation and license see the main-package hplip.
|
||||
|
||||
|
||||
|
||||
@@ -119,6 +138,8 @@ Authors:
|
||||
%prep
|
||||
# Be quiet when unpacking:
|
||||
%setup -q
|
||||
# Fix Deskjet D4100/D4160 christmas-tree (firmware hangs up with flashing LEDs) on second print job:
|
||||
%patch0 -p1
|
||||
# Fix "... is used uninitialized ..." warnings:
|
||||
%patch10
|
||||
# Change installation directory for PPDs:
|
||||
@@ -132,29 +153,8 @@ Authors:
|
||||
# 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"
|
||||
# First of all build a special hpijs which does not require the CUPS library.
|
||||
# One of the HPLIP authors David Suffield told me in a mail:
|
||||
# > To: Johannes Meixner <jsmeix@suse.de>, <hplip-devel@lists.sourceforge.net>
|
||||
# > Subject: RE: [HPLIP-Devel] /usr/bin/hpijs requires libcups.so
|
||||
# > If you want to build hpijs with-out the libcups.so dependency, build
|
||||
# > hpijs with-out hplip support.
|
||||
# > For example if you want to build hpijs for use with other spoolers,
|
||||
# > don't use the top-level hplip makefile, use configure/make in the hpijs
|
||||
# > directory. There is a hpijs configure time "hplip-build" flag that
|
||||
# > defaults to false if you don't use the top-level make file.
|
||||
# To avoid an impact on the normal build of hpijs afterwards
|
||||
# the specific make target "make hpijs" is called and afterwards
|
||||
# "make distclean" removes in particular the Makefile to make sure
|
||||
# it is created anew by the different configure call of the normal build.
|
||||
pushd prnt/hpijs
|
||||
./configure --prefix=/usr --libdir=%_libdir --disable-hplip-build --disable-cups-install --disable-foomatic-install
|
||||
make hpijs
|
||||
mv hpijs hpijs.without-libcups
|
||||
make distclean
|
||||
popd
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||
# 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)
|
||||
@@ -175,8 +175,6 @@ make
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot}
|
||||
# Install the special hpijs which does not require the CUPS library:
|
||||
install -m 755 prnt/hpijs/hpijs.without-libcups %{buildroot}%{_bindir}
|
||||
# Remove the installed /etc/sane.d/dll.conf
|
||||
# because this is provided by the sane-backends package:
|
||||
rm %{buildroot}%{_sysconfdir}/sane.d/dll.conf
|
||||
@@ -317,11 +315,24 @@ exit 0
|
||||
|
||||
%files hpijs
|
||||
%defattr(-, root, root)
|
||||
%doc doc/tech_docs/hpijs.html doc/tech_docs/device_classes.html
|
||||
%{_bindir}/hpijs
|
||||
%{_bindir}/hpijs.without-libcups
|
||||
%{_libdir}/libhpip.*
|
||||
|
||||
%changelog -n hplip
|
||||
* Thu Feb 01 2007 - jsmeix@suse.de
|
||||
- hplip-1.7.1-1.patch from HP fixes Deskjet D4100/D4160
|
||||
christmas-tree (firmware hangs up with flashing LEDs)
|
||||
on second print job.
|
||||
- Removed /usr/bin/hpijs.without-libcups from hplip-hpijs
|
||||
to get rid of confusing RPM package requirements (hplip-hpijs
|
||||
requires cups-libs because of /usr/bin/hpijs).
|
||||
- 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.
|
||||
* Wed Jan 31 2007 - jsmeix@suse.de
|
||||
- Removed explicite fstack-protector-all from CFLAGS and CXXFLAGS
|
||||
because fstack-protector will be enabled by default.
|
||||
* Mon Jan 29 2007 - jsmeix@suse.de
|
||||
- Package 'sane' was renamed to 'sane-backends'.
|
||||
Adapted it so that it works with 'sane-backends'
|
||||
|
Reference in New Issue
Block a user