Репозитории ALT
S: | 3.23.8-alt1 |
5.1: | 3.11.5-alt0.M51.1 |
4.1: | 2.8.10-alt2.M41.1 |
4.0: | 2.7.12-alt2.M40.1 |
+backports: | 2.8.10-alt2.M40.1 |
3.0: | |
+backports: | 1.6.6a-alt0.M30.4.1 |
Группа :: Издательство
Пакет: hplip
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Summary: Solution for printing, scanning, and faxing with Hewlett-Packard inkjet and laser printers.
%def_enable cupstifffilter
%def_enable sane_backend
%def_enable python_code
%def_enable autostart
%def_enable PPDs
%def_disable qt3
%def_enable policykit
# udev >= 145
%def_enable udevacl
%def_disable halacl
Name: hplip
Version: 3.11.5
Release: alt0.M51.1
License: GPL/MIT/BSD
Group: Publishing
URL: http://hplip.sourceforge.net
Packager: Igor Vlasenko <viy at altlinux.org>
%define hpijsname hpijs
Conflicts: ghostscript <= 7.05-alt15
Obsoletes: hpoj <= 0.91
Provides: cups-backend-ptal
Obsoletes: cups-backend-ptal
Conflicts: cups < 1.1.18-alt7
PreReq: cups
Requires: %name-common = %version-%release
# TODO: split hplip and hplip-utils
# and remove this Req:
Requires: %name-hpcups
# Main package requires wget to avoid
# misleading errors about network connectivity (fc bug #705843).
Requires: wget
%if_enabled python_code
###Requires: python
%add_python_lib_path %_datadir/%name
# Andy Kuleshov report
Requires: python-module-dbus python-modules-ctypes
%endif
Requires: service => 0.5.9-alt1
BuildPreReq: libsane-devel
# Automatically added by buildreq on Thu Sep 22 2005
BuildRequires: gcc-c++ libcups-devel libjpeg-devel libnet-snmp-devel libssl-devel libstdc++-devel libusb-devel libusb-compat-devel libdbus-devel
%if_enabled python_code
#BuildRequires: python-module-qt-devel
BuildRequires: python-module-PyQt4-devel
#RemovedBuildRequires: python-base python-dev python-modules-compiler python-modules-encodings
BuildRequires: python-devel
%endif
%if_enabled PPDs
#cups-common and foomatic-filters is for cupstestppd
BuildPreReq: perl cups-common foomatic-filters
%endif
Source: http://dl.sourceforge.net/hplip/%name-%version.tar
Source2: %name.init
Source4: 80-hpmud.perms
Source5: %name.png
Source6: %name-icons.tar
Source7: %name-fixppd.sh
#TODO: see what fdi is better:
# https://bugzilla.redhat.com/show_bug.cgi?id=478495
# https://bugzilla.redhat.com/show_bug.cgi?id=479648
# fedora fdi acl policy
Source100: hplip.fdi
# cvs update: hplip.fdi is no longer in the repository (due to udev-acl)
# OpenSuSE based sources
# deprecated; 2.7.7 shows 'can't connect to device'
Source101: hp-toolbox.wrapper
Source102: hpijs.1
#Patch0:
Patch1: hplip-2.8.5-alt-urlhandler.patch
Patch2: hplip-3.9.12-alt-fix-udev-rules-ppdev.patch
Patch3: hplip-3.11.1-alt-fix-udev-rules-usbdev.patch
Patch4: hplip-3.9.12-alt-hplip-desktop.patch
Patch10: http://www.linuxprinting.org/download/printing/hpijs/hpijs-1.4.1-rss.1.patch
# it is patch 10 rediffed
Patch11: hpijs-1.4.1-rss-alt-for-2.7.7.patch
# fedora patches
Patch101: fedora-3.11.5-2-hplip-pstotiff-is-rubbish.patch
Patch102: fedora-3.11.5-2-hplip-strstr-const.patch
Patch103: fedora-3.11.5-2-hplip-ui-optional.patch
Patch104: fedora-3.11.5-2-hplip-no-asm.patch
Patch105: fedora-3.11.5-2-hplip-deviceIDs-drv.patch
Patch106: fedora-3.11.5-2-hplip-mucks-with-spooldir.patch
Patch107: fedora-3.11.5-2-hplip-udev-rules.patch
Patch108: fedora-3.11.5-2-hplip-retry-open.patch
Patch109: fedora-3.11.5-2-hplip-snmp-quirks.patch
Patch110: fedora-3.11.5-2-hplip-discovery-method.patch
Patch111: fedora-3.11.5-2-hplip-hpijs-marker-supply.patch
Patch112: fedora-3.11.5-2-hplip-clear-old-state-reasons.patch
Patch113: fedora-3.11.5-2-hplip-env-python.patch
Patch114: fedora-3.11.5-2-hplip-hpcups-sigpipe.patch
Patch115: fedora-3.11.5-2-hplip-fax-ppd.patch
Patch116: fedora-3.11.5-2-hplip-bad-low-ink-warning.patch
Patch117: fedora-3.11.5-2-hplip-deviceIDs-ppd.patch
Patch118: fedora-3.11.5-2-hplip-skip-blank-lines.patch
Patch119: fedora-3.11.5-2-hplip-dbglog-newline.patch
Patch120: fedora-3.11.5-2-hplip-no-system-tray.patch
Patch122: fedora-3.11.5-2-hplip-ppd-ImageableArea.patch
Patch125: fedora-3.11.5-2-hplip-raw_deviceID-traceback.patch
Patch126: fedora-3.11.5-2-hplip-UnicodeDecodeError.patch
Patch127: fedora-3.11.5-2-hplip-emit-SIGNAL.patch
Patch128: fedora-3.11.5-2-hplip-fab-root-crash.patch
Patch129: fedora-3.11.5-2-hplip-addprinter.patch
Patch130: fedora-3.11.5-2-hplip-dbus-exception.patch
Patch131: fedora-3.11.5-2-hplip-hpaio-segfault.patch
Patch132: fedora-3.11.5-2-hplip-newline.patch
Patch133: fedora-3.11.5-2-hplip-dbus-threads.patch
Patch134: fedora-3.11.5-2-hplip-notification-exception.patch
Patch135: fedora-3.11.5-2-hplip-CVE-2010-4267.patch
Patch136: fedora-3.11.5-2-hplip-wifisetup.patch
%description
This is the HP driver package to supply Linux support for most
Hewlett-Packard DeskJet, LaserJet, PSC, OfficeJet, and PhotoSmart
printers and all-in-one peripherals (also known as Multi-Function
Peripherals or MFPs), which can print, scan, copy, fax, and/or access
flash memory cards.
This package contains various tools for memory card access,
ink/toner/battery/consumable level checking, and inkjet printer
maintenance, along with python cups backends.
%package hpcups
Summary: Hpcups printer driver for Hewlett-Packard Co. Inkjet Printers and MFPs
License: BSD
Group: Publishing
Requires: %name-common = %version-%release
%description hpcups
Hpcups driver is a raster driver that produces printer-ready-bits.
The hpcups driver only works CUPS. Hpcups does not use the APDK, but
is based on re-purposed APDK code.
%if_enabled python_code
%package gui
Summary: HPLIP graphical tools for Hewlett-Packard Co. Inkjet Printers and MFPs
License: GPL
Group: Publishing
Obsoletes: xojpanel <= 0.91
Obsoletes: hpoj-xojpanel <= 0.91
Obsoletes: hplip-tools < 2.0
Provides: hplip-tools = 2.0
%if_enabled qt3
Requires: python-module-qt >= 3.16
%else
Requires: python-module-PyQt4
%endif
# some utils do require dbus user session
Requires: dbus-tools-gui
# for hp-scan -n
Requires: python-module-imaging
# from fedora 3.10.9-9 patch 33 (= 133)
# Enable D-Bus threading (and require pygobject2) (bug #600932).
# patch33 -p1 -b .dbus-threads
Requires: python-module-pygobject
Requires: %name = %version-%release
%if_enabled PPDs
Requires: %name-PPDs >= %version-%release
%endif
%description gui
HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux.
The HPLIP project provides printing support for nearly 1000 printer models, including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy), Business Inkjet, LaserJet, and LaserJet MFP.
This package contains the gui toolbox application for HPLIP,
with which several tasks such as memory card access,
ink/toner/battery/consumable level checking, and inkjet printer
maintenance can be done.
%if_enabled autostart
%package gui-autostart
Summary: GNOME/KDE/other XDGE autostart file for HPLIP graphical tools
License: GPL
Group: Publishing
Requires: %name-gui = %version-%release
BuildArch: noarch
%description gui-autostart
HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux.
The HPLIP project provides printing support for nearly 1000 printer models, including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy), Business Inkjet, LaserJet, and LaserJet MFP.
This package contains the HPLIP gui toolbox application autostart file for GNOME, KDE
and other freedesktop compatible desktop environments.
%endif
%endif
%package recommends
Summary: recommended packages for hplip
License: GPL
Group: Publishing
Requires: cups-ddk
Requires: foomatic-db >= 3.0.2-alt7
Requires: foomatic-filters >= 3.0.2-alt6
Requires: %name = %version-%release
BuildArch: noarch
%description recommends
HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux.
The HPLIP project provides printing support for nearly 1000 printer models, including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy), Business Inkjet, LaserJet, and LaserJet MFP.
This package is a virtual package that installs packages
recommended for use with hplip.
%package common
Summary: Hewlett-Packard Co. Inkjet Driver Project
License: GPL
Group: Publishing
%if_enabled udevacl
Conflicts: udev-extras < 0.20090516-alt4
%endif
%description common
HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux.
The HPLIP project provides printing support for nearly 1000 printer models, including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy), Business Inkjet, LaserJet, and LaserJet MFP.
This package contains common libraries for
The Hewlett-Packard Inkjet Driver Project.
%description
This is the HP driver package to supply Linux support for most
Hewlett-Packard DeskJet, LaserJet, PSC, OfficeJet, and PhotoSmart
printers and all-in-one peripherals (also known as Multi-Function
Peripherals or MFPs), which can print, scan, copy, fax, and/or access
flash memory cards.
%if_enabled PPDs
%package PPDs
Summary: PPDs for Hewlett-Packard Co. Inkjet Printers and MFPs
License: MIT
Group: Publishing
Requires: %name-ps-PPDs = %version-%release
Requires: %name-hpcups-PPDs = %version-%release
Requires: %name-hpijs-PPDs = %version-%release
# due to foomatic-rip
Requires: foomatic-filters > 3.0.2-alt5
BuildArch: noarch
%description PPDs
HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux.
The HPLIP project provides printing support for nearly 1000 printer models, including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy), Business Inkjet, LaserJet, and LaserJet MFP.
%package ps-PPDs
Summary: PPDs for Hewlett-Packard Co. Inkjet Printers and MFPs for postscript HP printers
License: MIT
Group: Publishing
# due to foomatic-rip
Requires: foomatic-filters > 3.0.2-alt5
Conflicts: %name-PPDs < %version
BuildArch: noarch
%description ps-PPDs
HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux.
The HPLIP project provides printing support for nearly 1000 printer models, including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy), Business Inkjet, LaserJet, and LaserJet MFP.
This package contains postscript printer definition files (PPDs) for postscript HP printers.
%package hpcups-PPDs
Summary: PPDs for Hewlett-Packard Co. Inkjet Printers and MFPs for hpcups cups driver
License: MIT
Group: Publishing
# due to foomatic-rip
Requires: foomatic-filters > 3.0.2-alt5
Requires: %name-hpcups = %version-%release
Conflicts: %name-PPDs < %version
BuildArch: noarch
%description hpcups-PPDs
HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux.
The HPLIP project provides printing support for nearly 1000 printer models, including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy), Business Inkjet, LaserJet, and LaserJet MFP.
This package contains postscript printer definition files (PPDs) for hpcups cups driver.
%package hpijs-PPDs
Summary: PPDs for Hewlett-Packard Co. Inkjet Printers and MFPs for hpijs cups driver
License: MIT
Group: Publishing
# due to foomatic-rip
Requires: foomatic-filters > 3.0.2-alt5
Requires: %name-hpijs = %version-%release
Conflicts: %name-PPDs < %version
BuildArch: noarch
%description hpijs-PPDs
HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux.
The HPLIP project provides printing support for nearly 1000 printer models, including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy), Business Inkjet, LaserJet, and LaserJet MFP.
This package contains postscript printer definition files (PPDs) for hpijs cups driver.
%endif
%package hpijs
Summary: Hewlett-Packard Co. Inkjet Driver Project
License: BSD
Group: Publishing
Obsoletes: hpijs < 2.7
Provides: %hpijsname = %version
Requires: %name-common = %version-%release
Requires: ghostscript
%description hpijs
hpijs is a collection of optimized drivers for HP printers.
hpijs supports the DeskJet 350C, 600C, 600C Photo, 630C, Apollo 2000,
Apollo 2100, Apollo 2560, DeskJet 800C, DeskJet 825, DeskJet 900,
PhotoSmart, DeskJet 990C, and PhotoSmart 100 series.
The Hewlett-Packard Inkjet Driver Project is a add-on to the GNU
Ghostscript application. This driver is open source software based on
the Hewlett Packard Appliance Printing Development Kit APDK for
deskjet printers.
%if_enabled sane_backend
%package sane
Summary: SANE driver for scanners in HP's multi-function devices (from HPLIP)
License: GPL
Group: Publishing
Requires: libsane
Requires: %name-common = %version-%release
Obsoletes: libsane-hpoj <= 0.91
%description sane
SANE driver for scanners in HP's multi-function devices (from HPLIP)
%endif # sane_backend
%prep
%setup -q
%patch1 -p1
%patch2 -p2
%patch3 -p2
# # Fix desktop file.
%patch4 -p1 -b .desktop
# # Fix compilation.
# %patch102 -p1 -b .strstr-const
# # Make utils.checkPyQtImport() look for the gui sub-package (bug #243273).
# %patch103 -p1 -b .ui-optional
# # Make sure to avoid handwritten asm.
# %patch104 -p1 -b .no-asm
# # Retry when connecting to device fails (bug #532112).
# %patch108 -p1 -b .retry-open
# # Fixed hp-setup traceback when discovery page is skipped (bug #523685).
# %patch110 -p1 -b .discovery-method
# # Give up trying to print a job to a reconnected device (bug #515481).
# %patch111 -p1 -b .device-reconnected
# # Avoid busy loop in hpcups when backend has exited (bug #525944).
# %patch114 -p1 -b .hpcups-sigpipe
# # Fixed Device ID parsing code in hpijs's dj9xxvip.c (bug #510926).
# %patch116 -p1 -b .bad-low-ink-warning
# The pstotiff filter is rubbish so replace it (launchpad #528394).
%patch101 -p1 -b .pstotiff-is-rubbish
# Fix compilation.
%patch102 -p1 -b .strstr-const
# Make utils.checkPyQtImport() look for the gui sub-package (bug #243273).
%patch103 -p1 -b .ui-optional
# Make sure to avoid handwritten asm.
%patch104 -p1 -b .no-asm
# Corrected several IEEE 1284 Device IDs using foomatic data.
# HP LaserJet P1007 (bug #585272).
# HP Color LaserJet CM1312nfi (bug #581005).
# HP Color LaserJet 3800 (bug #581935).
# HP Color LaserJet 2840 (bug #582215).
# HP Color LaserJet CP1518ni (bug #613689).
# HP Color LaserJet 2600n (bug #613712).
%patch105 -p1 -b .deviceIDs-drv
# Stopped hpcups pointlessly trying to read spool files
# directly (bug #552572).
%patch106 -p1 -b .mucks-with-spooldir
# Removed SYSFS use in udev rules and actually made them work
# (bug #560754).
%patch107 -p1 -b .udev-rules
# Retry when connecting to device fails (bug #532112).
%patch108 -p1 -b .retry-open
# Mark SNMP quirks in PPD for HP OfficeJet Pro 8500 (bug #581825).
%patch109 -p1 -b .snmp-quirks
# Fixed hp-setup traceback when discovery page is skipped (bug #523685).
%patch110 -p1 -b .discovery-method
# Fixed bogus low ink warnings from hpijs driver (bug #643643).
%patch111 -p1 -b .hpijs-marker-supply
# Clear old printer-state-reasons we used to manage (bug #510926).
%patch112 -p1 -b .clear-old-state-reasons
# Change shebang /usr/bin/env python -> /usr/bin/python (bug #618351).
%patch113 -p1 -b .env_python
# Avoid busy loop in hpcups when backend has exited (bug #525944).
%patch114 -p1 -b .hpcups-sigpipe
# Use correct fax PPD name for Qt3 UI.
%patch115 -p1 -b .fax-ppd
# Fixed Device ID parsing code in hpijs's dj9xxvip.c (bug #510926).
%patch116 -p1 -b .bad-low-ink-warning
# Add Device ID for
# HP LaserJet 1200 (bug #577308)
# HP LaserJet 1320 series (bug #579920)
# HP LaserJet 2300 (bug #576928)
# HP LaserJet P2015 Series (bug #580231)
# HP LaserJet 4250 (bug #585499).
# HP Color LaserJet 2605dn (bug #583953).
# HP Color LaserJet 3800 (bug #581935).
# HP Color LaserJet 2840 (bug #582215).
%patch117 -p1 -b .deviceIDs-ppd
# Hpcups (ljcolor) was putting black lines where should be blank lines (bug #579461).
%patch118 -p1 -b .skip-blank-lines
# Added missing newline to string argument in dbglog() call (bug #585275).
%patch119 -p1 -b .dbglog-newline
# Wait longer to see if a system tray becomes available (bug #569969).
%patch120 -p1 -b .no-system-tray
# Fix ImageableArea for Laserjet 8150/9000 (bug #596298).
%patch122 -p1 -b .ImageableArea
# Fixed traceback on error condition in device.py (bug #628125).
%patch125 -p1 -b .raw_deviceID-traceback
# Avoid UnicodeDecodeError in printsettingstoolbox.py (bug #645739).
%patch126 -p1 -b .UnicodeDecodeError
# Don't emit SIGNALs in ui4.setupdialog.SetupDialog the PyQt3 way (bug #623834).
%patch127 -p1 -b .emit-SIGNAL
# Prevent hp-fab traceback when run as root.
%patch128 -p1 -b .fab-root-crash
# Call cupsSetUser in cupsext's addPrinter method before connecting so
# that we can get an authentication callback (bug #538352).
%patch129 -p1 -b .addprinter
# Catch D-Bus exceptions in fax dialog (bug #645316).
%patch130 -p1 -b .dbus-exception
# Prevent hpaio segfaulting on invalid URIs (bug #649092).
%patch131 -p1 -b .hpaio-segfault
# Another missing newline in filter output (Ubuntu #418053).
%patch132 -p1 -b .newline
# Enable D-Bus threading (and require pygobject2) (bug #600932).
%patch133 -p1 -b .dbus-threads
# Catch GError exception when notification showing failed (bug #665577).
%patch134 -p1 -b .notification-exception
# Applied patch to fix CVE-2010-4267, remote stack overflow
# vulnerability (bug #670252).
%patch135 -p1 -b .CVE-2010-4267
# Avoid KeyError in ui4/wifisetupdialog.py (bug #680939).
%patch136 -p1 -b .wifisetup
# from fedora 3.9.12-3/3.10.9-9
sed -i.duplex-constraints \
-e 's,\(UIConstraints.* \*Duplex\),//\1,' \
prnt/drv/hpcups.drv.in
fgrep -lZr '#!/usr/bin/env python' . | xargs -r0 %__subst 's,#!/usr/bin/env python,#!/usr/bin/python,'
tar -xf %SOURCE6
#pushd prnt/hpijs
#%patch10 -p1
#popd
# it is patch 10 rediffed
%patch11 -p1
%build
for i in ppd/hpijs/*.ppd ppd/hpcups/*.ppd ; do
sed -i s,foomatic-rip-hplip,foomatic-rip,g $i
done
# we use source that is not pristine; in upstream they gzipped it :(
gzip_n_mov_ppd() {
# mkdir tmp1; cp -a $1/*.ppd tmp1
gzip -9 $1/*.ppd
# mv tmp1/*.ppd $1/; rmdir tmp1
}
gzip -9 fax/ppd/HP-Fax*-hpcups.ppd fax/ppd/HP-Fax*-hpijs.ppd
#gzip -9 prnt/ps/*.ppd
#gzip -9 ppd/*.ppd
gzip_n_mov_ppd prnt/ps
gzip_n_mov_ppd ppd/hpijs
gzip_n_mov_ppd ppd/hpcups
#autoreconf -fisv
cat > /dev/null <<EOF
--disable-option-checking ignore unrecognized --enable/--with options
--enable-static[=PKGS] build static libraries [default=no]
--disable-dependency-tracking speeds up one-time build
--enable-dependency-tracking do not reject slow dependency extractors
--enable-shared[=PKGS] build shared libraries [default=yes]
--enable-doc-build enable documentation build (default=yes)
--enable-hpijs-only-build enable hpijs only build (default=yes)
--enable-lite-build enable lite build, print & scan only (default=no)
--enable-hpcups-only-build enable hpcups only build, print only (default=no)
--enable-hpijs-install enable hpijs install (default=no)
--enable-hpcups-install enable hpcups install (default=yes)
--enable-new-hpcups enable new hpcups install (default=no)
--enable-network-build enable network build (default=yes)
--enable-pp-build enable parallel port build (default=no)
--enable-scan-build enable scanner build (default=yes)
--enable-gui-build enable gui build (default=yes)
--enable-fax-build enable fax build (default=yes)
--enable-dbus-build enable dbus build (default=yes)
--enable-cups11-build enable cups 1.1.x build (default=no)
--enable-udev-acl-rules enable udev acl rules (default=no)
--enable-shadow-build enable shadow build (default=no)
--enable-foomatic-ppd-install enable foomatic static ppd install (default=no), uses hpppddir
--enable-foomatic-drv-install enable foomatic dynamic ppd install (default=no), uses drvdir and hpppddir
--enable-cups-drv-install enable cups dynamic ppd install (default=yes), uses drvdir and hpppddir
--enable-cups-ppd-install enable cups static ppd install (default=no), uses hpppddir
--enable-foomatic-rip-hplip-install enable foomatic-rip-hplip install (default=no), uses cupsfilterdir
--enable-qt4 enable qt4 (default=yes)
--enable-qt3 enable qt3 (default=no)
--enable-policykit enable PolicyKit (default=no)
EOF
#we install foomatic data in separate package
# TODO
%configure \
--with-mimedir=%{_datadir}/cups/mime \
--disable-foomatic-rip-hplip-install \
--enable-pp-build \
%if_enabled udevacl
--enable-udev-acl-rules \
%endif
%if_enabled PPDs
--enable-foomatic-ppd-install \
--enable-foomatic-drv-install \
--enable-cups-ppd-install \
%else
--disable-foomatic-ppd-install \
--disable-cups-ppd-install \
%endif
--enable-hpijs-install \
%if_enabled python_code
--enable-gui-build \
--enable-fax-build \
--enable-network-build=yes \
%{subst_enable policykit} \
%{subst_enable qt3} \
--enable-qt4 \
%if_enabled sane_backend
--enable-scan-build \
%else
--disable-scan-build \
%endif
%else
--enable-hpijs-only-build
%endif
# from fedora 3.9.2-4 spec
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make
%install
install -d $RPM_BUILD_ROOT/%_datadir/cups/model/
%if_disabled PPDs
# in alt, ppds are stored with cups (not good?)
#mv $RPM_BUILD_ROOT/usr/share/ppd/HP/fax/HP-Fax-hplip.ppd.gz $RPM_BUILD_ROOT/%_datadir/cups/model/
install -m644 fax/ppd/HP-Fax-hplip.ppd $RPM_BUILD_ROOT/%_datadir/cups/model/
%endif
%make DESTDIR=$RPM_BUILD_ROOT install
%if_enabled python_code
%if_disabled udevacl
###
mkdir -p $RPM_BUILD_ROOT%_sysconfdir/security/console.perms.d/
install -m 600 %{SOURCE4} $RPM_BUILD_ROOT%_sysconfdir/security/console.perms.d/80-hpmud.perms
%endif
#mkdir -p $RPM_BUILD_ROOT%_initdir/
#install -m 755 %{SOURCE2} $RPM_BUILD_ROOT%_initdir/%name
mkdir -p $RPM_BUILD_ROOT%_sysconfdir/hp
### add to doc install
cp COPYING $RPM_BUILD_ROOT%_docdir/%name-%version/
# # Comment out all "setSizePolicy" calls, this function is incompatible with
# # PyQT/SIP <3.16
# # the code below is correct: it does'nt comments semilines ..., as previous
# # which cause syntax error in 1.6.6a, but is deprecated with PyQT = 3.16
# perl -p -i -e 'if (/^(.*setSizePolicy.*)$/) {$_="#".$_; if (/,\s*$/) {$endcomma=1}} elsif ($endcomma) {$_="#".$_; $endcomma=0}' `grep -l setSizePolicy $RPM_BUILD_ROOT%_datadir/%name/ui/*.py`
# Menu Icons
install -pD -m644 %name.16.png $RPM_BUILD_ROOT%_miconsdir/hplip.png
install -pD -m644 %name.32.png $RPM_BUILD_ROOT%_niconsdir/hplip.png
install -pD -m644 %name.48.png $RPM_BUILD_ROOT%_liconsdir/hplip.png
# Remove the installed /etc/sane.d/dll.conf
# because this is provided by the sane package:
rm -f $RPM_BUILD_ROOT%_sysconfdir/sane.d/dll.conf
# Remove other unneeded files
rm -f $RPM_BUILD_ROOT%_datadir/%name/%name
rm -f $RPM_BUILD_ROOT%_datadir/%name/hplip_readme.html
rm -f $RPM_BUILD_ROOT%_datadir/%name/hplip_overview.png
rm -f $RPM_BUILD_ROOT%_datadir/%name/COPYING
%endif # python_code
# Install other files for HPIJS
mkdir -p $RPM_BUILD_ROOT%_docdir/%hpijsname-%version
install -pD -m644 prnt/hpijs/README_LIBJPG $RPM_BUILD_ROOT%_docdir/%hpijsname-%version/
install -d %{buildroot}%{_man1dir}/
install -p -m644 %{SOURCE102} %{buildroot}%{_man1dir}/
%if_enabled PPDs
#### Remove the installed /usr/bin/foomatic-rip
#### because this is provided by the foomatic-filters package:
###rm %{buildroot}%{_bindir}/foomatic-rip
### a piece of ancient wisdom of SuSE
# Make some general tests and adjustments for all PPDs (see manufacturer-PPDs.spec):
pushd %{buildroot}%{_datadir}/ppd/HP
#pushd foomatic-db/db/source/PPD/HP
for ppd in *.ppd{,.gz,.bz2};
do
[ -e $ppd ] && sh %{SOURCE7} $ppd
done
popd
# End of the general tests and adjustments for all PPDs.
%endif # PPDs
%if_enabled halacl
# fedora fdi policy
mkdir -p %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor
install -p -m644 %{SOURCE100} %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor/22-hplip.fdi
%endif
# hack to properly compile .py files
python -m compileall $RPM_BUILD_ROOT%_datadir/%name
# removing unpackaged files
pushd $RPM_BUILD_ROOT
#rm usr/share/hplip/hplip-install usr/share/hplip/install.*
popd
%pre
# no more services
if [ -f %_initrddir/%name ]; then
/sbin/service hplip condstop ||:
/sbin/chkconfig --del hplip ||:
fi
%post
/sbin/service cups condrestart ||:
%preun
if [ "$RPM_INSTALL_ARG1" -eq 0 ]; then
/sbin/service cups condrestart ||:
fi
%if_enabled sane_backend
%post sane
DLLCONF=%_sysconfdir/sane.d/dll.conf
if ! %__grep -Eqs '^[[:space:]]*hpaio[[:space:]]*$' $DLLCONF; then
if %__grep -Eqs '^[[:space:]]*#[[:space:]]*hpaio[[:space:]]*$' $DLLCONF;
then
%__subst 's|^[[:space:]]*#[[:space:]]*hpaio[[:space:]]*$|hpaio|' $DLLCONF
else
cat >> $DLLCONF <<EOF
#
# HPLIP backend homepage: http://hpinkjet.sf.net/
# Uncomment the following line if hplip is installed:
hpaio
EOF
fi
fi
%preun sane
# Remove HPLIP driver from /etc/sane.d/dll.conf
if [ "$1" = 0 ]; then
%__subst 's|^\([[:space:]]*hpaio[[:space:]]*\)$|#\1|' %_sysconfdir/sane.d/dll.conf
fi
%endif #sane_backend
%files
%if_enabled python_code
%doc %_docdir/%name-%version
%dir %{_sysconfdir}/hp
%config %{_sysconfdir}/hp/hplip.conf
#deprecated
#%_initdir/%name
# C libraries for Python
%_libdir/python*/site-packages/*.so*
%if_disabled udevacl
# logged-in user gave direct access to the printers
%_sysconfdir/security/console.perms.d/80-hpmud.perms
%endif
%exclude %_libdir/python*/site-packages/*.la
# CUPS backend
%_prefix/lib/cups/backend/hp
%_prefix/lib/cups/backend/hpfax
# python
%{_bindir}/hp-align
%{_bindir}/hp-clean
%{_bindir}/hp-colorcal
%{_bindir}/hp-devicesettings
%{_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
%if_enabled policykit
%{_bindir}/hp-pkservice
%endif
%{_bindir}/hp-plugin
%{_bindir}/hp-pqdiag
%{_bindir}/hp-printsettings
%{_bindir}/hp-probe
%{_bindir}/hp-query
%{_bindir}/hp-scan
%{_bindir}/hp-sendfax
%{_bindir}/hp-setup
%{_bindir}/hp-testpage
%{_bindir}/hp-timedate
%{_bindir}/hp-unload
%{_bindir}/hp-wificonfig
# Files
%dir %{_datadir}/hplip
%{_datadir}/hplip/align.py*
%{_datadir}/hplip/clean.py*
%{_datadir}/hplip/colorcal.py*
%{_datadir}/hplip/devicesettings.py*
%{_datadir}/hplip/fab.py*
%{_datadir}/hplip/fax
#exclude %{_datadir}/hplip/fax/pstotiff*
%{_datadir}/hplip/faxsetup.py*
%{_datadir}/hplip/firmware.py*
%{_datadir}/hplip/hpdio.py*
%{_datadir}/hplip/hpssd*
%{_datadir}/hplip/info.py*
%{_datadir}/hplip/__init__.py*
%{_datadir}/hplip/levels.py*
%{_datadir}/hplip/linefeedcal.py*
%{_datadir}/hplip/makecopies.py*
%{_datadir}/hplip/makeuri.py*
%{_datadir}/hplip/plugin.py*
%{_datadir}/hplip/pqdiag.py*
%{_datadir}/hplip/printsettings.py*
%{_datadir}/hplip/probe.py*
%{_datadir}/hplip/query.py*
%{_datadir}/hplip/scan.py*
%{_datadir}/hplip/sendfax.py*
%{_datadir}/hplip/setup.py*
%{_datadir}/hplip/testpage.py*
%{_datadir}/hplip/timedate.py*
%{_datadir}/hplip/unload.py*
%{_datadir}/hplip/wificonfig.py*
%if_enabled policykit
%{_datadir}/hplip/pkservice.py*
%{_datadir}/PolicyKit/policy/com.hp.hplip.policy
%endif
# global dbus service
%{_datadir}/dbus-1/system-services/com.hp.hplip.service
/etc/dbus-1/system.d/com.hp.hplip.conf
# Directories
%{_datadir}/hplip/base
%{_datadir}/hplip/copier
%dir %{_datadir}/hplip/data
#%{_datadir}/hplip/data/firmware
%{_datadir}/hplip/data/ldl
%{_datadir}/hplip/data/localization
%{_datadir}/hplip/data/models
%{_datadir}/hplip/data/pcl
%{_datadir}/hplip/data/ps
%{_datadir}/hplip/pcard
%{_datadir}/hplip/prnt
%{_datadir}/hplip/scan
%dir %_localstatedir/hp
%_localstatedir/hp/hplip.state
%endif
%files hpcups
# CUPS drv
%dir %{_datadir}/cups/drv/hp
%{_datadir}/cups/drv/hp/hpcups.drv
# CUPS filter
%_prefix/lib/cups/filter/hpcups
%_prefix/lib/cups/filter/hpcupsfax
%if_enabled python_code
%files gui
# xdg autostart instead of init.d (do we need them???)
# The systray applet doesn't work properly (displays icon as a
# window), so don't ship the launcher yet.
#/etc/xdg/autostart/hplip-systray.desktop
#_bindir/hp-*
%{_bindir}/hp-print
%{_bindir}/hp-systray
#%{_bindir}/hp-toolbox.wrapper
%{_bindir}/hp-toolbox
# Files
%{_datadir}/hplip/print.py*
%{_datadir}/hplip/toolbox.py*
%{_datadir}/hplip/systray.py*
# Directories
%{_datadir}/hplip/data/images
# qt3 interface
%if_enabled qt3
%{_datadir}/hplip/plugins
%{_datadir}/hplip/ui
%endif
%{_datadir}/hplip/ui4
# requires installer
%{_bindir}/hp-check
%{_datadir}/hplip/check.py*
%{_datadir}/hplip/installer
# HPLIP menu files
%_datadir/applications/%name.desktop
%_niconsdir/hplip.png
%_liconsdir/hplip.png
%_miconsdir/hplip.png
%if_enabled autostart
%files gui-autostart
/etc/xdg/autostart/hplip-systray.desktop
%endif
%endif
%if_enabled PPDs
%files PPDs
### TODO !!!!
###%_datadir/cups/model/foomatic-ppds
%files hpijs-PPDs
%_datadir/ppd/HP/*-hpijs*.ppd*
%files hpcups-PPDs
%_datadir/ppd/HP/*
%exclude %_datadir/ppd/HP/*-hpijs*.ppd*
%exclude %_datadir/ppd/HP/*-ps.ppd*
%files ps-PPDs
%_datadir/ppd/HP/*-ps.ppd*
%else
%_datadir/cups/model/HP-Fax-hplip.ppd*
%endif
%files recommends
%files common
# HPIP
%_libdir/libhpip*so*
%_libdir/libhpmud*so*
%_sysconfdir/udev/rules.d/*.rules
# CUPS filter
%_prefix/lib/cups/filter/hplipjs
%_prefix/lib/cups/filter/hpps
# note; that filter was excluded in fedora as of (3.11.1-1) as useless.
%_prefix/lib/cups/filter/hpcac
%if_enabled cupstifffilter
/usr/lib/cups/filter/pstotiff
%{_datadir}/cups/mime/pstotiff.convs
%{_datadir}/cups/mime/pstotiff.types
%endif
%files hpijs
#doc prnt/hpijs/COPYING
%doc %_docdir/%hpijsname-%version
%_bindir/%hpijsname
%{_man1dir}/%hpijsname.1*
%dir %{_datadir}/cups/drv/hp
%{_datadir}/cups/drv/hp/hpijs.drv
%if_enabled sane_backend
# SANE
%files sane
%{_datadir}/hal/fdi/preprobe/10osvendor/20-hplip-devices.fdi
%if_enabled halacl
# fedora's hal-based acl
%{_datadir}/hal/fdi/policy/10osvendor/22-hplip.fdi
%endif
%_libdir/sane/libsane-hpaio*.so*
%exclude %_libdir/sane/libsane-hpaio*.la
# is it needed?
#%{_datadir}/hplip/hpaio.desc
%endif
#TODO
#*** SANE Backend ***
#SANE - need test with real devices and SANE software
#SANE - merge SuSE trigger on installing sane
#*** CUPS Backend ***
# DRV are missing
%changelog
…
Полный changelog можно просмотреть здесь
%def_enable cupstifffilter
%def_enable sane_backend
%def_enable python_code
%def_enable autostart
%def_enable PPDs
%def_disable qt3
%def_enable policykit
# udev >= 145
%def_enable udevacl
%def_disable halacl
Name: hplip
Version: 3.11.5
Release: alt0.M51.1
License: GPL/MIT/BSD
Group: Publishing
URL: http://hplip.sourceforge.net
Packager: Igor Vlasenko <viy at altlinux.org>
%define hpijsname hpijs
Conflicts: ghostscript <= 7.05-alt15
Obsoletes: hpoj <= 0.91
Provides: cups-backend-ptal
Obsoletes: cups-backend-ptal
Conflicts: cups < 1.1.18-alt7
PreReq: cups
Requires: %name-common = %version-%release
# TODO: split hplip and hplip-utils
# and remove this Req:
Requires: %name-hpcups
# Main package requires wget to avoid
# misleading errors about network connectivity (fc bug #705843).
Requires: wget
%if_enabled python_code
###Requires: python
%add_python_lib_path %_datadir/%name
# Andy Kuleshov report
Requires: python-module-dbus python-modules-ctypes
%endif
Requires: service => 0.5.9-alt1
BuildPreReq: libsane-devel
# Automatically added by buildreq on Thu Sep 22 2005
BuildRequires: gcc-c++ libcups-devel libjpeg-devel libnet-snmp-devel libssl-devel libstdc++-devel libusb-devel libusb-compat-devel libdbus-devel
%if_enabled python_code
#BuildRequires: python-module-qt-devel
BuildRequires: python-module-PyQt4-devel
#RemovedBuildRequires: python-base python-dev python-modules-compiler python-modules-encodings
BuildRequires: python-devel
%endif
%if_enabled PPDs
#cups-common and foomatic-filters is for cupstestppd
BuildPreReq: perl cups-common foomatic-filters
%endif
Source: http://dl.sourceforge.net/hplip/%name-%version.tar
Source2: %name.init
Source4: 80-hpmud.perms
Source5: %name.png
Source6: %name-icons.tar
Source7: %name-fixppd.sh
#TODO: see what fdi is better:
# https://bugzilla.redhat.com/show_bug.cgi?id=478495
# https://bugzilla.redhat.com/show_bug.cgi?id=479648
# fedora fdi acl policy
Source100: hplip.fdi
# cvs update: hplip.fdi is no longer in the repository (due to udev-acl)
# OpenSuSE based sources
# deprecated; 2.7.7 shows 'can't connect to device'
Source101: hp-toolbox.wrapper
Source102: hpijs.1
#Patch0:
Patch1: hplip-2.8.5-alt-urlhandler.patch
Patch2: hplip-3.9.12-alt-fix-udev-rules-ppdev.patch
Patch3: hplip-3.11.1-alt-fix-udev-rules-usbdev.patch
Patch4: hplip-3.9.12-alt-hplip-desktop.patch
Patch10: http://www.linuxprinting.org/download/printing/hpijs/hpijs-1.4.1-rss.1.patch
# it is patch 10 rediffed
Patch11: hpijs-1.4.1-rss-alt-for-2.7.7.patch
# fedora patches
Patch101: fedora-3.11.5-2-hplip-pstotiff-is-rubbish.patch
Patch102: fedora-3.11.5-2-hplip-strstr-const.patch
Patch103: fedora-3.11.5-2-hplip-ui-optional.patch
Patch104: fedora-3.11.5-2-hplip-no-asm.patch
Patch105: fedora-3.11.5-2-hplip-deviceIDs-drv.patch
Patch106: fedora-3.11.5-2-hplip-mucks-with-spooldir.patch
Patch107: fedora-3.11.5-2-hplip-udev-rules.patch
Patch108: fedora-3.11.5-2-hplip-retry-open.patch
Patch109: fedora-3.11.5-2-hplip-snmp-quirks.patch
Patch110: fedora-3.11.5-2-hplip-discovery-method.patch
Patch111: fedora-3.11.5-2-hplip-hpijs-marker-supply.patch
Patch112: fedora-3.11.5-2-hplip-clear-old-state-reasons.patch
Patch113: fedora-3.11.5-2-hplip-env-python.patch
Patch114: fedora-3.11.5-2-hplip-hpcups-sigpipe.patch
Patch115: fedora-3.11.5-2-hplip-fax-ppd.patch
Patch116: fedora-3.11.5-2-hplip-bad-low-ink-warning.patch
Patch117: fedora-3.11.5-2-hplip-deviceIDs-ppd.patch
Patch118: fedora-3.11.5-2-hplip-skip-blank-lines.patch
Patch119: fedora-3.11.5-2-hplip-dbglog-newline.patch
Patch120: fedora-3.11.5-2-hplip-no-system-tray.patch
Patch122: fedora-3.11.5-2-hplip-ppd-ImageableArea.patch
Patch125: fedora-3.11.5-2-hplip-raw_deviceID-traceback.patch
Patch126: fedora-3.11.5-2-hplip-UnicodeDecodeError.patch
Patch127: fedora-3.11.5-2-hplip-emit-SIGNAL.patch
Patch128: fedora-3.11.5-2-hplip-fab-root-crash.patch
Patch129: fedora-3.11.5-2-hplip-addprinter.patch
Patch130: fedora-3.11.5-2-hplip-dbus-exception.patch
Patch131: fedora-3.11.5-2-hplip-hpaio-segfault.patch
Patch132: fedora-3.11.5-2-hplip-newline.patch
Patch133: fedora-3.11.5-2-hplip-dbus-threads.patch
Patch134: fedora-3.11.5-2-hplip-notification-exception.patch
Patch135: fedora-3.11.5-2-hplip-CVE-2010-4267.patch
Patch136: fedora-3.11.5-2-hplip-wifisetup.patch
%description
This is the HP driver package to supply Linux support for most
Hewlett-Packard DeskJet, LaserJet, PSC, OfficeJet, and PhotoSmart
printers and all-in-one peripherals (also known as Multi-Function
Peripherals or MFPs), which can print, scan, copy, fax, and/or access
flash memory cards.
This package contains various tools for memory card access,
ink/toner/battery/consumable level checking, and inkjet printer
maintenance, along with python cups backends.
%package hpcups
Summary: Hpcups printer driver for Hewlett-Packard Co. Inkjet Printers and MFPs
License: BSD
Group: Publishing
Requires: %name-common = %version-%release
%description hpcups
Hpcups driver is a raster driver that produces printer-ready-bits.
The hpcups driver only works CUPS. Hpcups does not use the APDK, but
is based on re-purposed APDK code.
%if_enabled python_code
%package gui
Summary: HPLIP graphical tools for Hewlett-Packard Co. Inkjet Printers and MFPs
License: GPL
Group: Publishing
Obsoletes: xojpanel <= 0.91
Obsoletes: hpoj-xojpanel <= 0.91
Obsoletes: hplip-tools < 2.0
Provides: hplip-tools = 2.0
%if_enabled qt3
Requires: python-module-qt >= 3.16
%else
Requires: python-module-PyQt4
%endif
# some utils do require dbus user session
Requires: dbus-tools-gui
# for hp-scan -n
Requires: python-module-imaging
# from fedora 3.10.9-9 patch 33 (= 133)
# Enable D-Bus threading (and require pygobject2) (bug #600932).
# patch33 -p1 -b .dbus-threads
Requires: python-module-pygobject
Requires: %name = %version-%release
%if_enabled PPDs
Requires: %name-PPDs >= %version-%release
%endif
%description gui
HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux.
The HPLIP project provides printing support for nearly 1000 printer models, including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy), Business Inkjet, LaserJet, and LaserJet MFP.
This package contains the gui toolbox application for HPLIP,
with which several tasks such as memory card access,
ink/toner/battery/consumable level checking, and inkjet printer
maintenance can be done.
%if_enabled autostart
%package gui-autostart
Summary: GNOME/KDE/other XDGE autostart file for HPLIP graphical tools
License: GPL
Group: Publishing
Requires: %name-gui = %version-%release
BuildArch: noarch
%description gui-autostart
HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux.
The HPLIP project provides printing support for nearly 1000 printer models, including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy), Business Inkjet, LaserJet, and LaserJet MFP.
This package contains the HPLIP gui toolbox application autostart file for GNOME, KDE
and other freedesktop compatible desktop environments.
%endif
%endif
%package recommends
Summary: recommended packages for hplip
License: GPL
Group: Publishing
Requires: cups-ddk
Requires: foomatic-db >= 3.0.2-alt7
Requires: foomatic-filters >= 3.0.2-alt6
Requires: %name = %version-%release
BuildArch: noarch
%description recommends
HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux.
The HPLIP project provides printing support for nearly 1000 printer models, including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy), Business Inkjet, LaserJet, and LaserJet MFP.
This package is a virtual package that installs packages
recommended for use with hplip.
%package common
Summary: Hewlett-Packard Co. Inkjet Driver Project
License: GPL
Group: Publishing
%if_enabled udevacl
Conflicts: udev-extras < 0.20090516-alt4
%endif
%description common
HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux.
The HPLIP project provides printing support for nearly 1000 printer models, including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy), Business Inkjet, LaserJet, and LaserJet MFP.
This package contains common libraries for
The Hewlett-Packard Inkjet Driver Project.
%description
This is the HP driver package to supply Linux support for most
Hewlett-Packard DeskJet, LaserJet, PSC, OfficeJet, and PhotoSmart
printers and all-in-one peripherals (also known as Multi-Function
Peripherals or MFPs), which can print, scan, copy, fax, and/or access
flash memory cards.
%if_enabled PPDs
%package PPDs
Summary: PPDs for Hewlett-Packard Co. Inkjet Printers and MFPs
License: MIT
Group: Publishing
Requires: %name-ps-PPDs = %version-%release
Requires: %name-hpcups-PPDs = %version-%release
Requires: %name-hpijs-PPDs = %version-%release
# due to foomatic-rip
Requires: foomatic-filters > 3.0.2-alt5
BuildArch: noarch
%description PPDs
HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux.
The HPLIP project provides printing support for nearly 1000 printer models, including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy), Business Inkjet, LaserJet, and LaserJet MFP.
%package ps-PPDs
Summary: PPDs for Hewlett-Packard Co. Inkjet Printers and MFPs for postscript HP printers
License: MIT
Group: Publishing
# due to foomatic-rip
Requires: foomatic-filters > 3.0.2-alt5
Conflicts: %name-PPDs < %version
BuildArch: noarch
%description ps-PPDs
HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux.
The HPLIP project provides printing support for nearly 1000 printer models, including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy), Business Inkjet, LaserJet, and LaserJet MFP.
This package contains postscript printer definition files (PPDs) for postscript HP printers.
%package hpcups-PPDs
Summary: PPDs for Hewlett-Packard Co. Inkjet Printers and MFPs for hpcups cups driver
License: MIT
Group: Publishing
# due to foomatic-rip
Requires: foomatic-filters > 3.0.2-alt5
Requires: %name-hpcups = %version-%release
Conflicts: %name-PPDs < %version
BuildArch: noarch
%description hpcups-PPDs
HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux.
The HPLIP project provides printing support for nearly 1000 printer models, including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy), Business Inkjet, LaserJet, and LaserJet MFP.
This package contains postscript printer definition files (PPDs) for hpcups cups driver.
%package hpijs-PPDs
Summary: PPDs for Hewlett-Packard Co. Inkjet Printers and MFPs for hpijs cups driver
License: MIT
Group: Publishing
# due to foomatic-rip
Requires: foomatic-filters > 3.0.2-alt5
Requires: %name-hpijs = %version-%release
Conflicts: %name-PPDs < %version
BuildArch: noarch
%description hpijs-PPDs
HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux.
The HPLIP project provides printing support for nearly 1000 printer models, including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy), Business Inkjet, LaserJet, and LaserJet MFP.
This package contains postscript printer definition files (PPDs) for hpijs cups driver.
%endif
%package hpijs
Summary: Hewlett-Packard Co. Inkjet Driver Project
License: BSD
Group: Publishing
Obsoletes: hpijs < 2.7
Provides: %hpijsname = %version
Requires: %name-common = %version-%release
Requires: ghostscript
%description hpijs
hpijs is a collection of optimized drivers for HP printers.
hpijs supports the DeskJet 350C, 600C, 600C Photo, 630C, Apollo 2000,
Apollo 2100, Apollo 2560, DeskJet 800C, DeskJet 825, DeskJet 900,
PhotoSmart, DeskJet 990C, and PhotoSmart 100 series.
The Hewlett-Packard Inkjet Driver Project is a add-on to the GNU
Ghostscript application. This driver is open source software based on
the Hewlett Packard Appliance Printing Development Kit APDK for
deskjet printers.
%if_enabled sane_backend
%package sane
Summary: SANE driver for scanners in HP's multi-function devices (from HPLIP)
License: GPL
Group: Publishing
Requires: libsane
Requires: %name-common = %version-%release
Obsoletes: libsane-hpoj <= 0.91
%description sane
SANE driver for scanners in HP's multi-function devices (from HPLIP)
%endif # sane_backend
%prep
%setup -q
%patch1 -p1
%patch2 -p2
%patch3 -p2
# # Fix desktop file.
%patch4 -p1 -b .desktop
# # Fix compilation.
# %patch102 -p1 -b .strstr-const
# # Make utils.checkPyQtImport() look for the gui sub-package (bug #243273).
# %patch103 -p1 -b .ui-optional
# # Make sure to avoid handwritten asm.
# %patch104 -p1 -b .no-asm
# # Retry when connecting to device fails (bug #532112).
# %patch108 -p1 -b .retry-open
# # Fixed hp-setup traceback when discovery page is skipped (bug #523685).
# %patch110 -p1 -b .discovery-method
# # Give up trying to print a job to a reconnected device (bug #515481).
# %patch111 -p1 -b .device-reconnected
# # Avoid busy loop in hpcups when backend has exited (bug #525944).
# %patch114 -p1 -b .hpcups-sigpipe
# # Fixed Device ID parsing code in hpijs's dj9xxvip.c (bug #510926).
# %patch116 -p1 -b .bad-low-ink-warning
# The pstotiff filter is rubbish so replace it (launchpad #528394).
%patch101 -p1 -b .pstotiff-is-rubbish
# Fix compilation.
%patch102 -p1 -b .strstr-const
# Make utils.checkPyQtImport() look for the gui sub-package (bug #243273).
%patch103 -p1 -b .ui-optional
# Make sure to avoid handwritten asm.
%patch104 -p1 -b .no-asm
# Corrected several IEEE 1284 Device IDs using foomatic data.
# HP LaserJet P1007 (bug #585272).
# HP Color LaserJet CM1312nfi (bug #581005).
# HP Color LaserJet 3800 (bug #581935).
# HP Color LaserJet 2840 (bug #582215).
# HP Color LaserJet CP1518ni (bug #613689).
# HP Color LaserJet 2600n (bug #613712).
%patch105 -p1 -b .deviceIDs-drv
# Stopped hpcups pointlessly trying to read spool files
# directly (bug #552572).
%patch106 -p1 -b .mucks-with-spooldir
# Removed SYSFS use in udev rules and actually made them work
# (bug #560754).
%patch107 -p1 -b .udev-rules
# Retry when connecting to device fails (bug #532112).
%patch108 -p1 -b .retry-open
# Mark SNMP quirks in PPD for HP OfficeJet Pro 8500 (bug #581825).
%patch109 -p1 -b .snmp-quirks
# Fixed hp-setup traceback when discovery page is skipped (bug #523685).
%patch110 -p1 -b .discovery-method
# Fixed bogus low ink warnings from hpijs driver (bug #643643).
%patch111 -p1 -b .hpijs-marker-supply
# Clear old printer-state-reasons we used to manage (bug #510926).
%patch112 -p1 -b .clear-old-state-reasons
# Change shebang /usr/bin/env python -> /usr/bin/python (bug #618351).
%patch113 -p1 -b .env_python
# Avoid busy loop in hpcups when backend has exited (bug #525944).
%patch114 -p1 -b .hpcups-sigpipe
# Use correct fax PPD name for Qt3 UI.
%patch115 -p1 -b .fax-ppd
# Fixed Device ID parsing code in hpijs's dj9xxvip.c (bug #510926).
%patch116 -p1 -b .bad-low-ink-warning
# Add Device ID for
# HP LaserJet 1200 (bug #577308)
# HP LaserJet 1320 series (bug #579920)
# HP LaserJet 2300 (bug #576928)
# HP LaserJet P2015 Series (bug #580231)
# HP LaserJet 4250 (bug #585499).
# HP Color LaserJet 2605dn (bug #583953).
# HP Color LaserJet 3800 (bug #581935).
# HP Color LaserJet 2840 (bug #582215).
%patch117 -p1 -b .deviceIDs-ppd
# Hpcups (ljcolor) was putting black lines where should be blank lines (bug #579461).
%patch118 -p1 -b .skip-blank-lines
# Added missing newline to string argument in dbglog() call (bug #585275).
%patch119 -p1 -b .dbglog-newline
# Wait longer to see if a system tray becomes available (bug #569969).
%patch120 -p1 -b .no-system-tray
# Fix ImageableArea for Laserjet 8150/9000 (bug #596298).
%patch122 -p1 -b .ImageableArea
# Fixed traceback on error condition in device.py (bug #628125).
%patch125 -p1 -b .raw_deviceID-traceback
# Avoid UnicodeDecodeError in printsettingstoolbox.py (bug #645739).
%patch126 -p1 -b .UnicodeDecodeError
# Don't emit SIGNALs in ui4.setupdialog.SetupDialog the PyQt3 way (bug #623834).
%patch127 -p1 -b .emit-SIGNAL
# Prevent hp-fab traceback when run as root.
%patch128 -p1 -b .fab-root-crash
# Call cupsSetUser in cupsext's addPrinter method before connecting so
# that we can get an authentication callback (bug #538352).
%patch129 -p1 -b .addprinter
# Catch D-Bus exceptions in fax dialog (bug #645316).
%patch130 -p1 -b .dbus-exception
# Prevent hpaio segfaulting on invalid URIs (bug #649092).
%patch131 -p1 -b .hpaio-segfault
# Another missing newline in filter output (Ubuntu #418053).
%patch132 -p1 -b .newline
# Enable D-Bus threading (and require pygobject2) (bug #600932).
%patch133 -p1 -b .dbus-threads
# Catch GError exception when notification showing failed (bug #665577).
%patch134 -p1 -b .notification-exception
# Applied patch to fix CVE-2010-4267, remote stack overflow
# vulnerability (bug #670252).
%patch135 -p1 -b .CVE-2010-4267
# Avoid KeyError in ui4/wifisetupdialog.py (bug #680939).
%patch136 -p1 -b .wifisetup
# from fedora 3.9.12-3/3.10.9-9
sed -i.duplex-constraints \
-e 's,\(UIConstraints.* \*Duplex\),//\1,' \
prnt/drv/hpcups.drv.in
fgrep -lZr '#!/usr/bin/env python' . | xargs -r0 %__subst 's,#!/usr/bin/env python,#!/usr/bin/python,'
tar -xf %SOURCE6
#pushd prnt/hpijs
#%patch10 -p1
#popd
# it is patch 10 rediffed
%patch11 -p1
%build
for i in ppd/hpijs/*.ppd ppd/hpcups/*.ppd ; do
sed -i s,foomatic-rip-hplip,foomatic-rip,g $i
done
# we use source that is not pristine; in upstream they gzipped it :(
gzip_n_mov_ppd() {
# mkdir tmp1; cp -a $1/*.ppd tmp1
gzip -9 $1/*.ppd
# mv tmp1/*.ppd $1/; rmdir tmp1
}
gzip -9 fax/ppd/HP-Fax*-hpcups.ppd fax/ppd/HP-Fax*-hpijs.ppd
#gzip -9 prnt/ps/*.ppd
#gzip -9 ppd/*.ppd
gzip_n_mov_ppd prnt/ps
gzip_n_mov_ppd ppd/hpijs
gzip_n_mov_ppd ppd/hpcups
#autoreconf -fisv
cat > /dev/null <<EOF
--disable-option-checking ignore unrecognized --enable/--with options
--enable-static[=PKGS] build static libraries [default=no]
--disable-dependency-tracking speeds up one-time build
--enable-dependency-tracking do not reject slow dependency extractors
--enable-shared[=PKGS] build shared libraries [default=yes]
--enable-doc-build enable documentation build (default=yes)
--enable-hpijs-only-build enable hpijs only build (default=yes)
--enable-lite-build enable lite build, print & scan only (default=no)
--enable-hpcups-only-build enable hpcups only build, print only (default=no)
--enable-hpijs-install enable hpijs install (default=no)
--enable-hpcups-install enable hpcups install (default=yes)
--enable-new-hpcups enable new hpcups install (default=no)
--enable-network-build enable network build (default=yes)
--enable-pp-build enable parallel port build (default=no)
--enable-scan-build enable scanner build (default=yes)
--enable-gui-build enable gui build (default=yes)
--enable-fax-build enable fax build (default=yes)
--enable-dbus-build enable dbus build (default=yes)
--enable-cups11-build enable cups 1.1.x build (default=no)
--enable-udev-acl-rules enable udev acl rules (default=no)
--enable-shadow-build enable shadow build (default=no)
--enable-foomatic-ppd-install enable foomatic static ppd install (default=no), uses hpppddir
--enable-foomatic-drv-install enable foomatic dynamic ppd install (default=no), uses drvdir and hpppddir
--enable-cups-drv-install enable cups dynamic ppd install (default=yes), uses drvdir and hpppddir
--enable-cups-ppd-install enable cups static ppd install (default=no), uses hpppddir
--enable-foomatic-rip-hplip-install enable foomatic-rip-hplip install (default=no), uses cupsfilterdir
--enable-qt4 enable qt4 (default=yes)
--enable-qt3 enable qt3 (default=no)
--enable-policykit enable PolicyKit (default=no)
EOF
#we install foomatic data in separate package
# TODO
%configure \
--with-mimedir=%{_datadir}/cups/mime \
--disable-foomatic-rip-hplip-install \
--enable-pp-build \
%if_enabled udevacl
--enable-udev-acl-rules \
%endif
%if_enabled PPDs
--enable-foomatic-ppd-install \
--enable-foomatic-drv-install \
--enable-cups-ppd-install \
%else
--disable-foomatic-ppd-install \
--disable-cups-ppd-install \
%endif
--enable-hpijs-install \
%if_enabled python_code
--enable-gui-build \
--enable-fax-build \
--enable-network-build=yes \
%{subst_enable policykit} \
%{subst_enable qt3} \
--enable-qt4 \
%if_enabled sane_backend
--enable-scan-build \
%else
--disable-scan-build \
%endif
%else
--enable-hpijs-only-build
%endif
# from fedora 3.9.2-4 spec
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make
%install
install -d $RPM_BUILD_ROOT/%_datadir/cups/model/
%if_disabled PPDs
# in alt, ppds are stored with cups (not good?)
#mv $RPM_BUILD_ROOT/usr/share/ppd/HP/fax/HP-Fax-hplip.ppd.gz $RPM_BUILD_ROOT/%_datadir/cups/model/
install -m644 fax/ppd/HP-Fax-hplip.ppd $RPM_BUILD_ROOT/%_datadir/cups/model/
%endif
%make DESTDIR=$RPM_BUILD_ROOT install
%if_enabled python_code
%if_disabled udevacl
###
mkdir -p $RPM_BUILD_ROOT%_sysconfdir/security/console.perms.d/
install -m 600 %{SOURCE4} $RPM_BUILD_ROOT%_sysconfdir/security/console.perms.d/80-hpmud.perms
%endif
#mkdir -p $RPM_BUILD_ROOT%_initdir/
#install -m 755 %{SOURCE2} $RPM_BUILD_ROOT%_initdir/%name
mkdir -p $RPM_BUILD_ROOT%_sysconfdir/hp
### add to doc install
cp COPYING $RPM_BUILD_ROOT%_docdir/%name-%version/
# # Comment out all "setSizePolicy" calls, this function is incompatible with
# # PyQT/SIP <3.16
# # the code below is correct: it does'nt comments semilines ..., as previous
# # which cause syntax error in 1.6.6a, but is deprecated with PyQT = 3.16
# perl -p -i -e 'if (/^(.*setSizePolicy.*)$/) {$_="#".$_; if (/,\s*$/) {$endcomma=1}} elsif ($endcomma) {$_="#".$_; $endcomma=0}' `grep -l setSizePolicy $RPM_BUILD_ROOT%_datadir/%name/ui/*.py`
# Menu Icons
install -pD -m644 %name.16.png $RPM_BUILD_ROOT%_miconsdir/hplip.png
install -pD -m644 %name.32.png $RPM_BUILD_ROOT%_niconsdir/hplip.png
install -pD -m644 %name.48.png $RPM_BUILD_ROOT%_liconsdir/hplip.png
# Remove the installed /etc/sane.d/dll.conf
# because this is provided by the sane package:
rm -f $RPM_BUILD_ROOT%_sysconfdir/sane.d/dll.conf
# Remove other unneeded files
rm -f $RPM_BUILD_ROOT%_datadir/%name/%name
rm -f $RPM_BUILD_ROOT%_datadir/%name/hplip_readme.html
rm -f $RPM_BUILD_ROOT%_datadir/%name/hplip_overview.png
rm -f $RPM_BUILD_ROOT%_datadir/%name/COPYING
%endif # python_code
# Install other files for HPIJS
mkdir -p $RPM_BUILD_ROOT%_docdir/%hpijsname-%version
install -pD -m644 prnt/hpijs/README_LIBJPG $RPM_BUILD_ROOT%_docdir/%hpijsname-%version/
install -d %{buildroot}%{_man1dir}/
install -p -m644 %{SOURCE102} %{buildroot}%{_man1dir}/
%if_enabled PPDs
#### Remove the installed /usr/bin/foomatic-rip
#### because this is provided by the foomatic-filters package:
###rm %{buildroot}%{_bindir}/foomatic-rip
### a piece of ancient wisdom of SuSE
# Make some general tests and adjustments for all PPDs (see manufacturer-PPDs.spec):
pushd %{buildroot}%{_datadir}/ppd/HP
#pushd foomatic-db/db/source/PPD/HP
for ppd in *.ppd{,.gz,.bz2};
do
[ -e $ppd ] && sh %{SOURCE7} $ppd
done
popd
# End of the general tests and adjustments for all PPDs.
%endif # PPDs
%if_enabled halacl
# fedora fdi policy
mkdir -p %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor
install -p -m644 %{SOURCE100} %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor/22-hplip.fdi
%endif
# hack to properly compile .py files
python -m compileall $RPM_BUILD_ROOT%_datadir/%name
# removing unpackaged files
pushd $RPM_BUILD_ROOT
#rm usr/share/hplip/hplip-install usr/share/hplip/install.*
popd
%pre
# no more services
if [ -f %_initrddir/%name ]; then
/sbin/service hplip condstop ||:
/sbin/chkconfig --del hplip ||:
fi
%post
/sbin/service cups condrestart ||:
%preun
if [ "$RPM_INSTALL_ARG1" -eq 0 ]; then
/sbin/service cups condrestart ||:
fi
%if_enabled sane_backend
%post sane
DLLCONF=%_sysconfdir/sane.d/dll.conf
if ! %__grep -Eqs '^[[:space:]]*hpaio[[:space:]]*$' $DLLCONF; then
if %__grep -Eqs '^[[:space:]]*#[[:space:]]*hpaio[[:space:]]*$' $DLLCONF;
then
%__subst 's|^[[:space:]]*#[[:space:]]*hpaio[[:space:]]*$|hpaio|' $DLLCONF
else
cat >> $DLLCONF <<EOF
#
# HPLIP backend homepage: http://hpinkjet.sf.net/
# Uncomment the following line if hplip is installed:
hpaio
EOF
fi
fi
%preun sane
# Remove HPLIP driver from /etc/sane.d/dll.conf
if [ "$1" = 0 ]; then
%__subst 's|^\([[:space:]]*hpaio[[:space:]]*\)$|#\1|' %_sysconfdir/sane.d/dll.conf
fi
%endif #sane_backend
%files
%if_enabled python_code
%doc %_docdir/%name-%version
%dir %{_sysconfdir}/hp
%config %{_sysconfdir}/hp/hplip.conf
#deprecated
#%_initdir/%name
# C libraries for Python
%_libdir/python*/site-packages/*.so*
%if_disabled udevacl
# logged-in user gave direct access to the printers
%_sysconfdir/security/console.perms.d/80-hpmud.perms
%endif
%exclude %_libdir/python*/site-packages/*.la
# CUPS backend
%_prefix/lib/cups/backend/hp
%_prefix/lib/cups/backend/hpfax
# python
%{_bindir}/hp-align
%{_bindir}/hp-clean
%{_bindir}/hp-colorcal
%{_bindir}/hp-devicesettings
%{_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
%if_enabled policykit
%{_bindir}/hp-pkservice
%endif
%{_bindir}/hp-plugin
%{_bindir}/hp-pqdiag
%{_bindir}/hp-printsettings
%{_bindir}/hp-probe
%{_bindir}/hp-query
%{_bindir}/hp-scan
%{_bindir}/hp-sendfax
%{_bindir}/hp-setup
%{_bindir}/hp-testpage
%{_bindir}/hp-timedate
%{_bindir}/hp-unload
%{_bindir}/hp-wificonfig
# Files
%dir %{_datadir}/hplip
%{_datadir}/hplip/align.py*
%{_datadir}/hplip/clean.py*
%{_datadir}/hplip/colorcal.py*
%{_datadir}/hplip/devicesettings.py*
%{_datadir}/hplip/fab.py*
%{_datadir}/hplip/fax
#exclude %{_datadir}/hplip/fax/pstotiff*
%{_datadir}/hplip/faxsetup.py*
%{_datadir}/hplip/firmware.py*
%{_datadir}/hplip/hpdio.py*
%{_datadir}/hplip/hpssd*
%{_datadir}/hplip/info.py*
%{_datadir}/hplip/__init__.py*
%{_datadir}/hplip/levels.py*
%{_datadir}/hplip/linefeedcal.py*
%{_datadir}/hplip/makecopies.py*
%{_datadir}/hplip/makeuri.py*
%{_datadir}/hplip/plugin.py*
%{_datadir}/hplip/pqdiag.py*
%{_datadir}/hplip/printsettings.py*
%{_datadir}/hplip/probe.py*
%{_datadir}/hplip/query.py*
%{_datadir}/hplip/scan.py*
%{_datadir}/hplip/sendfax.py*
%{_datadir}/hplip/setup.py*
%{_datadir}/hplip/testpage.py*
%{_datadir}/hplip/timedate.py*
%{_datadir}/hplip/unload.py*
%{_datadir}/hplip/wificonfig.py*
%if_enabled policykit
%{_datadir}/hplip/pkservice.py*
%{_datadir}/PolicyKit/policy/com.hp.hplip.policy
%endif
# global dbus service
%{_datadir}/dbus-1/system-services/com.hp.hplip.service
/etc/dbus-1/system.d/com.hp.hplip.conf
# Directories
%{_datadir}/hplip/base
%{_datadir}/hplip/copier
%dir %{_datadir}/hplip/data
#%{_datadir}/hplip/data/firmware
%{_datadir}/hplip/data/ldl
%{_datadir}/hplip/data/localization
%{_datadir}/hplip/data/models
%{_datadir}/hplip/data/pcl
%{_datadir}/hplip/data/ps
%{_datadir}/hplip/pcard
%{_datadir}/hplip/prnt
%{_datadir}/hplip/scan
%dir %_localstatedir/hp
%_localstatedir/hp/hplip.state
%endif
%files hpcups
# CUPS drv
%dir %{_datadir}/cups/drv/hp
%{_datadir}/cups/drv/hp/hpcups.drv
# CUPS filter
%_prefix/lib/cups/filter/hpcups
%_prefix/lib/cups/filter/hpcupsfax
%if_enabled python_code
%files gui
# xdg autostart instead of init.d (do we need them???)
# The systray applet doesn't work properly (displays icon as a
# window), so don't ship the launcher yet.
#/etc/xdg/autostart/hplip-systray.desktop
#_bindir/hp-*
%{_bindir}/hp-print
%{_bindir}/hp-systray
#%{_bindir}/hp-toolbox.wrapper
%{_bindir}/hp-toolbox
# Files
%{_datadir}/hplip/print.py*
%{_datadir}/hplip/toolbox.py*
%{_datadir}/hplip/systray.py*
# Directories
%{_datadir}/hplip/data/images
# qt3 interface
%if_enabled qt3
%{_datadir}/hplip/plugins
%{_datadir}/hplip/ui
%endif
%{_datadir}/hplip/ui4
# requires installer
%{_bindir}/hp-check
%{_datadir}/hplip/check.py*
%{_datadir}/hplip/installer
# HPLIP menu files
%_datadir/applications/%name.desktop
%_niconsdir/hplip.png
%_liconsdir/hplip.png
%_miconsdir/hplip.png
%if_enabled autostart
%files gui-autostart
/etc/xdg/autostart/hplip-systray.desktop
%endif
%endif
%if_enabled PPDs
%files PPDs
### TODO !!!!
###%_datadir/cups/model/foomatic-ppds
%files hpijs-PPDs
%_datadir/ppd/HP/*-hpijs*.ppd*
%files hpcups-PPDs
%_datadir/ppd/HP/*
%exclude %_datadir/ppd/HP/*-hpijs*.ppd*
%exclude %_datadir/ppd/HP/*-ps.ppd*
%files ps-PPDs
%_datadir/ppd/HP/*-ps.ppd*
%else
%_datadir/cups/model/HP-Fax-hplip.ppd*
%endif
%files recommends
%files common
# HPIP
%_libdir/libhpip*so*
%_libdir/libhpmud*so*
%_sysconfdir/udev/rules.d/*.rules
# CUPS filter
%_prefix/lib/cups/filter/hplipjs
%_prefix/lib/cups/filter/hpps
# note; that filter was excluded in fedora as of (3.11.1-1) as useless.
%_prefix/lib/cups/filter/hpcac
%if_enabled cupstifffilter
/usr/lib/cups/filter/pstotiff
%{_datadir}/cups/mime/pstotiff.convs
%{_datadir}/cups/mime/pstotiff.types
%endif
%files hpijs
#doc prnt/hpijs/COPYING
%doc %_docdir/%hpijsname-%version
%_bindir/%hpijsname
%{_man1dir}/%hpijsname.1*
%dir %{_datadir}/cups/drv/hp
%{_datadir}/cups/drv/hp/hpijs.drv
%if_enabled sane_backend
# SANE
%files sane
%{_datadir}/hal/fdi/preprobe/10osvendor/20-hplip-devices.fdi
%if_enabled halacl
# fedora's hal-based acl
%{_datadir}/hal/fdi/policy/10osvendor/22-hplip.fdi
%endif
%_libdir/sane/libsane-hpaio*.so*
%exclude %_libdir/sane/libsane-hpaio*.la
# is it needed?
#%{_datadir}/hplip/hpaio.desc
%endif
#TODO
#*** SANE Backend ***
#SANE - need test with real devices and SANE software
#SANE - merge SuSE trigger on installing sane
#*** CUPS Backend ***
# DRV are missing
%changelog
…
Полный changelog можно просмотреть здесь