This commit is contained in:
committed by
Git OBS Bridge
parent
0350e9631e
commit
9a3a1b6b0f
129
hplip.spec
129
hplip.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package hplip (Version 2.8.7)
|
||||
# spec file for package hplip (Version 3.9.4b)
|
||||
#
|
||||
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -19,23 +19,27 @@
|
||||
|
||||
|
||||
Name: hplip
|
||||
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
|
||||
BuildRequires: cups cups-devel dbus-1-devel fdupes libdrm-devel libgphoto2-devel libjpeg-devel libqt4-devel libusb-devel net-snmp-devel pkgconfig python-devel python-openssl python-qt4 python-xml 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.7
|
||||
Release: 6
|
||||
Version: 3.9.4b
|
||||
Release: 1
|
||||
Group: Hardware/Printing
|
||||
License: BSD 3-Clause; GPL v2 or later; X11/MIT
|
||||
Url: http://hpinkjet.sourceforge.net/
|
||||
Url: http://hplipopensource.com
|
||||
# Source0...Source9 is for sources from HP:
|
||||
# URL for Source0: http://kent.dl.sourceforge.net/sourceforge/hplip/hplip-2.8.7.tar.gz
|
||||
# URL for Source0: http://prdownloads.sourceforge.net/hplip/hplip-3.9.4b.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:
|
||||
# Fix "... is used uninitialized ..." warnings:
|
||||
# Patch10 fixes "... is used uninitialized ..." warnings:
|
||||
Patch10: fix-uninitialized-variables.diff
|
||||
# Patch11 fixes GCC/glibc issues, see http://udrepper.livejournal.com/20948.html
|
||||
# here in particular "invalid conversion from 'const char*' to 'char*'" errors.
|
||||
# The upstream bug report is https://bugs.launchpad.net/hplip/+bug/382720
|
||||
Patch11: fix_gcc44_glib.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':
|
||||
@@ -46,8 +50,6 @@ Source101: hp-toolbox.wrapper
|
||||
# Source102 is a small man page for /usr/bin/hpijs:
|
||||
Source102: hpijs.1.gz
|
||||
# Source103 was the init script for hpssd which is obsolete since version 2.8.4
|
||||
# where hpssd is gone and replaced by hp-systray, see
|
||||
# https://bugzilla.novell.com/show_bug.cgi?id=390663
|
||||
# Source104 is a 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
|
||||
@@ -57,10 +59,6 @@ Source104: create_hal_global_fdi_from_hpmud_rules
|
||||
# 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
|
||||
# Patch102 forces the desktop systems to execute hp-systray as "hp-systray --qt4"
|
||||
# via /etc/xdg/autostart/hplip-systray.desktop so that hp-systray
|
||||
# docks to the notification tray of the Gnome and KDE desktops.
|
||||
Patch102: force-qt4-for-hp-systray-desktop.diff
|
||||
# Install into this non-root directory (required when norootforbuild is used):
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
PreReq: coreutils, /bin/grep, /bin/sed, /usr/bin/find
|
||||
@@ -74,18 +72,7 @@ PreReq: coreutils, /bin/grep, /bin/sed, /usr/bin/find
|
||||
Requires: %{name}-hpijs = %{version}-%{release}
|
||||
# Require special Python stuff (which pulls in Python base stuff):
|
||||
Requires: python-xml, pyxml
|
||||
# Do no longer have a hard RPM requirement for python-qt
|
||||
# to be able to provide hplip even on a distribution without python-qt.
|
||||
# Without python-qt all GUI stuff would fail but several /usr/bin/hp-*
|
||||
# tools have a command line option to run in non-graphical mode
|
||||
# so that the basic driver functionality still works even without python-qt:
|
||||
Recommends: python-qt
|
||||
# Because of Patch102 (force-qt4-for-hp-systray-desktop.diff)
|
||||
# the python-qt4 RPM is required but this should be no problem because
|
||||
# in an upcoming release HPLIP will be converted over to Qt4, see
|
||||
# https://bugs.launchpad.net/hplip/+bug/231978/comments/7
|
||||
# and then the above "Recommends: python-qt" can be dropped
|
||||
# but currently only hp-systray can be used with Qt4:
|
||||
# Since version 3.9.2 by default only Qt4 is used:
|
||||
Requires: python-qt4
|
||||
# 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).
|
||||
@@ -130,7 +117,7 @@ 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:
|
||||
|
||||
http://hpinkjet.sourceforge.net/
|
||||
http://hplipopensource.com
|
||||
|
||||
/usr/share/doc/packages/hplip/index.html
|
||||
|
||||
@@ -231,12 +218,12 @@ Authors:
|
||||
%prep
|
||||
# Be quiet when unpacking:
|
||||
%setup -q
|
||||
# Fix "... is used uninitialized ..." warnings:
|
||||
# Patch10 fixes "... is used uninitialized ..." warnings:
|
||||
%patch10
|
||||
# Patch11 fixes GCC/glibc issues:
|
||||
%patch11
|
||||
# Patch101 changes in the udev rules file the mode from "0666" to "0664":
|
||||
%patch101
|
||||
# Patch102 forces the desktop systems to execute hp-systray as "hp-systray --qt4":
|
||||
%patch102
|
||||
|
||||
%build
|
||||
# If AUTOMAKE='automake --foreign' is not set, autoreconf (in fact automake)
|
||||
@@ -251,6 +238,8 @@ export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||
# so that enable-foomatic-rip-hplip-install is also needed:
|
||||
./configure --prefix=/usr \
|
||||
--libdir=%_libdir \
|
||||
--enable-qt4 \
|
||||
--disable-policykit \
|
||||
--enable-doc-build \
|
||||
--enable-network-build \
|
||||
--enable-pp-build \
|
||||
@@ -344,10 +333,10 @@ install -m644 70-hpmud.fdi %{buildroot}%{_datadir}/hal/fdi/information/20thirdpa
|
||||
# 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/48x48/prog.png as desktop icon file
|
||||
# Install /usr/share/hplip/data/images/64x64/hp_logo.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/48x48/prog.png %{buildroot}%{_datadir}/pixmaps/HPmenu.png
|
||||
install -m 644 %{buildroot}%{_datadir}/%{name}/data/images/64x64/hp_logo.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 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 ')
|
||||
@@ -359,6 +348,8 @@ rm %{buildroot}%{_datadir}/applications/%{name}*.desktop
|
||||
# Install the man page for /usr/bin/hpijs:
|
||||
install -d %{buildroot}%{_mandir}/man1
|
||||
install -m 644 %{SOURCE102} %{buildroot}%{_mandir}/man1/
|
||||
# Find duplicate files:
|
||||
%fdupes -s %{buildroot}
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
@@ -424,27 +415,38 @@ exit 0
|
||||
%dir %{_sysconfdir}/udev
|
||||
%dir %{_sysconfdir}/udev/rules.d
|
||||
%config %{_sysconfdir}/udev/rules.d/55-hpmud.rules
|
||||
%config %{_sysconfdir}/udev/rules.d/56-hpmud_support.rules
|
||||
%dir %{_datadir}/hal
|
||||
%dir %{_datadir}/hal/fdi
|
||||
%dir %{_datadir}/hal/fdi/information
|
||||
%dir %{_datadir}/hal/fdi/information/20thirdparty
|
||||
%{_datadir}/hal/fdi/information/20thirdparty/70-hpmud.fdi
|
||||
%dir %{_datadir}/hal/fdi/preprobe
|
||||
%dir %{_datadir}/hal/fdi/preprobe/10osvendor
|
||||
%{_datadir}/hal/fdi/preprobe/10osvendor/20-hplip-devices.fdi
|
||||
%{_sysconfdir}/xdg/autostart/hplip-systray.desktop
|
||||
%{_datadir}/%{name}/
|
||||
%{_bindir}/hp-align
|
||||
%{_bindir}/hp-check
|
||||
%{_bindir}/hp-clean
|
||||
%{_bindir}/hp-colorcal
|
||||
%{_bindir}/hp-devicesetup
|
||||
%{_bindir}/hp-fab
|
||||
%{_bindir}/hp-faxsetup
|
||||
%{_bindir}/hp-firmware
|
||||
%{_bindir}/hp-info
|
||||
%{_bindir}/hp-levels
|
||||
%{_bindir}/hp-linefeedcal
|
||||
%{_bindir}/hp-makecopies
|
||||
%{_bindir}/hp-makeuri
|
||||
%{_bindir}/hp-mkuri
|
||||
%{_bindir}/hp-pkservice
|
||||
%{_bindir}/hp-plugin
|
||||
%{_bindir}/hp-pqdiag
|
||||
%{_bindir}/hp-print
|
||||
%{_bindir}/hp-printsettings
|
||||
%{_bindir}/hp-probe
|
||||
%{_bindir}/hp-query
|
||||
%{_bindir}/hp-scan
|
||||
%{_bindir}/hp-sendfax
|
||||
%{_bindir}/hp-setup
|
||||
@@ -466,10 +468,13 @@ exit 0
|
||||
%dir %{_libdir}/cups/filter
|
||||
%{_libdir}/cups/filter/foomatic-rip-hplip
|
||||
%{_libdir}/cups/filter/hplipjs
|
||||
%{_libdir}/cups/filter/hpcups
|
||||
%dir %{_datadir}/cups
|
||||
%dir %{_datadir}/cups/model
|
||||
%dir %{_datadir}/cups/model/manufacturer-PPDs
|
||||
%{_datadir}/cups/model/manufacturer-PPDs/%{name}/
|
||||
%dir /var/lib/hp
|
||||
/var/lib/hp/hplip.state
|
||||
%doc %{_defaultdocdir}/%{name}/
|
||||
%{_bindir}/hp-toolbox.wrapper
|
||||
%{_datadir}/pixmaps/HPmenu.png
|
||||
@@ -483,6 +488,66 @@ exit 0
|
||||
%{_libdir}/libhpmud.*
|
||||
|
||||
%changelog
|
||||
* Tue Jun 02 2009 jsmeix@suse.de
|
||||
- fix_gcc44_glib.diff fixes GCC/glibc issues, here in particular
|
||||
"invalid conversion from 'const char*' to 'char*'" errors.
|
||||
The upstream bug report is
|
||||
https://bugs.launchpad.net/hplip/+bug/382720
|
||||
* Tue May 05 2009 jsmeix@suse.de
|
||||
- force-qt4-for-hp-systray-desktop.diff is obsolete because
|
||||
configure uses --enable-qt4 by default now which obsoletes
|
||||
also "Recommends: python-qt" (only python-qt4 is required).
|
||||
- Updated to version 3.9.4b:
|
||||
A few bug fixies (no Suse bugs).
|
||||
For details see
|
||||
http://hplipopensource.com/hplip-web/release_notes.html
|
||||
- Updated to version 3.9.4:
|
||||
Added PolicyKit support. Command line tools like hp-setup,
|
||||
hp-plugin, etc. are now run as regular user.
|
||||
Added GPG digital signature support to the HPLIP plug-in
|
||||
to validate that the plug-in is not corrupted and authentic.
|
||||
Added native CUPS driver support (hpcups) currently for
|
||||
testing only and added static PPDs for hpcups.
|
||||
Some more supported printers and all-in-one devices
|
||||
(in particular a few Designjet PostScript printers).
|
||||
Many bug fixies (no Suse bugs).
|
||||
For details see
|
||||
http://hplipopensource.com/hplip-web/release_notes.html
|
||||
- Updated to version 3.9.2:
|
||||
Qt4 now default UI.
|
||||
Support policy change. End of support date is added to
|
||||
all HPLIP supported devices, for details see
|
||||
http://hplipopensource.com/node/314
|
||||
New file /var/lib/hp/hplip.state for runtime variable data.
|
||||
Removed any variable data from /etc/hp/hplip.conf.
|
||||
Some more supported printers and all-in-one devices.
|
||||
Major bug fixing on Qt4 solution (no Suse bugs).
|
||||
For details see
|
||||
http://hplipopensource.com/hplip-web/release_notes.html
|
||||
- Updated to version 2.8.12:
|
||||
From this release forward, all PPD files - even for devices
|
||||
that require a binary plug-in - will reside in the tarball
|
||||
(the "plugin PPDs" are moved into hpijs.drv).
|
||||
Preview (alpha) release of the Qt4 version of HPLIP.
|
||||
Replaced "MODE 0666" udev device permissions with
|
||||
"console permissions via HAL".
|
||||
No new supported devices.
|
||||
Several bug fixes (no Suse bugs).
|
||||
For details see
|
||||
http://hplipopensource.com/hplip-web/release_notes.html
|
||||
- Updated to version 2.8.10:
|
||||
Bumped libhpmud version for new plugin attribute.
|
||||
Many more supported printers and all-in-one devices.
|
||||
Several bug fixes (no Suse bugs).
|
||||
For details see
|
||||
http://hplipopensource.com/hplip-web/release_notes.html
|
||||
- Updated to version 2.8.9:
|
||||
Added Qt4 configure option but Qt3 is the default.
|
||||
Many bug fixes (no Suse bugs).
|
||||
Several more supported printers, in particular
|
||||
some Compact Photo (QuickConnect) printers.
|
||||
For details see
|
||||
http://hplipopensource.com/hplip-web/release_notes.html
|
||||
* Wed Dec 03 2008 lnussel@suse.de
|
||||
- use "usb" instead of "usb_device" (bnc#438867)
|
||||
* Wed Dec 03 2008 jsmeix@suse.de
|
||||
|
Reference in New Issue
Block a user