Accepting request 51497 from home:jsmeix:branches:Printing

Version upgrade to 3.10.9 and added hp-systray.wrapper to increase desktop startup speed (bnc#649280)

OBS-URL: https://build.opensuse.org/request/show/51497
OBS-URL: https://build.opensuse.org/package/show/Printing/hplip?expand=0&rev=16
This commit is contained in:
2010-10-27 15:37:28 +00:00
committed by Git OBS Bridge
parent 9e7bbf8bf6
commit 2b2fdc2713
6 changed files with 86 additions and 13 deletions

View File

@@ -29,13 +29,13 @@ 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: 3.10.2
Version: 3.10.9
Release: 4
Group: Hardware/Printing
License: BSD3c(or similar) ; GPLv2+ ; MIT License (or similar)
Url: http://hplipopensource.com
# Source0...Source9 is for sources from HP:
# URL for Source0: http://downloads.sourceforge.net/project/hplip/hplip/3.10.2/hplip-3.10.2.tar.gz?use_mirror=freefr
# URL for Source0: http://downloads.sourceforge.net/project/hplip/hplip/3.10.9/hplip-3.10.9.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fhplip%2Ffiles%2Fhplip%2F3.10.9%2Fhplip-3.10.9.tar.gz%2Fdownload%3Fuse_mirror%3Dpuzzle&ts=1288186183&use_mirror=mesh
Source0: %{name}-%{version}.tar.bz2
# Patch0...Patch9 is for patches from HP:
# Patch10...Patch99 is for Suse patches for the sources from HP:
@@ -60,6 +60,12 @@ Source102: hpijs.1.gz
# according to the init-suse-firewall in the tar ball
# (compare also Novell/Suse Bugzilla bnc#498429):
Source105: hplip.SuSEfirewall2
# Source106 is a wrapper for hp-systray which tests via "lpstat"
# whether or not a 'hp:/...' print queue exists and exits otherwise,
# see https://bugzilla.novell.com/show_bug.cgi?id=649280
# hp-systray.wrapper is called via /etc/xdg/autostart/hplip-systray.desktop
# which is changed accordingly in the install section.
Source106: hp-systray.wrapper
# Patch100... is for special Suse patches:
# Patch101 changes the udev rules files 55-hpmud.rules and 56-hpmud_support.rules:
Patch101: change-udev-rules.diff
@@ -396,6 +402,12 @@ install -m 644 %{SOURCE102} %{buildroot}%{_mandir}/man1/
# to open UDP ports 5353(mdns) and 427(svrloc) for mDNS support:
install -d %{buildroot}/etc/sysconfig/SuSEfirewall2.d/services/
install -m 644 %{SOURCE105} %{buildroot}/etc/sysconfig/SuSEfirewall2.d/services/hplip
# Begin "Desktop autostart notification tray stuff":
# Install the wrapper for hp-systray:
install -m 755 %{SOURCE106} %{buildroot}%{_bindir}/hp-systray.wrapper
# Change /etc/xdg/autostart/hplip-systray.desktop to call hp-systray.wrapper:
sed -i -e '/^Exec=hp-systray$/s/hp-systray/hp-systray.wrapper/;' %{buildroot}/etc/xdg/autostart/hplip-systray.desktop
# End of "Desktop autostart notification tray stuff".
# Find duplicate files:
%fdupes -s %{buildroot}
@@ -512,6 +524,7 @@ exit 0
%{_bindir}/hp-toolbox.wrapper
%{_datadir}/pixmaps/HPmenu.png
%{_datadir}/applications/%{name}.desktop
%{_bindir}/hp-systray.wrapper
%{_datadir}/%{name}/
%exclude %{_datadir}/%{name}/data/models/models.dat