OBS User unknown
2008-04-03 23:30:49 +00:00
committed by Git OBS Bridge
parent 870dbcbf8c
commit 37cd21fc56
7 changed files with 110 additions and 119 deletions

View File

@@ -1,5 +1,5 @@
#
# spec file for package hplip (Version 2.8.2)
# spec file for package hplip (Version 2.8.4)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -12,18 +12,18 @@
Name: hplip
BuildRequires: cups cups-devel libdrm-devel libgphoto2-devel libjpeg-devel libusb-devel net-snmp-devel pkgconfig python-devel python-openssl python-qt python-tk python-xml qt3-devel readline-devel sane-backends update-desktop-files
BuildRequires: cups cups-devel dbus-1-devel libdrm-devel libgphoto2-devel libjpeg-devel libusb-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, 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: 2.8.2
Release: 23
Version: 2.8.4
Release: 1
Group: Hardware/Printing
License: BSD 3-Clause; GPL v2 or later; X11/MIT
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
# URL for Source0: http://puzzle.dl.sourceforge.net/sourceforge/hplip/hplip-2.8.4.tar.gz
Source0: %{name}-%{version}.tar.bz2
# Patch0...Patch9 is for patches from HP:
# Patch10...Patch99 is for Suse patches for the sources from HP:
@@ -39,12 +39,17 @@ Source101: hp-toolbox.wrapper
# Source102 is a small man page for /usr/bin/hpijs:
Source102: hpijs.1.gz
# Source103 is the init script for hpssd:
# Since version 2.8.4 hpssd is gone and replaced by hp-systray.
# Therefore the init script does now stop hpssd regardless how it is called
# and exit successfully in any case to provide backward compatibility and in particular
# to avoid that printer/scanner setup tools fail when they try to enable the "hplip" service.
Source103: rchplip
# Script which outputs a global HAL fdi file for all HP USB devices which belong to HPLIP:
Source104: create_hal_global_fdi_from_hpmud_rules
# Patch100... is for special Suse patches:
# Patch101 changes in the udev rules file the owner from "lp" to "root"
# to avoid that the permissions can be changed e.g. by any CUPS filter script
# Patch101 changes in the udev rules file the mode from "0666" to "0664"
# and for parallel port devices the owner from "lp" to "root" to avoid
# that the permissions can be changed e.g. by any CUPS filter script
# or CUPS backend (both run as user "lp"):
Patch101: change-udev-rules.diff
# Install into this non-root directory (required when norootforbuild is used):
@@ -55,7 +60,12 @@ PreReq: coreutils, /bin/grep, /bin/sed, /usr/bin/find
# A wrong library version may let libsane-hpaio crash (e.g. segfault)
# which lets the whole scanning stack frontend<->libsane-dll<->libsane-backend crash
# also for any other backend when the hpaio backend is enabled (e.g. "scanimage -L"):
Requires: %{name}-hpijs = %{version}, foomatic-filters, python-xml, python-qt, pyxml
Requires: %{name}-hpijs = %{version}-%{release}
# Require special Python stuff (which pulls in Python base stuff):
Requires: python-xml, python-qt, pyxml
# Since version 2.8.4 all interprocess communication uses dbus.
# Therefore python-dbus version 0.80 or greater is required (which pulls in dbus base stuff):
Requires: dbus-1-python >= 0.80
# Either the hplip17 packages or the hplip packages can be installed:
Obsoletes: hplip17
# Skip testing devel dependencies required by libtool .la files by the following comment:
@@ -178,7 +188,8 @@ Authors:
%setup -q
# Fix "... is used uninitialized ..." warnings:
%patch10
# Patch101 changes in the udev rules file the owner from "lp" to "root":
# Patch101 changes in the udev rules file the mode from "0666" to "0664"
# and for parallel port devices the owner from "lp" to "root":
%patch101
%build
@@ -277,13 +288,14 @@ install -m644 70-hpmud.fdi %{buildroot}%{_sysconfdir}/hal/fdi/policy/10osvendor/
# 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 /usr/share/hplip/data/images/48x48/prog.png as desktop icon file
# because it is used in the hplip.desktop.in and hplip-systray.desktop.in sources:
install -d %{buildroot}%{_datadir}/pixmaps
install -m 644 %{buildroot}%{_datadir}/%{name}/data/images/HPmenu.png %{buildroot}%{_datadir}/pixmaps/HPmenu.png
install -m 644 %{buildroot}%{_datadir}/%{name}/data/images/48x48/prog.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:
# (additionally there is a typo in HP's install because of the trailing blank at 'applications ')
rm %{buildroot}%{_datadir}/applications/%{name}.desktop
# and remove HP's hplip.desktop and hplip-systray.desktop files before because we use Source100:
# (additionally there is/was a typo in HP's install because of the trailing blank at 'applications ')
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
@@ -326,6 +338,9 @@ exit 0
%postun
/sbin/ldconfig
# Since version 2.8.4 hpssd is gone and replaced by hp-systray.
# Therefore the init script does now stop hpssd regardless how it is called
# and exit successfully in any case to provide backward compatibility:
%restart_on_update hplip
%insserv_cleanup
# If the package was removed (but not if it was updated)
@@ -366,6 +381,7 @@ exit 0
%dir %{_sysconfdir}/hal/fdi/policy
%dir %{_sysconfdir}/hal/fdi/policy/10osvendor
%{_sysconfdir}/hal/fdi/policy/10osvendor/70-hpmud.fdi
%{_sysconfdir}/xdg/autostart/hplip-systray.desktop
%{_initrddir}/hplip
%{_sbindir}/rchplip
%{_datadir}/%{name}/
@@ -384,6 +400,7 @@ exit 0
%{_bindir}/hp-scan
%{_bindir}/hp-sendfax
%{_bindir}/hp-setup
%{_bindir}/hp-systray
%{_bindir}/hp-testpage
%{_bindir}/hp-timedate
%{_bindir}/hp-toolbox
@@ -418,6 +435,27 @@ exit 0
%{_libdir}/libhpmud.*
%changelog
* Thu Apr 03 2008 jsmeix@suse.de
- Updated to version 2.8.4:
Elimination of all persistent startup daemons.
The last daemon hpssd has been replaced with hp-systray.
All interprocess communication uses now dbus.
Therefore dbus-1-python version 0.80 or greater is required.
PC send fax requires dbus and a running hp-systray to operate
but hp-toolbox and hp-sendfax launch hp-systray automatically
and there is also /etc/xdg/autostart/hplip-systray.desktop.
When no HPLIP tools are running (e.g. hp-toolbox),
and the user closes or disables hp-systray,
there will be no HPLIP processes running whatsoever.
Many bug fixes (no Suse bugs).
One more supported LaserJet ZJStream printers (M1120),
one OfficeJet (J6400), and two Photosmart (C4340, B8800)
where the latter has a new printer device class (PSB9100).
For details see release_notes.html
- Adapted the hplip init script to provide backward compatibility:
It still exists to avoid that printer/scanner setup tools fail
when they try to enable the "hplip" service but all it does
is to stop a possibly running hpssd.
* Wed Apr 02 2008 jsmeix@suse.de
- Exchanged create_hal_global_fdi_from_models.dat with
create_hal_global_fdi_from_hpmud_rules which creates the