Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-updates-src > by-pkgid > 0f789f5d9b93bf583deb1f0776dc39b5 > files > 31

hplip-3.14.6-8.1.mga5.src.rpm

# Define if you want to build the sane backend (default)
%define sane_backend		1
%{?_with_sane:			%global sane_backend 1}
%{?_without_sane:		%global sane_backend 0}

%define hpip_major		0
%define hpip_libname		%mklibname hpip %{hpip_major}

%define sane_hpaio_major	1
%define sane_hpaio_libname	%mklibname sane-hpaio %{sane_hpaio_major}

# Suppress automatically generated Requires for devel packages
%global __requires_exclude devel\\\(.*\\\)

# we don't want to provide private python extension libs
%global __provides_exclude %{python_sitearch}/.*\\.so$

#define extraversion -RC1
%define extraversion %nil

Summary:	HP printer/all-in-one driver infrastructure
Name:		hplip
Version:	3.14.6
%define subrel	1
Release:	%mkrel 8
License:	GPLv2+ and MIT
Group:		System/Printing
Source:		http://heanet.dl.sourceforge.net/sourceforge/hplip/%{name}-%{version}%{extraversion}.tar.gz
Source1:	hpcups-update-ppds.sh
Source2:	%{name}-tmpfiles.conf

# (doktor5000) newer automake [>1.13.1] need option subdir-objects if one
# source file is in a subdirectory, build does not complete otherwise
Patch1:	hplip-3.13.2-mga-automake-fix-subdir-objects.patch

# (Anssi) Apply udev rules even on ACTION=="change", otherwise the permissions
# do not get applied in %%post on a new installation:
Patch2:	hplip-apply-udev-rules-on-action-change.patch

# (cjw) HPLIP 3.14.6 set umask to 0 when creating the ~/.hplip directory
#       causing the subsequently created ~/.hplip/hplip.conf to be world-
#       writable. This patch aims to reset the umask after creating the 
#       directory.
Patch3: hplip-3.14.6-no-world-writable-user-config.patch

# Fedora patches
Patch101: hplip-pstotiff-is-rubbish.patch
Patch102: hplip-strstr-const.patch
Patch104: hplip-no-asm.patch
Patch107: hplip-udev-rules.patch
Patch108: hplip-retry-open.patch
Patch109: hplip-snmp-quirks.patch
Patch110: hplip-discovery-method.patch
Patch111: hplip-hpijs-marker-supply.patch
Patch112: hplip-clear-old-state-reasons.patch
Patch114: hplip-hpcups-sigpipe.patch
Patch115: hplip-logdir.patch
Patch116: hplip-bad-low-ink-warning.patch
Patch121: hplip-ppd-ImageableArea.patch
Patch122: hplip-3.14.6-CVE-2015-0839.patch


# Debian/Ubuntu patches
# taken from latest version at http://patch-tracker.debian.org/package/hplip
Patch201: 01_rss.dpatch
Patch203: 14_charsign_fixes.dpatch
# (doktor5000) rediff original debian patch for hplip 3.13.2 (due to Patch1)
Patch204: hplip-3.13.2-mga-85_rebuild_python_ui.dpatch
# (doktor5000) rediff original debian patch for hplip 3.12.4

Patch206: hplip-photosmart_b9100_support.patch
Patch207: hplip-pjl-duplex-binding.patch
# user should be member of group "lp" to scan/print/fax and lpadmin to manage?
# check comment above patch application, currently not applied
#Patch215: simple-scan-as-default.dpatch
Patch219: try_libhpmud.so.0.dpatch
Patch220: add-lidil-two-cartridge-modes.dpatch
Patch225: hpfax-bug-function-used-before-importing-log.dpatch
Patch226: hp-systray-make-menu-title-visible-in-sni-qt-indicator.dpatch
Patch227: hp-systray-make-menu-appear-in-sni-qt-indicator-with-kde.dpatch
Patch228: hpaio-option-duplex.diff

Url:		http://hplip.sourceforge.net/
%if %{sane_backend}
BuildRequires:	libsane-devel
BuildRequires:	xsane
%endif
BuildRequires:	python
BuildRequires:	python-sip >= 4.1.1
BuildRequires:	net-snmp-devel
BuildRequires:	pkgconfig(libusb) >= 0.1.8
BuildRequires:	imagemagick
BuildRequires:	autoconf
BuildRequires:	libcups-devel
BuildRequires:	libjpeg-devel
BuildRequires:	python-devel
BuildRequires:	desktop-file-utils
BuildRequires:	libdbus-devel
BuildRequires:	udev-devel
BuildRequires:	polkit
BuildRequires:	gphoto2-devel
BuildRequires:	libv4l-devel
# Make sure we get postscriptdriver tags:
BuildRequires: python-cups
Requires(post):	systemd >= %{systemd_required_version}
Requires:	cups
# For dynamic ppd generation.
Requires:	foomatic-filters
Requires:	hplip-model-data hplip-hpijs
Requires:	hplip-hpijs-ppds
Requires:	python-sip >= 4.1.1
# Needed for communicating with ethernet-connected printers
Requires:	net-snmp-mibs
# Needed to generate fax cover pages
Requires:	python-reportlab
# Needed since 2.8.4 for IPC
Requires:	python-dbus
Requires:	polkit-agent
Requires:	python-gobject
# Required by hp-scan for command line scanning
Requires:	python-imaging
Requires:	sane-backends-hpaio
# Needed to avoid misleading errors about network connectivity (RH bug #705843)
Requires:	wget
# (cg) needed by at least hp-check
Requires:	acl
# (doktor5000) lsusb is required for hp-check
Requires:	usbutils

%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.

It is work in progress, but printing, scanning, memory card access,
ink/toner/battery/consumable level checking, and inkjet printer
maintenance are supported on most models, when either connected to the
USB or LAN (built-in interfaces or selected HP JetDirect models) on a
Linux workstation with CUPS printing system.

For status and consumable checking and also for inkjet maintenance
there is the graphical tool "hp-toolbox" available (Menu:
"System"/"Monitoring"/"HP Printer Toolbox").

%package -n %{hpip_libname}
Summary: Dynamic library for the "hplip" HP printer/all-in-one drivers
Group: System/Printing

%description -n %{hpip_libname}
Library needed for the "hplip" HP printer/all-in-one drivers

%package -n %{hpip_libname}-devel
Summary: Headers and links to compile against the "%{hpip_libname}" ("hplip") library
Group: Development/C
Requires: %{hpip_libname} >= %{version}-%{release}
Provides: libhpip-devel = %{version}-%{release}

%description -n %{hpip_libname}-devel
This package contains all files which one needs to compile programs using
the "%{hpip_libname}" library.

%if %{sane_backend}
%package -n %{sane_hpaio_libname}
Summary: SANE driver for scanners in HP's multi-function devices (from HPLIP)
Group: System/Printing
Requires: sane-backends
Provides: sane-backends-hpaio = %{version}-%{release}
# (cjw) for system-config-printer
Provides: libsane-hpaio
%global __requires_exclude devel\\(libcrypto\\)|devel\\(libdl\\)|devel\\(libhpip\\)|devel\\(libm\\)|devel\\(libsnmp\\)
%endif

%if %{sane_backend}
%description -n %{sane_hpaio_libname}
SANE driver for scanners in HP's multi-function devices (from HPLIP)
%endif

%if 0
%if %{sane_backend}
%package -n %{sane_hpaio_libname}-devel
Summary: Headers and links to compile against the "%{sane_hpaio_libname}" ("sane-hpaio") library
Group: Development/C
Requires: %{sane_hpaio_libname} >= %{version}-%{release}
Provides: libsane-hpaio-devel = %{version}-%{release}
%endif

%if %{sane_backend}
%description -n %{sane_hpaio_libname}-devel
This package contains all files which one needs to compile programs using
the "%{sane_hpaio_libname}" library.
%endif
%endif

%package model-data
Summary: Data file listing the HP printer models supported by HPLIP
Group: System/Printing

%description model-data
HPLIP supports most current HP printers and multifunction devices, but
there are some older models not supported. This package contains the
list of supported models. Printerdrake installs it automatically to
determine whether HPLIP has to be installed or not.

%package gui
Summary: HPLIP graphical tools
Group: System/Printing
Requires:python-qt4-gui
Requires: %{name} = %{version}-%{release}
Requires: polkit-agent

%description gui
HPLIP graphical tools.


%package hpijs
Summary: HPs printer driver IJS plug-in for GhostScript
Group: System/Printing
Requires: ghostscript
Provides: hpijs

%description hpijs
HPs printer driver IJS plug-in for GhostScript. This driver gives full
printing support for nearly all non-PostScript inkjet and laser
printers made by HP.

%package hpijs-ppds
Summary: PPD files for the HPIJS printer driver
Group: System/Printing
Requires: foomatic-filters, hplip-hpijs

%description hpijs-ppds
PPD files to use the HPIJS printer driver with foomatic-rip and a
printer spooler like CUPS, LPRng, PDQ, ...

%package doc
Summary:	Documentation for HPLIP
Group:		System/Printing

%description doc
This package contains documentation for the HPLIP driver.

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.

%prep
rm -rf $RPM_BUILD_DIR/%{name}-%{version}%{extraversion}
%setup -q -n %{name}-%{version}%{extraversion}

%patch1 -p1 -b .automake-subdir-objects

%patch2 -p1 -b .udev-rules-on-action-change

%patch3 -p1 -b .umask

# Fedora patches

# 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 (RH bug #243273).
#%patch103 -p1 -b .ui-optional

# Make sure to avoid handwritten asm.
%patch104 -p1 -b .no-asm

# Stopped hpcups pointlessly trying to read spool files
# directly (RH bug #552572).
#%patch106 -p1 -b .mucks-with-spooldir

# Removed SYSFS use in udev rules and actually made them work (bug #560754).
# Move udev rules to /lib/udev/rules.d (bug #748208).
%patch107 -p1 -b .udev-rules

# Retry when connecting to device fails (RH bug #532112).
%patch108 -p1 -b .retry-open

# Mark SNMP quirks in PPD for HP OfficeJet Pro 8500 (RH bug #581825).
%patch109 -p1 -b .snmp-quirks

# Fixed hp-setup traceback when discovery page is skipped (RH bug #523685).
%patch110 -p1 -b .discovery-method

# Fixed bogus low ink warnings from hpijs driver (RH bug #643643).
%patch111 -p1 -b .hpijs-marker-supply

# Clear old printer-state-reasons we used to manage (RH bug #510926).
%patch112 -p1 -b .clear-old-state-reasons

# Avoid busy loop in hpcups when backend has exited (RH bug #525944).
%patch114 -p1 -b .hpcups-sigpipe

# CUPS filters should use TMPDIR when available (bug #865603).
%patch115 -p1 -b .logdir

# Fixed Device ID parsing code in hpijs's dj9xxvip.c (RH bug #510926).
%patch116 -p1 -b .bad-low-ink-warning

# Fix ImageableArea for Laserjet 8150/9000 (RH bug #596298).
for ppd_file in $(grep '^diff' %{PATCH121} | cut -d " " -f 4);
do
  gunzip ${ppd_file#*/}.gz
done
%patch121 -p1 -b .ImageableArea
for ppd_file in $(grep '^diff' %{PATCH121} | cut -d " " -f 4);
do
  gzip -n ${ppd_file#*/}
done

%patch122 -p1 -b .CVE-2015-0839

# Call cupsSetUser in cupsext's addPrinter method before connecting so
# that we can get an authentication callback (RH bug #538352).
#%patch124 -p1 -b .addprinter

# Don't run 'chgrp lp /var/log/hp' in makefile (removes all lines with "chgrp")
sed -i '/chgrp/d' Makefile.am

# Pay attention to the SANE localOnly flag in hpaio (RH bug #743593).
#%patch130 -p1 -b .hpaio-localonly

sed -i.duplex-constraints \
    -e 's,\(UIConstraints.* \*Duplex\),//\1,' \
    prnt/drv/hpcups.drv.in

# Avoid several bugs in createTempFile (RH bug #925032)
#%patch134 -p1 -b .mkstemp


# Debian/Ubuntu patches

# This patch tries to make sure that black is printed with just
# the black pen, if the printer supports it
%patch201 -p1 -b .01_rss

# code cleanup related to char signedness
%patch203 -p1 -b .14_charsign

# compiling ui files to py
%patch204 -p1 -b .85_rebuild_python_ui

# place html documentation under hplip-doc/HTML/
#%patch205 -p1 -b .87_move_documentation

# Corrections on the models.dat entry for the HP PhotoSmart Pro B9100,
# especially for the correct color calibration mode.
%patch206 -p1 -b .hplip-photosmart_b9100_support

# Fixes Short-edge duplex printing if duplex is PJL-controlled
# https://bugs.launchpad.net/hplip/+bug/244295
%patch207 -p1 -b .hplip-pjl-duplex-binding

# https://bugs.launchpad.net/debian/+source/hplip/+bug/530746
# needs to be investigated http://www.cups.org/str.php?L3555+P0+S-2+C0+I0+E0+M20+Q
#%patch209 -p1 -b .hp-check-groups

#%patch213 -p1 -b .hp-mkuri-take-into-account-already-installed-plugin-also-for-exit-value

# disable for now, as this changes default hplip behavior
# and change in default scanning application should be decided by a poll first
#%patch215 -p1 -b .simple-scan-as-default

# dlopen libhpmud.so.0 instad of libhpmud.so, in order not to depend on
# devel package (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=548379)
# obsoletes hplip-3.9.8-dlopen-libhpmud.patch, newer & extended version
%patch219 -p1 -b .try_libhpmud.so.0

%patch220 -p1 -b .add-lidil-two-cartridge-modes

#%patch221 -p1 -b .hp-mkuri-libnotify-so-4-support

%patch225 -p1 -b .hpfax-bug-function-used-before-importing-log

%patch226 -p1 -b .hp-systray-make-menu-title-visible-in-sni-qt-indicator

%patch227 -p1 -b .hp-systray-make-menu-appear-in-sni-qt-indicator-with-kde

%patch228 -p1 -b .hpaio-option-duplex

#%patch500 -p1 -b  .cve-2013-4325

#%patch501 -p1 -b  .cve-2013-6402

# Use filter foomatic-rip instead of foomatic-rip-hplip (fix from Mandriva)
for PPDGZ in ppd/hpijs/*.ppd.gz
do
mv -T "$PPDGZ" "$PPDGZ.old"
zcat "$PPDGZ.old" | sed -e 's/foomatic-rip-hplip/foomatic-rip/' | gzip -c > "$PPDGZ"
rm -f "$PPDGZ.old"
done

# Make all files in the source user-writable
chmod -R u+w .

%build
%serverbuild
# create required files as placeholder, otherwise autoreconf fails
touch NEWS README AUTHORS ChangeLog
#needed by patches 204 and 205
autoreconf -ifv



%if !%{sane_backend}
WITHOUT_SANE="--without-sane"
%endif
%configure2_5x $WITHOUT_SANE \
	--disable-foomatic-rip-hplip-install \
	--enable-scan-build \
	--enable-gui-build \
	--enable-fax-build \
	--enable-pp-build \
	--enable-qt4 --disable-qt3 \
	--enable-hpcups-install \
	--enable-cups-drv-install \
	--enable-cups-ppd-install \
	--enable-hpijs-install \
	--enable-udev-acl-rules \
	--enable-policykit \
	--with-mimedir=%{_datadir}/cups/mime

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
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_includedir}
mkdir -p %{buildroot}%{_initrddir}
mkdir -p %{buildroot}%{_sysconfdir}/hp

%makeinstall_std

# Install files which the "make install" missed to install
install -m 644 ip/hpip.h %{buildroot}%{_includedir}
install -m 644 ip/xform.h %{buildroot}%{_includedir}

# Move doc in sub-package
mv %{buildroot}%{_docdir}/%{name}-%{version}%{extraversion} %{buildroot}%{_docdir}/%{name}-doc-%{version}%{extraversion}

# Remove static libraries of SANE driver
rm -f %{buildroot}%{_libdir}/sane/libsane-hpaio*.so
rm -f %{buildroot}%{_libdir}/sane/libsane-hpaio*.la
rm -f %{buildroot}%{_sysconfdir}/sane.d/dll.conf

# Remove other unneeded/unwanted files
rm -f %{buildroot}%{py_platsitedir}/*.la
rm -f %{buildroot}%{_datadir}/hplip/uninstall.*
rm -f %{buildroot}%{_bindir}/hp-uninstall
# remove all upgrade-dialog files, also related to CVE-2013-6427
# previously we only removed the upgrade binary, but missed some upgrade dialog files
rm -f %{buildroot}%{_datadir}/hplip/upgrade*
rm -f %{buildroot}%{_bindir}/hp-upgrade
rm -f %{buildroot}%{_bindir}/hp-config_usb_printer
rm -f %{buildroot}%{_unitdir}/hplip-printer@.service
rm -f %{buildroot}%{_datadir}/hplip/config_usb_printer.*

# install menu icons
#mkdir -p %{buildroot}%{_iconsdir}/locolor/16x16/apps/
#install -m 644 %{name}.png -D %{buildroot}%{_iconsdir}/%{name}.png
#install -m 644 %{name}.mini.png -D %{buildroot}%{_miconsdir}/%{name}.png
#install -m 644 %{name}.large.png -D %{buildroot}%{_liconsdir}/%{name}.png

mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install --vendor='' \
	--dir=%{buildroot}%{_datadir}/applications \
	--remove-category='Application' \
	--remove-category='Utility' \
	--add-category='System' \
	--add-category='Settings' \
	--add-category='Printing' \
        --add-category='Qt' \
        --add-category='HardwareSettings' \
	--remove-key='Version' \
        %{buildroot}%{_datadir}/applications/hplip.desktop

cat > $RPM_BUILD_ROOT%{_datadir}/applications/hp-sendfax.desktop << EOF
[Desktop Entry]
Name=HP Sendfax
Name[br]=Kas ur faks (HP)
Name[ru]=Отправка факсов (HP)
Name[zh_CN]=惠普发送传真
Comment=Utility for sending faxes with HP's multi-function devices
Comment[bs]=Alat za slanje faksova putem HPovih višefunkcijskih uređaja
Comment[cs]=Pomocný program pro posílání faxů pomocí multifunkčních zařízení HP
Comment[cy]=Gwasanaeth anfon ffacs drwy ddyfeisiau amlbwrpas HP
Comment[de]=Werkzeug um Faxe mit HP-Multifunktionsgeräten zu versenden
Comment[et]=Tööriist fakside saatmiseks HP multifunktsionaalsetest seadmetest
Comment[gl]=Utilidade para enviar faxes cos dispositivos multifunción de HP
Comment[he]=יישום למשלוח פקסים עם מכשירים משולבים של HP
Comment[hu]=Faxküldés a HP-féle többfunkciós eszközökkel
Comment[id]=Utilitas untuk mengirimkan fax dengan divais multi fungsi HP
Comment[is]=Forrit til að senda fax með fjölnotatækjum HP
Comment[it]=Strumento per inviare fax con i dispositivi HP multi-funzione
Comment[ja]=HP の多機能デバイスで FAX を送信するためのユーティリティ
Comment[mk]=Алатка за праќање факсови со повеќе-функциски „HP“ уреди
Comment[nb]=Verktøy for å sende fakser med HPs multifunksjonsenheter
Comment[nl]=Hulpprogramma voor het sturen van faxen met HP multifunctionele apparaten
Comment[nn]=Verktøy for sending av faksar med HPs multifunksjonseiningar
Comment[pl]=Program do wysyłania faksów przez wielofunkcyjne urządzenia HP
Comment[pt]=Utilitário para enviar faxes com dispositivos multi-funções HP
Comment[pt_BR]=Utilitário para enviar faxes com multifuncionais HP
Comment[ru]=Утилита для отправки факсов с помощью МФУ HP
Comment[sl]=Program za pošiljanje faksov z večnamensko napravo HP
Comment[sv]=Verktyg för att skicka fax med HPs multi-funktions-enheter
Comment[tr]=HP'nin çok fonksiyonlu aygıtlarıyla faks göndermek için yardımcı program
Comment[zh_CN]=使用惠普多功能一体机发送传真的工具
Comment[zh_TW]=使用 HP 多功能設備發送傳真的工具程式
Exec=%{_bindir}/hp-sendfax
Icon=%{_datadir}/%{name}/data/images/32x32/fax_machine.png
Terminal=false
Type=Application
Categories=TelephonyTools;Qt;Printing;Utility;X-MageiaLinux-CrossDesktop;
EOF

# tmpfiles.d for folders on transient media
%{__install} -D -p -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf

# (cg) Correct the udev rules dir
mkdir -p %{buildroot}%{_prefix}/lib
mv %{buildroot}%{_sysconfdir}/udev %{buildroot}%{_prefix}/lib/

# switched to udev, no need for hal information
rm -rf  %{buildroot}%{_datadir}/hal/fdi 

rm -f   %{buildroot}%{_libdir}/*.la \
        %{buildroot}%{python_sitearch}/*.la \
        %{buildroot}%{_libdir}/sane/*.la

# Regenerate hpcups PPDs on upgrade if necessary (bug #579355).
install -p -m755 %{SOURCE1} %{buildroot}%{_bindir}/hpcups-update-ppds

# Fedora pstotiff
rm -f %{buildroot}%{_sysconfdir}/cups/pstotiff.types
rm -f %{buildroot}%{_datadir}/cups/mime/pstotiff.types
rm -f %{buildroot}%{_datadir}/hplip/fax/pstotiff*
rm -f %{buildroot}%{_prefix}/lib/cups/filter/hpcac

# bork?
install -d %{buildroot}%{_sysconfdir}/cups
cp -p %{buildroot}%{_datadir}/cups/mime/pstotiff.convs %{buildroot}%{_sysconfdir}/cups/pstotiff.convs

# (cg) Create post consolehelper compatibility links
mkdir -p %{buildroot}%{_sbindir}
ln -sf %{_bindir}/hp-setup %{buildroot}%{_sbindir}

# Make sure pyc files are generated, otherwise we can get
# difficult to debug problems
pushd %{buildroot}%{_datadir}/%{name}
python -m compileall .
popd

# create empty /var/lip/hp/hplip.state to fix hp-plugin installation (mga#5395)
mkdir -p %{buildroot}%{_localstatedir}/lib/hp/
touch %{buildroot}%{_localstatedir}/lib/hp/hplip.state

# create empty log directory so that it can be owned
mkdir -p %{buildroot}%{_localstatedir}/log/hp/tmp

%triggerin -- hplip < 2.7.7
chkconfig --del hplip

# Restart CUPS to make the Fax PPD known to it
if [ -f /etc/init.d/cups ]; then
	/sbin/service cups condrestart || :
fi

%post
%_tmpfilescreate %{name}

%post -n hplip-hpijs-ppds
# Restart CUPS to make the printing PPDs known to it
if [ -f /etc/init.d/cups ]; then
	/sbin/service cups condrestart || :
fi

%post -n hplip-hpijs
%{_bindir}/hpcups-update-ppds &>/dev/null ||:

%post -n hplip-model-data
/sbin/udevadm trigger --subsystem-match=usb --attr-match=idVendor=03f0
# ensure permissions are ready when installation completes
/sbin/udevadm settle --timeout=15
:

%if %{sane_backend}
%post -n %{sane_hpaio_libname}

# Add HPLIP driver to /etc/sane.d/dll.conf
if ! grep ^hpaio /etc/sane.d/dll.conf >/dev/null 2>/dev/null ; then \
	echo hpaio >> /etc/sane.d/dll.conf; \
fi
%endif

%if %{sane_backend}
%preun -n %{sane_hpaio_libname}
# Remove HPLIP driver from /etc/sane.d/dll.conf
if [ "$1" = 0 ]; then \
	if grep ^hpaio /etc/sane.d/dll.conf >/dev/null 2>/dev/null ; then \
		sed '/hpaio/d' /etc/sane.d/dll.conf > /tmp/$$; \
		cp -f /tmp/$$ /etc/sane.d/dll.conf; \
		rm -f /tmp/$$; \
	fi; \
fi
%endif

# Restart CUPS to make the removal of the Fax PPD known to it
if [ -f /etc/init.d/cups ]; then
	/sbin/service cups condrestart || :
fi

%postun -n hplip-hpijs-ppds
# Restart CUPS to make the removal of the printing PPDs known to it
if [ -f /etc/init.d/cups ]; then
	/sbin/service cups condrestart || :
fi

%files
#doc COPYING doc/*
%config(noreplace) %{_sysconfdir}/hp
%dir %{_localstatedir}/lib/hp/
%dir %{_localstatedir}/log/hp/tmp
%{_bindir}/hp-align
%{_bindir}/hp-clean
%{_bindir}/hp-colorcal
%{_bindir}/hp-devicesettings
%{_bindir}/hp-diagnose_plugin
%{_bindir}/hp-diagnose_queues
%{_bindir}/hp-doctor
%{_bindir}/hp-fab
%{_bindir}/hp-faxsetup
%{_bindir}/hp-firmware
%{_bindir}/hp-info
%{_bindir}/hp-levels
%{_bindir}/hp-logcapture
%{_bindir}/hp-linefeedcal
%{_bindir}/hp-makecopies
%{_bindir}/hp-makeuri
%{_bindir}/hp-pkservice
%{_bindir}/hp-plugin
%{_bindir}/hp-pqdiag
%{_bindir}/hp-printsettings
%{_bindir}/hp-probe
%{_bindir}/hp-query
%{_bindir}/hp-scan
%{_bindir}/hp-sendfax
%{_bindir}/hp-setup
%{_sbindir}/hp-setup
%{_bindir}/hp-testpage
%{_bindir}/hp-timedate
%{_bindir}/hp-unload
%{_bindir}/hp-wificonfig

%exclude %{_datadir}/hplip/data/models
# C libraries for Python
%{_libdir}/python*/*/*.so*
# CUPS backends (0755 permissions, so that CUPS 1.2 runs these backends
# as lp user)
# Note: this must be /usr/lib not %{_libdir}, since that's the
# CUPS serverbin directory.
%attr(0755,root,root) %{_prefix}/lib/cups/backend/hp*
%{_prefix}/lib/cups/filter/hpcups
%{_prefix}/lib/cups/filter/hpcupsfax
%{_prefix}/lib/cups/filter/hpps
%{_prefix}/lib/cups/filter/pstotiff
%{_datadir}/cups/mime/pstotiff.convs
%config(noreplace) %{_sysconfdir}/cups/pstotiff.convs
%{_datadir}/ppd/HP/HP-Fax*.ppd*
%{_datadir}/cups/drv/hp/hpcups.drv
# Files
%dir %{_datadir}/hplip
%{_datadir}/hplip/align.py*
%{_datadir}/hplip/check-plugin.py*
%{_datadir}/hplip/clean.py*
%{_datadir}/hplip/colorcal.py*
%{_datadir}/hplip/devicesettings.py*
%{_datadir}/hplip/diagnose_plugin.py*
%{_datadir}/hplip/diagnose_queues.py*
%{_datadir}/hplip/doctor.py*
%{_datadir}/hplip/fab.py*
%{_datadir}/hplip/fax
%{_datadir}/hplip/faxsetup.py*
%{_datadir}/hplip/firmware.py*
%{_datadir}/hplip/hpdio.py*
%{_datadir}/hplip/hplip_clean.sh
%{_datadir}/hplip/hpssd*
%{_datadir}/hplip/info.py*
%{_datadir}/hplip/__init__.py*
%{_datadir}/hplip/levels.py*
%{_datadir}/hplip/logcapture.py*
%{_datadir}/hplip/linefeedcal.py*
%{_datadir}/hplip/makecopies.py*
%{_datadir}/hplip/makeuri.py*
%{_datadir}/hplip/pkservice.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*
# Directories
%{_datadir}/hplip/base
%{_datadir}/hplip/copier
%dir %{_datadir}/hplip/data
%{_datadir}/hplip/data/ldl
%{_datadir}/hplip/data/localization
%{_datadir}/hplip/data/models
%{_datadir}/hplip/data/pcl
%{_datadir}/hplip/data/ps
%{_datadir}/hplip/installer
%{_datadir}/hplip/pcard
%{_datadir}/hplip/prnt
%{_datadir}/hplip/scan
%{_datadir}/polkit-1/actions/com.hp.hplip.policy
%{_datadir}/dbus-1/system-services/com.hp.hplip.service
%{_tmpfilesdir}/%{name}.conf
%{_localstatedir}/lib/hp/hplip.state
%dir %attr(0774,root,lp) %{_localstatedir}/log/hp
%dir %attr(1774,root,lp) %{_localstatedir}/log/hp/tmp
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/com.hp.hplip.conf

%files doc
%doc %{_docdir}/%{name}-doc-%{version}%{extraversion}

%files -n %{hpip_libname}
%{_libdir}/libhpip*.so.*
%{_libdir}/libhpmud.so.*

%files -n %{hpip_libname}-devel
%{_includedir}/hpip.h
%{_includedir}/xform.h
%{_libdir}/libhpip*.so
%{_libdir}/libhpmud.so

%if %{sane_backend}

%files -n %{sane_hpaio_libname}
%{_libdir}/sane/libsane-hpaio*.so.*

%endif

%files model-data
%{_udevrulesdir}/*.rules
%{_datadir}/hplip/data/models

%files gui
%{_bindir}/hp-check
%{_bindir}/hp-print
%{_bindir}/hp-systray
%{_bindir}/hp-toolbox
%{_datadir}/applications/*.desktop
%{_sysconfdir}/xdg/autostart/hplip-systray.desktop
%{_datadir}/hplip/check.py*
%{_datadir}/hplip/print.py*
%{_datadir}/hplip/systray.py*
%{_datadir}/hplip/toolbox.py*
%{_datadir}/hplip/data/images
%{_datadir}/hplip/ui4

%files hpijs
%{_bindir}/hpijs
# Needed for both printing and fax PPDs. They all need HPIJS, therefore
# the link is here
%dir %{_datadir}/ppd
%dir %{_datadir}/ppd/HP
%{_bindir}/hpcups-update-ppds

%files hpijs-ppds
%{_datadir}/ppd/HP/apollo*.ppd*
%{_datadir}/ppd/HP/hp-*.ppd*



%changelog
* Thu Sep 03 2015 luigiwalser <luigiwalser> 3.14.6-8.1.mga5
+ Revision: 872644
- rediff patch from fedora to fix CVE-2015-0839

* Fri Nov 21 2014 alexl <alexl> 3.14.6-8.mga5
+ Revision: 798184
- translate Name for hp-sendfax.desktop (merge with Mandrake)

* Fri Nov 21 2014 cjw <cjw> 3.14.6-7.mga5
+ Revision: 798079
- patch3: reset umask after creating ~/.hplip/ so ~/.hplip/hplip.conf is not created with world-writable permissions (fixes #14600)

* Wed Nov 19 2014 alexl <alexl> 3.14.6-6.mga5
+ Revision: 797838
- s/Mandriva/Mageia/
- translated hp-sendfax.desktop

* Thu Nov 13 2014 tv <tv> 3.14.6-5.mga5
+ Revision: 796728
- BR python-cups so that we got postscriptdriver provides

* Wed Oct 15 2014 umeabot <umeabot> 3.14.6-4.mga5
+ Revision: 741495
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 tv <tv> 3.14.6-3.mga5
+ Revision: 689528
- fix excludes
- use %%global for req/prov exclude
- autoconvert to new prov/req excludes

  + umeabot <umeabot>
    - Mageia 5 Mass Rebuild

* Sat Jul 05 2014 pterjan <pterjan> 3.14.6-2.mga5
+ Revision: 643685
- Replace libusb*-devel BuildRequires by better ones

  + dtux <dtux>
    - change to version 3.14.6 of hplip
    - patch 103 : hplip-ui-optional.patch fixed upstream
    - patch 106 : hplip-mucks-with-spooldir.patch fixed upstream
    - patch 124 : hplip-addprinter.patch fixed upstream
    - patch 130 : hplip-hpaio-localonly.patch fixed upstream
    - patch 134 : hplip-mkstemp.patch fixed upstream
    - patch 205 : hplip-3.12.4-mga-87_move_documentation.dpatch fixed upstream
    - patch 213 : hp-mkuri-take-into-account-already-installed-plugin-also-for-exit-value.dpatch fixed upstream
    - patch 221 : hp-mkuri-libnotify-so-4-support.dpatch fixed upstream
    - patch 500 : hplip-CVE-2013-4325.patch fixed upstream
    - patch 501 : hplip-3.13.9-mga-CVE-2013-6402.patch fixed upstream
    - hplip-apply-udev-rules-on-action-change.patch modified
    - hplip-discovery-method.patch modified
    - hplip-hpijs-marker-supply.patch modified
    - hplip-logdir.patch modified some patches fixed upstream
    - hplip-udev-rules.patch modified
    - try_libhpmud.so.0.dpatch some patch fixed upstream

* Wed Jan 22 2014 doktor5000 <doktor5000> 3.13.9-4.mga4
+ Revision: 567495
- changed Patch501 to fix CVE-2013-6402 (mga#11809)
  o use Ubuntu patch backported from hplip-3.14.1 upstream fix

* Mon Jan 06 2014 doktor5000 <doktor5000> 3.13.9-3.mga4
+ Revision: 565216
- add Patch501 to fix CVE-2013-6402 (mga#11809)
  o fixes insecure hardcoded logfile name /tmp/hp-pkservice.log in pkit.py
- remove all upgrade-dialog files, not only the upgrade binary
  o more thorough fix for CVE-2013-6427
- added Requires on usbutils for lsusb, required for hp-check

* Tue Oct 22 2013 umeabot <umeabot> 3.13.9-2.mga4
+ Revision: 541678
- Mageia 4 Mass Rebuild

* Sun Oct 13 2013 doktor5000 <doktor5000> 3.13.9-1.mga4
+ Revision: 496333
- new version 3.13.9
  o lp#1209339  - HP OfficeJet G55 is not detecting through USB
  o Added support for print queue addition using hostname(hp-setup <HOSTNAME>)
  o Fix for plugin installation and test page in 'hp-setup -i'
- updated hplip-logdir.patch (from Fedora)
- updated hplip-no-asm.patch (from Fedora)
- removed the following patches (from Fedora), merged upstream with 3.13.9
  o hplip-IEEE-1284-4.patch
  o hplip-UnicodeDecodeError.patch
  o hplip-dbglog-newline.patch
  o hplip-dbus-exception.patch
  o hplip-notification-exception.patch
  o hplip-raw_deviceID-traceback.patch
  o hplip-skip-blank-lines.patch
  o hplip-systray-dbus-exception.patch
- removed the following patches (from Debian), merged upstream with 3.13.9
  o 10_shebang_fixes.dpatch
  o make-commafy-correctly-work-with-python-2.dpatch
- removed the following patches (from OpenSuse), merged upstream with 3.13.9
  o fix-uninitialized-variables.patch

* Sun Oct 13 2013 doktor5000 <doktor5000> 3.13.8-1.mga4
+ Revision: 496323
- new version 3.13.8
  o lp#233393  - Smart install disable popup is coming for HP pen drive and
    HP CD/DVD ROM
  o Added support for Avahi network printer browsing
  o Using SLP protocol by default to browse printer in hp-setup

* Sun Oct 13 2013 doktor5000 <doktor5000> 3.13.7-1.mga4
+ Revision: 496317
- new version 3.13.7
  o lp#746814  - CVE-2010-4267 Remote Stack Overflow Vulnerability
  o lp#1195221 - Unable to install plugin for network printer Laserjet 2600n
  o lp#1197306 - HP laserjet 1020 not printing on Ubuntu12.10 after power cycle
    the printer
  o lp#1196335 - HPLIP 3.13.6 stop working after shutting down/rebooting the
    computer
  o Unable to launch "Align Cartrides" and "Clean Cartridges" interfaces
    from HP Device Manager
- removed hplip-CVE-2010-4267.patch, integrated upstream

* Sun Oct 13 2013 doktor5000 <doktor5000> 3.13.6-1.mga4
+ Revision: 496307
- new version 3.13.6
  o lp#1186411 - Fix for firmware download during plug and play
  o added support for CUPS 1.6 IPP Private Structure changes
- added hplip-mkstemp.patch (from Fedora), avoids several bugs in
  createTempFile function (RH#925032)
- updated hplip-udev-rules.patch (from Fedora)
- removed cron config /etc/cron.daily/hplip_cron, merged upstream into
  /usr/share/hplip/hplip_clean.sh

* Sun Oct 13 2013 doktor5000 <doktor5000> 3.13.5-1.mga4
+ Revision: 496299
- new version 3.13.5
  o bottom margin is not printing on 8.5x13in paper size for DeskJet 2050 J510
- added /var/run/hplip to hplip-tmpfiles.conf
- remove new Suse-specific hplip-printer@.service
- marked cron job file as config(noreplace) (Fedora)
- rediffed hplip-apply-udev-rules-on-action-change.patch as all but one
  rules files have been removed
- rediffed hplip-dbglog-newline.patch
- rediffed hplip-logdir.patch
 -rediffed hplip-udev-rules.patch, integrated fix from Fedora to not add a
  printer queue, just check plugin is installed
- new version 3.13.4
- updated hplip-dbglog-newline.patch
- updated hplip-logdir.patch (from Fedora) - moves hpfax pipe to /var/run/hplip
- updated hplip-snmp-quirks.patch
- added hp-mkuri-libnotify-so-4-support.dpatch (from Debian)
- removed hplip-ipp-accessors.patch, integrated upstream
- removed hplip-3.11.10-mga-remove-duplicate-entry-for-cp1700-in-drv-files.patch
- removed hp-setup-prompt-for-custom-PPD.dpatch

* Sun Oct 13 2013 colin <colin> 3.13.3-2.mga4
+ Revision: 496248
- Drop consolehelper support as polkit support should be built in.

* Sun Oct 13 2013 doktor5000 <doktor5000> 3.13.3-1.mga4
+ Revision: 496167
- new version 3.13.3
  o fixed lp#1131596 - Not able to install HP 3.13.2 plugin
- removed hplip-pillow.patch, integrated upstream
  lp#1099853 - Fix use of PIL (Python Imaging Library) to support Pillow

* Fri Sep 27 2013 doktor5000 <doktor5000> 3.13.2-1.mga4
+ Revision: 487888
- new version 3.13.2
  o hp-check-plugin command removed, hp-doctor command added
  o fixed lp#816763 - Wrong syslog facility for debug messages
- removed hplip-check.patch
- removed hplip-syslog-fix-debug-messages-to-error.dpatch, integrated upstream
- removed hplip-3.13.2-mga-kde4-kdesudo-support.patch
- rediffed hplip-3.13.2-mga-automake-fix-subdir-objects.patch
- rediffed hplip-3.13.2-mga-85_rebuild_python_ui.dpatch
- renamed mga-kde4-kdesudo-support.dpatch (from Debian) and rediffed to
  hplip-3.13.2-mga-kde4-kdesudo-support.patch
- updated hplip-IEEE-1284-4.patch (from Fedora)
- updated hplip-logdir.patch (from Fedora)
- updated try_libhpmud.so.0.dpatch (from Debian)
- added hplip-pillow.patch f. python imaging library (PIL) import (from Fedora)
- added Provides exceptions for private python extension libs
- removed old Obsoletes/Provides on foomatic-db-hpijs
- removed old Suggests for foomatic-db-hpijs, package does not exist anymore
  and foomatic-db does not contain PPDs for HP printers, only .xml sources

* Sun Sep 22 2013 colin <colin> 3.12.11-2.mga4
+ Revision: 483257
- Make polkit usage secure (mga#11260 CVE-2013-4325)

* Sun Jul 07 2013 doktor5000 <doktor5000> 3.12.11-1.mga4
+ Revision: 450888
- new version 3.12.11
  o various fixes for hp-check
- updated hplip-IEEE-1284-4.patch (from Fedora)
- updated hplip-snmp-quirks.patch (from Fedora)
- added hplip-ipp-accessors.patch, to build against cups >= 1.6 (from Fedora)
- added hplip-udev-rules.patch (from Fedora)
  moves udev rules to /lib/udev/rules.d
- added hplip-systray-dbus-exception.patch (from Fedora)
 "Catch DBusException in hp-systray (rh#746024)
- added hplip-ui-optional.patch (from Fedora)
  "Make utils.checkPyQtImport() look for the gui sub-package (rh#243273)
- added hplip-logdir.patch (from Fedora)
  fixes "CUPS filters should use TMPDIR when available" (rh#865603)
- added hplip-check.patch (from Fedora)
  "Various adjustments to make 'hp-check' run more smoothly" (lp#683007)

* Sun Jun 23 2013 doktor5000 <doktor5000> 3.12.10-1.mga4
+ Revision: 446031
- use autoreconf instead of calling libtoolize/aclocal/autoconf/automake
- added required files for autoreconf
- added AUTOMAKE_OPTIONS = subdir-objects for newer automake
  (hplip-3.12.10-mga-automake-fix-subdir-objects.patch)
- rediffed Patch204 (hplip-3.12.10-mga-85_rebuild_python_ui.dpatch)
- new version 3.12.10
  o fixes hp binary plugin installation to /var/lib/hp - (hplip#1048732)
  o fixes "Cannot scan resolution on a Photosmart C6380" (mga#7637)
- removed obsoleted patch131 for CVE-2013-0200, integrated upstream
- updated hplip-notification-exception.patch (from Fedora)
- added hplip-IEEE-1284-4.patch to support IEEE 1284.4 protocol over USB
  (from Fedora)
- added %%{_localstatedir}/log/hp/tmp directory to fix hp-sendfax (rh#859658)

* Sun Mar 24 2013 colin <colin> 3.12.9-6.mga3
+ Revision: 404859
- Add systemd requires and general post/pre fixes (mga#9302)

* Thu Feb 21 2013 luigiwalser <luigiwalser> 3.12.9-5.mga3
+ Revision: 399787
- rediff patch from redhat to fix CVE-2013-0200

* Tue Jan 15 2013 colin <colin> 3.12.9-4.mga3
+ Revision: 388373
- Switch to tmpfiles
- Fix udev rules.d dir

* Sat Jan 12 2013 umeabot <umeabot> 3.12.9-3.mga3
+ Revision: 353282
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Thu Dec 20 2012 colin <colin> 3.12.9-2.mga3
+ Revision: 333359
- Require acl for hp-check (mga#8125)

* Thu Sep 20 2012 doktor5000 <doktor5000> 3.12.9-1.mga3
+ Revision: 296427
- new version 3.12.9
  o Added logcapture tool. User can collect logs by running 'hp-logcapture'
    command for any issue in print/scan/fax functionality
  o Fixed incorrect PPD picking issue during auto-plugin
  o Device IO error occurs when configuring or perform Scan operation from toolbox with PhotoSmart 6510 Series
- updated hplip-addprinter.patch from Fedora
- rediffed hplip-syslog-fix-debug-messages-to-error.patch
- replaced hplip-3.12.9-mga-makefile-chgrp.patch with sed call
- removed hplip-fax-ppd.patch
- update file list, add empty log directory

* Wed Sep 19 2012 doktor5000 <doktor5000> 3.12.6-1.mga3
+ Revision: 296267
- new version 3.12.6
  o Added PIN to PRINT support for HP Color LaserJet CM4540 MFP
  o Supplies information refreshes now without hp-toolbox restart
  o Fix for multiple queues configured warning message
  o Added dynamic cartridge part number display support for LEDM devices
  o Enabled Low ink alert message display for LEDM devices
- added hpaio-option-duplex.diff from Debian
- rediffed hplip-apply-udev-rules-on-action-change.patch
- updated hplip-mucks-with-spooldir.patch, hplip-snmp-quirks.patch,
  hplip-clear-old-state-reasons.patch, hplip-dbglog-newline.patch from Fedora
- removed hp-check-groups.dpatch
- removed unstandard X-MandrivaLinux-CrossDesktop from .desktop file (mga#3629)
- remove unapplied patches: hplip-3.11.3-mdv-link, hp-check_debian,
  ubuntu-hp-mkuri-notification-text, add_missing_newline_for_error_log,
  hplip-udev-rules.patch
- readded /var/lib/hp/hplip.state to fix hplip-plugin installation (mga#5395)

* Sun Apr 29 2012 doktor5000 <doktor5000> 3.12.4-1.mga2
+ Revision: 234171
- new version 3.12.4
  o Print/Fax queues can now be analyzed by running "hp-diagnose-queues"
  o fixes some issues and duplex scanning support with newer AIO devices
  o fixes Wireless configuration using hp-wificonfig command for
    HP Deskjet 3000 J310 series and HP Deskjet 3050 J610 series
  o fixes the blurry printing issue on HP LaserJet CP1025 and CP1025nw
- rediffed makefile-chgrp.patch, 85_rebuild_python_ui.dpatch and
  87_move_documentation.dpatch
- added fix-uninitialized-variables.patch (from OpenSUSE)
- remove binaries to uninstall/upgrade hplip

* Thu Apr 05 2012 anssi <anssi> 3.12.2-3.mga2
+ Revision: 228566
- don't fail %%post if udevadm settle fails

* Mon Mar 26 2012 anssi <anssi> 3.12.2-2.mga2
+ Revision: 226536
- actually apply udev rules in %%post by not depending on ACTION=="add"
  in the udev rules, instead depend on ACTION!="remove"
  (apply-udev-rules-on-action-change.patch)
- wait for udev to settle in %%post

* Mon Feb 27 2012 doktor5000 <doktor5000> 3.12.2-1.mga2
+ Revision: 215696
- new version 3.12.2
  o fixes the issue of digital signature mismatch for the plugin download by
    switching off the cache while downloading the plugin from the server
- don't remove systray applet launcher anymore, enables systray applet function
- added hpfax-bug-function-used-before-importing-log.dpatch (from Debian)
- added hp-systray-make-menu-title-visible-in-sni-qt-indicator.dpatch
  (from Debian)
- added hp-systray-make-menu-appear-in-sni-qt-indicator-with-kde.dpatch
- removed hplip-no-system-tray.patch, integrated upstream (hplip#335662)
- removed cups-1.5.0-compatibility.dpatch, integrated upstream
- removed useless Requires on cupsddk-drivers (provided by cups)
- removed obsolete %%clean section and empty %%defattrs
- updated file list

* Tue Dec 20 2011 doktor5000 <doktor5000> 3.11.12-1.mga2
+ Revision: 184886
- new version 3.11.12
  o Auto-detection and installation of missing plug-ins added
  o fixes hpcups not respecting top margins (hplip#890684)
- added mga-makefile-chgrp.patch, recreated from makefile-chgrp.patch against
  Makefile.am because we reprocess that one (from Fedora)
- added hplip-hpaio-localonly.patch (from Fedora)
- updated clear-old-state-reasons.patch (from Fedora)
- updated dbglog-newline.patch (from Fedora)
- updated mucks-with-spooldir.patch (from Fedora)
- updated udev-rules.patch (from Fedora)
- rediffed syslog-fix-debug-messages-to-error.dpatch
- removed dbus-threads.patch, integrated upstream (hplip#693070)
- removed emit-SIGNAL.patch, integrated upstream (hplip#673964)
- removed fab-root-crash.patch, integrated upstream (hplip#674450)
- removed hpaio-segfault.patch, integrated upstream (hplip#689755)
- removed newline.patch, integrated in add_missing_newline_for_error_log.patch
  (from Ubuntu, #418053)
- removed mga-udev-rules-use-attrs-not-sysfs-and-hp-mkuri-call-fix.patch,
  integrated upstream (Ubuntu#491346)
- adapt comment to display correct patch numbers
- updated file list

* Fri Oct 14 2011 doktor5000 <doktor5000> 3.11.10-1.mga2
+ Revision: 155222
- new version 3.11.10
  o fixes ADF scans from HP Officejet 6500 models (hplip#803584,819709,730515)
- use filter foomatic-rip instead of foomatic-rip-hplip (from Mandriva)
- updated hpcups-update-ppds.sh script (from Fedora)
- rediffed mga-remove-duplicate-entry-for-cp1700-in-drv-files.patch and renamed
  to hplip-3.11.10-mga-remove-duplicate-entry-for-cp1700-in-drv-files.patch
- removed unapplied and unneeded black-stripes-on-pcl5c-printouts.dpatch
- remove copy-deviceids.py, deviceIDs-drv.patch and deviceIDs-ppd.patch
  to restore upstream behavior
- removed obsolete CVE-2011-2722.patch, integrated upstream (hplip#809904)
- removed hpcups-crash.patch, integrated upstream (hplip#839632)
- removed sane-crash.patch, integrated upstream (hplip#838785)
- removed more-user-friendly-choice-names-for-installed-cartridges.dpatch,
  integrated upstream (hplip#788761)
- removed large-sizes-borderless-on-photosmart-pro-b-series.dpatch,
  integrated upstream (hplip#787580)
- removed mdns-py-network-printer-search-key-error.dpatch,
  integrated upstream (hplip#519430)
- remove hp-check_debian.dpatch, not needed anymore
- upload missing commented-out cups-1.5.0-compatibility.dpatch
- fixed Patch101 (pstotiff-is-rubbish.patch) missing a "\" (mga#2816)
- added Patch113 (hplip-hpcups-crash.patch, from Fedora)
- added Patch123 (hplip-sane-crash.patch, from Fedora)
- added Patch224 (syslog-fix-debug-messages-to-error, from Debian)
- added Patch225 (cups-1.5.0-compatibility, from Debian)
- added Patch226 (mdns-py-network-printer-search-key-errors, from Debian)

* Sun Sep 04 2011 doktor5000 <doktor5000> 3.11.7-1.mga2
+ Revision: 138413
- remove empty %%postun for sane-hpaio subpackage
- disable simple-scan-as-default.patch for now, as it changes default scanning application
- new version 3.11.7
  o fixes upgrade from Mandriva
- fix CVE-2011-2722
- added Requires on wget to avoid misleading errors about network connectivity
- added comments why systray .desktop file needs to be removed
- added Device ID for HP LaserJet Professional P1606dn
- Re-create installed hpcups PPDs unconditionally (RH bug #712241)
- resync with Fedora patches
- resync with Debian/Ubuntu Patches, reordered/renamed patches like debian does
- removed color-value-underflow.patch, already integrated in 3.11.5
- removed hplip-hpinfo-query-without-cups-queue.patch, dropped by debian
- removed hplip-systray-longer-timeout-for-system-tray-start.dpatch, fedora patch does the same
- removed hplip-3.9.8-dlopen-libhpmud.patch, obsoleted by newer try_libhpmud.so.0.dpatch
- removed hplip-udev-rules.patch, patched only one file, replaced by rediffed
  mga-udev-rules-use-attrs-not-sysfs-and-hp-mkuri-call-fix.patch
- removed black-stripes-on-pcl5c-printouts.dpatch, fedora patch does the same
- removed add_missing_newline_for_error_log.dpatch, fedora patch does the same
- removed ubuntu-hp-mkuri-notification-text.dpatch, specific to ubuntu
- rediffed hp-mkuri-take-into-account-already-installed-plugin-also-for-exit-value.dpatch

  + guillomovitch <guillomovitch>
    - rebuild for latest net-snmp

* Wed Jun 15 2011 cjw <cjw> 3.11.3a-7.mga2
+ Revision: 106663
- add provides libsane-hpaio to sane backend (for #792)

* Wed Jun 15 2011 dmorgan <dmorgan> 3.11.3a-6.mga2
+ Revision: 106333
- Do not package .la files

* Sat May 21 2011 cjw <cjw> 3.11.3a-5.mga1
+ Revision: 100081
- release fix for wrong colors on photosmart printers (fixes #1272)

* Sun May 15 2011 cjw <cjw> 3.11.3a-4.mga1
+ Revision: 98895
- patch1: fix color value underflow in hpcups filter (for bug #1272)

* Sat May 07 2011 cjw <cjw> 3.11.3a-3.mga1
+ Revision: 95747
- add provides: sane-backends-hpaio on the sane module package
- make hplip depend on python-imaging and sane-backends-hpaio, so the hp-scan tool actually works (see bug #792)

* Tue Apr 26 2011 wally <wally> 3.11.3a-2.mga1
+ Revision: 91745
- fix desktop file name (mga#954)

* Thu Apr 14 2011 cjw <cjw> 3.11.3a-1.mga1
+ Revision: 85144
- new version 3.11.3a
- remove old conflicts

  + dmorgan <dmorgan>
    - Fix typo

* Thu Feb 10 2011 spuhler <spuhler> 3.11.1-1.mga1
+ Revision: 49623
- removed buildroot definition from .spec
  removed the if mdkversion lines
- imported package hplip


* Mon Feb 07 2011 Matthew Dawkins <mattydaw@mandriva.org> 3.11.1-1mdv2011.0
+ Revision: 636746
- added back missing portion of the patch
- new version 3.11.1
- p119 hplip-dbglog-newline.patch rediffed
- p121 hplip-openPPD.patch upstreamed
- p122 hplip-hpijs-marker-supply.patch fix from fedora
- p123 hplip-addgroup.patch upstreamed
- p128 hplip-addprinter.patch rediffed
- p134 hplip-cups-web.patch upstreamed
- p205 85_rebuild_python_ui.dpatch rediffed
- p210 87_move_documentation.dpatch rediffed
- p213 hplip-3.10.9-alt-undefined-DBG.patch upstreamed

* Tue Jan 25 2011 Eugeni Dodonov <eugeni@mandriva.com> 3.10.9-3
+ Revision: 632564
- Make it installable again.

* Sat Jan 22 2011 Oden Eriksson <oeriksson@mandriva.com> 3.10.9-2
+ Revision: 632373
- fix deps (duh!)

* Thu Jan 20 2011 Oden Eriksson <oeriksson@mandriva.com> 3.10.9-1
+ Revision: 631828
- 3.10.9 (sync with hplip-3.10.9-14.fc15.src.rpm, P122 -> P135)
- P135: fixes CVE-2010-4267 (MDVSA-2011:013)
- P213: fix undefined DBG (alt linux)

* Mon Nov 01 2010 Götz Waschk <waschk@mandriva.org> 3.10.6-4mdv2011.0
+ Revision: 591553
- fix build with broken new rpm's exclude logic

* Mon Oct 11 2010 Funda Wang <fwang@mandriva.org> 3.10.6-3mdv2011.0
+ Revision: 584967
- rebuild

* Wed Sep 01 2010 Funda Wang <fwang@mandriva.org> 3.10.6-2mdv2011.0
+ Revision: 575043
- rebuild for new python-sip

* Tue Aug 17 2010 Matthew Dawkins <mattydaw@mandriva.org> 3.10.6-1mdv2011.0
+ Revision: 570727
- new version 3.10.6
- rediff hplip-pstotiff-is-rubbish.patch
- rediff hplip-udev-rules.patch
- fixed patch macro for patches 120 & 121

  + Nicolas Lécureuil <nlecureuil@mandriva.com>
    - Add patches from fedora :
    - Wait for max 30s to see if a system tray becomes available (RHBZ bug #569969).
    - Prevent segfault in cupsext when opening PPD file (RHBZ bug #572775).

* Tue May 11 2010 Nicolas Lécureuil <nlecureuil@mandriva.com> 3.10.2-5mdv2010.1
+ Revision: 544497
- Fix file list
- Fix buildrequires
- Install hpcups-update-ppds
- Clear old printer-state-reasons we used to manage (RH bug #510926).
- Fix patch119
- Added missing newline to string argument in dbglog() call (RH bug #585275).
- Add more infos about added printers
- Fixed black/blank lines in ljcolor hpcups output (RH bug #579461).
  Work-around is to send entire blank raster lines instead of skipping them.
- Added/corrected more IEEE 1284 Device IDs P117 ( from fedora )
- Regenerate hpcups PPDs on upgrade if necessary (rhbz #579355).
  CCBUG:58607

* Mon Apr 05 2010 Tiago Salem <salem@mandriva.com.br> 3.10.2-2mdv2010.1
+ Revision: 531857
- set cups backend permissions to 755, then cups can run them as lp user
- bump release

* Tue Mar 02 2010 Frederik Himpe <fhimpe@mandriva.org> 3.10.2-1mdv2010.1
+ Revision: 513618
- Update to new version 3.10.2
- Sync patches with Fedora:
  * The pstotiff filter is rubbish so replace it (launchpad #528394).
  * Corrected several IEEE 1284 Device IDs using foomatic data.
  * Stopped hpcups pointlessly trying to read spool files directly (RH bug #552572).
  * Removed SYSFS use in udev rules and actually made them work (RH bug #560754) (replaces sed hack in SPEC file)
  * Retry when connecting to device fails (RH bug #532112).
  * Fixed Device ID parsing code in hpijs's dj9xxvip.c (RH bug #510926).
- Updated hplip-rebuild_python_ui.patch from Ubuntu

* Thu Jan 14 2010 Frederic Crozat <fcrozat@mandriva.com> 3.9.12-3mdv2010.1
+ Revision: 491515
- Fix obsolete syntax in udev rules

* Sun Jan 10 2010 Oden Eriksson <oeriksson@mandriva.com> 3.9.12-2mdv2010.1
+ Revision: 488764
- rebuilt against libjpeg v8

  + Frederik Himpe <fhimpe@mandriva.org>
    - Remove unrecognized ./configure options
    - Add %%post script which triggers udev rules necessary for setting
      correct permissions on HP USB devices, so that scanning works without
      rebooting or replugging scanner (bug #56678)

* Tue Dec 22 2009 Frederic Crozat <fcrozat@mandriva.com> 3.9.12-1mdv2010.1
+ Revision: 481482
- Release 3.9.12
- Remove patches 101 and 115 (merged upstream)

* Sun Nov 22 2009 Frederik Himpe <fhimpe@mandriva.org> 3.9.10-1mdv2010.1
+ Revision: 469152
- Update to new version 3.9.10
- Remove patches integrated upstream
- Sync Debian and Fedora patches
- Require polkit-agent instead of just polkit

* Fri Oct 23 2009 Nicolas Lécureuil <nlecureuil@mandriva.com> 3.9.8-8mdv2010.0
+ Revision: 458992
- Install more ppd files

* Mon Oct 19 2009 Frederik Himpe <fhimpe@mandriva.org> 3.9.8-7mdv2010.0
+ Revision: 458264
- Start hp-setup with consolehelper again, because it still does not work
  as non-root user (bug #53800)
- Run automake in order to install correct polkit-1 file instead of
  obsolete policykit file. Fixes installation of plug-in as non-root
  (bug #53800 comment #4)
- Add patch to dlopen libhpmud.so.0 instad of libhpmud.so, in order not
  to depend on devel package
  (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=548379). Should fix
  network scanning

* Thu Oct 15 2009 Oden Eriksson <oeriksson@mandriva.com> 3.9.8-6mdv2010.0
+ Revision: 457613
- rebuilt against new net-snmp libs

* Wed Oct 14 2009 Oden Eriksson <oeriksson@mandriva.com> 3.9.8-5mdv2010.0
+ Revision: 457379
- fix deps

* Mon Oct 05 2009 Frederik Himpe <fhimpe@mandriva.org> 3.9.8-4mdv2010.0
+ Revision: 454177
- Fix BuildRequires
- Sync with Fedora and Debian patches:
  * Uses policykit-1 now
- Enable parallel port support

* Thu Sep 03 2009 Frederic Crozat <fcrozat@mandriva.com> 3.9.8-3mdv2010.0
+ Revision: 427740
- Switch to udev-acl (partially fixes Mdv bug #52951)

* Sat Aug 15 2009 Oden Eriksson <oeriksson@mandriva.com> 3.9.8-2mdv2010.0
+ Revision: 416526
- rebuilt against libjpeg v7

* Wed Aug 05 2009 Frederik Himpe <fhimpe@mandriva.org> 3.9.8-1mdv2010.0
+ Revision: 410391
- Update to new version 3.9.8
- Sync Fedora patches (most were integrated upstream)
- Don't set up consolehelper links anymore, now policykit is used

* Mon Aug 03 2009 Frederik Himpe <fhimpe@mandriva.org> 3.9.6b-1mdv2010.0
+ Revision: 408492
- Fix BuildRequires
- Update to new version 3.9.6b
- Sync patches with Fedora
- Remove Debian patch now included upstream
- Update string format patch
- Remove unresolved symbols patch: not needed anymore
- Remove consolehelper patch: not needed anymore because hplip now uses
  policykit
- Run autoconf instead of autoreconf and libtoolize because the latter
  two break the build
- Sync configure options with Fedora

* Tue Mar 17 2009 Frederik Himpe <fhimpe@mandriva.org> 3.9.2-2mdv2009.1
+ Revision: 356869
- Remove kdesu patch, instead use consolehelper to run hp-setup
  and hp-plugin
- Build pyc files, otherwise this can lead to hard to debug problems
  py files run as root are moved in a new version
- Package fax pdd (fixes #48657)
- Renumber patch11 to patch207 to reflect the fact that it
  comes from Debian
- Add patch to make hp-toolbox look for kdesu in the right directory
  (partially fixes bug #48870)

* Tue Mar 17 2009 Frederik Himpe <fhimpe@mandriva.org> 3.9.2-1mdv2009.1
+ Revision: 356312
- Update to new version 3.9.2 (important bug fixes for QT4 GUI and
  support for new printer models)
- Redif patch fixing unresolved symbols
- Remove utf-8 patch: fixed upstream
- Sync patches with Fedora (add build fix, remove quit patch integrated
  upstream)
- Add some Debian/Ubuntu patches (rss patch to improve black on some
  printers, correct PhotoSmart B9100 colour profile, make it possible
  to use hpinfo without cups queue, rebuild ui files to py, fix duplex
  binding on PJL, upstream fix preventing hang and crashes in hpdio
  settings dialog)
- Don't install udev rules and hal preprobe fdi file, they cause
  many problems (launchpad bugs #319660, #319661, #319662, #319665,
  RH bug #479648)
- Install Fedora's fdi file to set correct permissions on devices

* Tue Feb 03 2009 Frederik Himpe <fhimpe@mandriva.org> 2.8.12-4mdv2009.1
+ Revision: 337069
- sync with Fedora: :
  * Crash fix (RH bug #479808 comment 6)
  * fix quit menu in device manager (RH bug #479751)
  * Don't read config file in /root (RH bug 241776)
  * Don't use rpath
  * Split out gui in separate hplip-gui package
- run libtoolize to build with new libtool
- remove obsolete configure option
- suggest foomatic-db-hpijs (bug #47415)
- Remove old unapplied patches

* Thu Dec 25 2008 Funda Wang <fwang@mandriva.org> 2.8.12-3mdv2009.1
+ Revision: 318837
- rebuild for new python

* Wed Dec 24 2008 Funda Wang <fwang@mandriva.org> 2.8.12-2mdv2009.1
+ Revision: 318236
- drop python qt3 requirement
- update license

* Wed Dec 24 2008 Frederik Himpe <fhimpe@mandriva.org> 2.8.12-1mdv2009.1
+ Revision: 318159
- Update to new version 2.8.12
- Remove script for creation of Hal fdi file, fixed upstream
- Remove patches for problems fixed upstream: A3, Photosmart 1750~,
  no-root-config
- Resync relevant patches with Fedora
- Add patch fixing built with -Werror=format-security
- Add patch fixing unresolved symbols, and integrate libsane linking
  patch from Fedora in this patch
- Only build QT4 GUI, don't build QT3 GUI, remove patch to force QT4
  systray

  + Oden Eriksson <oeriksson@mandriva.com>
    - lowercase ImageMagick

* Sun Nov 02 2008 Olivier Blin <oblin@mandriva.com> 2.8.7-6mdv2009.1
+ Revision: 299304
- fix icon for sendfax tool in desktop entry

* Wed Sep 10 2008 Tiago Salem <salem@mandriva.com.br> 2.8.7-5mdv2009.0
+ Revision: 283509
- add patch to fix A3 paper size (#43337)
  see (https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/258881)
- bump release

* Thu Sep 04 2008 Tiago Salem <salem@mandriva.com.br> 2.8.7-4mdv2009.0
+ Revision: 280933
- remove non-working patch to disable autostart.
- remove the desktop file to prevent hp-systray autostart
- bump release

* Tue Sep 02 2008 Tiago Salem <salem@mandriva.com.br> 2.8.7-3mdv2009.0
+ Revision: 279258
- add patch to fix https://qa.mandriva.com/show_bug.cgi?id=35782
- bump release

* Mon Aug 18 2008 Tiago Salem <salem@mandriva.com.br> 2.8.7-2mdv2009.0
+ Revision: 273274
- disabling system tray applet auto start
  hplip needs to be installed even if you dont have a hp printer.
- bump release

* Thu Jul 31 2008 Frederik Himpe <fhimpe@mandriva.org> 2.8.7-1mdv2009.0
+ Revision: 257938
- update to new version 2.8.7

* Wed Jul 30 2008 Frederik Himpe <fhimpe@mandriva.org> 2.8.6b-1mdv2009.0
+ Revision: 256258
- update to new version 2.8.6b

* Mon Jun 23 2008 Tiago Salem <salem@mandriva.com.br> 2.8.6-1mdv2009.0
+ Revision: 228452
- Version 2.8.6
- change some patches to apply on the new version
- prevent errors related to cups service when removing package.

  + Pixel <pixel@mandriva.com>
    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Sat May 17 2008 Frederik Himpe <fhimpe@mandriva.org> 2.8.5-2mdv2009.0
+ Revision: 208467
- Make hplip depend on hplip-hpijs-ppds (fixes bug #39091: PPD file
  for OfficeJet 9100 missing)

* Sun May 11 2008 Frederik Himpe <fhimpe@mandriva.org> 2.8.5-1mdv2009.0
+ Revision: 205808
- Remove all obsolete patches and references to them in the SPEC file
- Remove hack in SPEC file which fixes Gentoo bug #161926, it was fixed
  upstream already in 2.7.7
- New upstream version 2.8.5
- Remove OpenSUSE patch to prevent loading of systray applet: it is integrated
  upstream
- Remove unload-traceback.patch: the file it patches no longer exists
- Create 70-hpmud.fdi hal file so that hal/consolekit will set the correct
  permissions when a HP scanner is plugged in (script from OpenSUSE/Ubuntu)
- Use QT4 for system tray applet GUI, because the QT3 version does
  not embed correctly in GNOME's notification area and Mandriva
  2009.0 uses QT4/KDE4 by default anyway
- Add BuildRequires: libdbus-devel
- Update to 2.8.4
- Comment some obsolete patches
- Add patch from OpenSUSE preventing system tray applet from starting
  if no HP printer is present

* Wed Feb 13 2008 Marcelo Ricardo Leitner <mrl@mandriva.com> 2.8.2-2mdv2008.1
+ Revision: 167077
- Move HP-Fax*ppd from hplip-hpijs-ppds to hplip main package, as we are using cupsddk for ppds by now.
- Enhance .desktop categories for hp-sendfax tool.

  + Thierry Vignaud <tv@mandriva.org>
    - fix spacing at top of description

* Mon Feb 11 2008 Marcelo Ricardo Leitner <mrl@mandriva.com> 2.8.2-1mdv2008.1
+ Revision: 165458
- Removed patch marker-supply: applied upstream.
- Adds requires to cupsddk-drivers >= 1.2.3-2mdv, for dynamic ppd generation.
- New upstream: 2.8.2

* Mon Jan 28 2008 Marcelo Ricardo Leitner <mrl@mandriva.com> 2.7.12-2mdv2008.1
+ Revision: 159259
- Do not hide cups service restart output.

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Thu Dec 20 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 2.7.12-1mdv2008.1
+ Revision: 135754
- New upstream: 2.7.12

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request

* Mon Oct 22 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 2.7.10-1mdv2008.1
+ Revision: 101112
- New upstream: 2.7.10

* Wed Oct 10 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 2.7.9-1mdv2008.1
+ Revision: 96925
- New upstream: 2.7.9

  + Thierry Vignaud <tv@mandriva.org>
    - do not harcode icon extension

* Wed Sep 19 2007 Nicolas Lécureuil <nlecureuil@mandriva.com> 2.7.7-8mdv2008.0
+ Revision: 90111
- Fix menu categories (Bug #33079)

* Wed Sep 12 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 2.7.7-7mdv2008.0
+ Revision: 84647
- Cleanup old initscript when upgrading from an old package. Closes: #32398

  + Thierry Vignaud <tv@mandriva.org>
    - kill desktop-file-validate's 'warning: key "Encoding" in group "Desktop Entry" is deprecated'

* Wed Aug 22 2007 Oden Eriksson <oeriksson@mandriva.com> 2.7.7-6mdv2008.0
+ Revision: 68945
- ehh, i meant System/Printing :)
- fix deps sip/python-sip
- use the new System/Printers RPM GROUP

* Wed Aug 08 2007 Oden Eriksson <oeriksson@mandriva.com> 2.7.7-5mdv2008.0
+ Revision: 60202
- rebuilt against new net-snmp libs

* Wed Aug 08 2007 Funda Wang <fwang@mandriva.org> 2.7.7-4mdv2008.0
+ Revision: 60116
- BR desktop-file-utils
- Add desktop file patch from fedora
- use hplip's own desktop file

* Wed Aug 08 2007 Funda Wang <fwang@mandriva.org> 2.7.7-3mdv2008.0
+ Revision: 60079
- No more hardware category (bug#32383)
- fix typo
- add more appropriate desktop entry category

* Sat Aug 04 2007 Funda Wang <fwang@mandriva.org> 2.7.7-1mdv2008.0
+ Revision: 58934
- New version 2.7.7

* Wed Jul 25 2007 Funda Wang <fwang@mandriva.org> 2.7.6-1mdv2008.0
+ Revision: 55449
- Add gentoo fix for gentoobug#161926, to be fixed in upstream 2.7.7
- fix desktop entry categories
- no more service
- fix file list
- kill old menu
- Merge fedora patches
- Rediff patch11
- add official patch
- New version

* Wed Jun 20 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 1.7.4a-2mdv2008.0
+ Revision: 41898
- Use py_requires macro.

* Sun May 13 2007 Funda Wang <fwang@mandriva.org> 1mdv2008.0-current
+ Revision: 26583
- remove python sitepackages la files
- New upstream version


* Tue Jan 30 2007 Olivier Blin <oblin@mandriva.com> 1.6.12-2mdv2007.0
+ Revision: 115330
- move doc in subpackage

* Tue Jan 23 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 1.6.12-1mdv2007.1
+ Revision: 112622
- New upstream: 1.6.12
- Rediff hplip-1.6.12-HP-PhotoSmart_7150tilde.patch and
  hplip-1.6.12-14_charsign_fixes.patch due to data file format
  change.

* Thu Dec 14 2006 Nicolas Lécureuil <neoclust@mandriva.org> 1.6.10-1mdv2007.1
+ Revision: 96768
- Fix python macro
- Add sources
- New Version 1.6.10
- Import hplip

* Tue Sep 19 2006 Till Kamppeter <till@mandriva.com> 1.6.9-1mdv2007.0
- Updated to version 1.6.9 final (Added support for HP PhotoSmart A310,
  C5100, C6100, C7100, D5100, D5060, and B8300 series printers, many
  bug fixes, especially on faxing and on documentation).

* Thu Sep 14 2006 Till Kamppeter <till@mandriva.com> 1.6.9-0.1mdv2007.0
- Updated to version 1.6.9-rc3.

* Sat Aug 05 2006 Till Kamppeter <till@mandriva.com> 1.6.7-2mdv2007.0
- /usr/bin/hpijs was included twice, fixed (bug 24111).

* Fri Aug 04 2006 Till Kamppeter <till@mandriva.com> 1.6.7-1mdv2007.0
- Updated to version 1.6.7 (Improved auto-assosiation of PPD files to detected
  printers and faxes by the web interface of CUPS 1.2; static IP ports for the
  daemons; tons of bug fixes; new printers models: HP Photosmart D6100 and 
  D7100).

* Sat Jul 01 2006 Till Kamppeter <till@mandriva.com> 1.6.6-4mdv2007.0
- Uncompressed patches.

* Thu Jun 29 2006 Till Kamppeter <till@mandriva.com> 1.6.6-3mdk
- Updated to version 1.6.6a (Bug fixes, should make fax really usable
  again).

* Sat Jun 24 2006 Till Kamppeter <till@mandriva.com> 1.6.6-2mdk
- Updated to version 1.6.6a.2 (Bug fixes, mainly for fax).

* Sat Jun 17 2006 Till Kamppeter <till@mandriva.com> 1.6.6-1mdk
- Updated to version 1.6.6 (Adaption of the CUPS backends to CUPS 1.2.x,
  improvements on faxing, several scanning bug fixes, several other bug
  fixes, new printer models: HP Deskjet D4100, D2300, D1360 series,
  Photosmart A430, A510, A710, A610, C4100, C3100, D7300 series).
- Removed patch 18 (merged upstream).

* Thu May 25 2006 Till Kamppeter <till@mandriva.com> 0.9.11-4mdk
- Added menu entry for hp-sendfax (with current HPLIP hp-sendfax does
  not pop up automatically any more when sending faxes).

* Mon May 15 2006 Till Kamppeter <till@mandriva.com> 0.9.11-3mdk
- Fixed bug which made Duplex not working any more in HPLIP 0.9.9
  (patch 18, contains this fix and also the fix of May 11).

* Fri May 12 2006 Till Kamppeter <till@mandriva.com> 0.9.11-2mdk
- Fixed problem of HP PSC 950 series printers not being correctly
  recognized.

* Thu May 11 2006 Till Kamppeter <till@mandriva.com> 0.9.11-1mdk
- Updated to version 0.9.11 (Changes on "hp-sendfax", revamped
  mail notification, many bug fixes, new models: LaserJet 5200,
  LaserJet 5200L, Color LaserJet 2605, Officejet 6300 series,
  Officejet 4300 series).
- Replaced "BuildRequires: sip-devel PyQt-devel" by
  "BuildRequires: sip PyQt" as the sip and PyQt packages were
  restructured.

* Wed Apr 05 2006 Till Kamppeter <till@mandriva.com> 0.9.10-2mdk
- Moved CUPS backend directory from /usr/lib64/cups/backend to
  /usr/lib/cups/backend on 64-bit systems.

* Wed Mar 29 2006 Till Kamppeter <till@mandriva.com> 0.9.10-1mdk
- Updated to version 0.9.10 (Bugfix release).
- Let CUPS be restarted when sub-packages with PPD files are added or
  removed.

* Mon Mar 13 2006 Till Kamppeter <till@mandriva.com> 0.9.9-1mdk
- Updated to version 0.9.9 (Device communication via libusb, USB 1284.4
  support for many laser printers, dropped use of USB device file mames
  in CUPS/SANE URIs, updated PPD files for CUPS 1.2 compatibility, moved 
  temp fax .g3 files to ~/hpfax/hpfax-<jobid>.g3, page counting for fax,
  fullbleed fix, support for HP DeskJet F300 Series All-in-one, bug fixes).

* Sat Feb 25 2006 Till Kamppeter <till@mandriva.com> 0.9.8-4mdk
- Applied official bugfix patch 0.9.8-4 from HP (In addition to the
  fixes of the previous patch an array index underflow in the driver
  for the FastRaster device class (LaserJet 1010/1012) is fixed).
- Removed patch 4 (probably fixed upstream).

* Tue Feb 07 2006 Till Kamppeter <till@mandriva.com> 0.9.8-3mdk
- Applied official bugfix patch 0.9.8-3 from HP (Fixed an extraneous
  "r-value (1) error" message, which can occur while launching HPLIP
  utilities with inkjets, reported by Henrique de Moraes Holschuh from
  Debian).

* Thu Feb 02 2006 Till Kamppeter <till@mandriva.com> 0.9.8-2mdk
- Apply 0700 permissions to the CUPS backends, so that CUPS 1.2 runs them
  as root.
- Make the CUPS backends being installed in %%{_libdir} so that they go
  into /usr/lib64/cups/backend on 64-bit systems.
- Introduced %%mkrel.

* Wed Feb 01 2006 Till Kamppeter <till@mandriva.com> 0.9.8-1mdk
- Updated to version 0.9.8 (PC send fax support, HP Setup utility, 
  enhanced the status history table in hp-info, added support for
  HP Color LaserJet 2605, LaserJet 3050, 3060, 3062, 3390, 3392,
  Deskjet 6980 series, 6940 series, lots of bug fixes).
- Removed patch 16 (merged upstream).
- Added "Requires: python-reportlab" as this package is needed to
  generate fax cover pages.

* Wed Jan 04 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.7-5mdk
- rebuilt against new net-snmp with new major (10)

* Wed Dec 21 2005 Oden Eriksson <oeriksson@mandriva.com> 0.9.7-4mdk
- rebuilt against net-snmp that has new major (9)

* Thu Dec 08 2005 Till Kamppeter <till@mandriva.com> 0.9.7-3mdk
- Rebuilt because 0.9.7-2mdk was not cleanly uploaded.

* Wed Dec 07 2005 Till Kamppeter <till@mandriva.com> 0.9.7-2mdk
- Applied official bugfix patch 0.9.7-2 from HP (Fixed Photosmart 2570 
  series blue screen scanning error, device status in hpiod, SuperB margin 
  issue with OfficeJet K550, K850, and DeskJet 9800).

* Tue Nov 22 2005 Till Kamppeter <till@mandriva.com> 0.9.7-1mdk
- Updated to version 0.9.7 (Reverted buggy change on duplex printing in 
  0.9.6, better parallel device support, faster startup of the toolbox,
  hp-makeuri works with host names now, support for motorized photo paper
  tray, new models: HP Color LaserJet 3000, 3600, 3800).

* Mon Nov 14 2005 Oden Eriksson <oeriksson@mandriva.com> 0.9.6-2mdk
- rebuilt against openssl-0.9.8a

* Sun Oct 16 2005 Till Kamppeter <till@mandriva.com> 0.9.6-1mdk
- Updated to version 0.9.6 (Design changes and bug fixes in the hp-toolbox;
  prepared HPLIP to run as a non-root user; bug fixes in HPIJS, especially
  full-bleed and duplex; new models supported: HP Color LaserJet 4730 MFP,
  Deskjet 460, Officejet Pro K550, and K850).
- Removed patches 5, 8, 9, 10, 12, 13, and 14 (merged upstream).

* Sat Sep 17 2005 Till Kamppeter <till@mandriva.com> 0.9.5-1mdk
- Updated to version 0.9.5 (Parallel port device support, tons of
  bug fixes, fixed 4-edge full-bleed upstream, added support for
  HP PhotoSmart 420, 470, 2570, 3100, 3200, 3300, 7800, 8000, DeskJet
  5440, 5940, OfficeJet 5600, PSC 1400, Color LaserJet 4700).
- Included official patch from HP (patch 8).
- Applied Debian/Ubuntu patches (patches 9-15).
- Rediffed patch 5 to not conflict with the Debian/Ubuntu patches.
- Removed patches 6 and 7 (merged upstream).

* Sat Sep 10 2005 Till Kamppeter <till@mandriva.com> 0.9.4-6mdk
- Fixed full-bleed on Letter, A4 or bigger paper (patch 7).
- Let the HPLIP toolbox start the browser to access the web interface
  of a LAN printer in the background, so that one can still work in
  the toolbox while the browser is open (patch 6).

* Fri Sep 09 2005 Till Kamppeter <till@mandriva.com> 0.9.4-5mdk
- Removed "su" from statup script, it can break things in certain cases
  (patch 5).

* Thu Sep 08 2005 Gwenole Beauchesne <gbeauchesne@mandriva.com> 0.9.4-4mdk
- 64-bit fixes

* Wed Aug 31 2005 Till Kamppeter <till@mandriva.com> 0.9.4-3mdk
- Updated package summary and description.

* Wed Aug 31 2005 Till Kamppeter <till@mandriva.com> 0.9.4-2mdk
- Some HP PhotoSmart 7150 identify themselves as "hp photosmart 7150~",
  applied patch 3 as workaround (bug 16514).

* Wed Jul 27 2005 Till Kamppeter <till@mandrakesoft.com> 0.9.4-1mdk
- Updated to version 0.9.3 (Added support for HP Color LaserJet 2800, HP 
  Photosmart 8200, HP Photosmart 330, HP Photosmart 380, Deskjet 1280, 
  Deskjet 3040, Deskjet 3920, tons of bug fixes: 4-edge full-bleed 
  printing on postcard-sized PhotoSmarts, 64-bit issues, unidirectional
  printing, info querying, added some older HP devices which work with
  HPIJS/HPLIP to the models.xml file, and more).

* Wed May 18 2005 Till Kamppeter <till@mandrakesoft.com> 0.9.3-1mdk
- Updated to version 0.9.3 (4-edge full-bleed on all paper sizes should 
  now work on all appropriate models!! Fixes for HP LaserJet 1010, 1012,
  1015, 1022, 4050, DeskJet 1220C, OfficeJet K80xi, V40, 7200, 7300, 7400,
  margin correction on many recent DeskJets, fixed errors on "hp-probe -s*"
  and on accessing photo cards when no card is inserted, many other fixes).

* Wed Apr 20 2005 Till Kamppeter <till@mandrakesoft.com> 0.9.2-1mdk
- Updated to version 0.9.2 (Again tons of bug fixes, especially
  toner level and LCD contents display for network laser, simplified
  architecture of the Toolbox, new "FastDraft Grayscale" printout
  quality setting).
- Removed patch 2 (merged upstream).
- Commenting out "setSizePolicy" not needed any more, fixed upstream.

* Tue Apr 12 2005 Till Kamppeter <till@mandrakesoft.com> 0.9.1-2mdk
- Let /usr/bin/hp-* links be generated so that HPLIP tools can be easily
  accessed.

* Tue Apr 05 2005 Till Kamppeter <till@mandrakesoft.com> 0.9.1-1mdk
- Updated to version 0.9.1 (Again tons of bug fixes, especially a possible
  fix for bugs 13675 and 14179, ink level and status display fixes for
  several models, lockup fix for HP DeskJet 450, fixed missing support
  for OfficeJet 5110, support for new printer models: HP LaserJet 4240,
  HP LaserJet 9040, hp color LaserJet 4610, HP LaserJet 1022, HP Business
  Inkjet 1000).
- Fixed battery level check for HP DeskJet 450 (patch 2, toolbox would
  make hpssd crashing when HP DeskJet 450 is connected and this patch
  not applied.

* Fri Apr 01 2005 Till Kamppeter <till@mandrakesoft.com> 0.9-2mdk
- Added support for HP PSC 750xi.

* Thu Mar 31 2005 Till Kamppeter <till@mandrakesoft.com> 0.9-1mdk
- Updated to version 0.9 (Tons of bug fixes, should fix bugs 14179, 13675, 
  and 13671; Support for HP LaserJet 1010, 1012, HP Color LaserJet 35xx;
  status and toner level reporting for laser printers).
- Commented out all "setSizePolicy" calls in the .py files, this function 
  is incompatible with current PyQT/SIP (bug 13315).
- Removed patch 0 (merged upstream).

* Mon Mar 07 2005 Till Kamppeter <till@mandrakesoft.com> 0.8.8-5mdk
- Rebuilt for SIP 4.2.1 and PyQt 3.14.

* Mon Feb 14 2005 Till Kamppeter <till@mandrakesoft.com> 0.8.8-4mdk
- Added "Requires: net-snmp-mibs", otherwise communicating with ethernet-
  connected printers does not work.

* Thu Feb 10 2005 Till Kamppeter <till@mandrakesoft.com> 0.8.8-3mdk
- Corrected shutdown priority in startup script to be after CUPS.

* Thu Feb 10 2005 Till Kamppeter <till@mandrakesoft.com> 0.8.8-2mdk
- Let SNMP stuff really getting built (patch0).
- Correct priority in startup script so that the daemons get started
  before CUPS.

* Wed Feb 09 2005 Till Kamppeter <till@mandrakesoft.com> 0.8.8-1mdk
- Updated to version 0.8.8.

* Mon Feb 07 2005 Till Kamppeter <till@mandrakesoft.com> 0.8.7-4mdk
- Put XML file with list of supported models into extra package, so that
  printerdrake can install only this and then determine whether to install
  HPLIP.

* Fri Feb 04 2005 Till Kamppeter <till@mandrakesoft.com> 0.8.7-3mdk
- Added "Provides: hpijs" to hplip-hpijs package.
- Versioned conflict for hplip-hpijs package:
  "Conflicts: printer-filters < 10.2".

* Tue Feb 01 2005 Till Kamppeter <till@mandrakesoft.com> 0.8.7-2mdk
- Rebuilt with dependency on sip 4.1.1 or newer. With older sip PyQt
  GUIs segfault.

* Fri Jan 21 2005 Till Kamppeter <till@mandrakesoft.com> 0.8.7-1mdk
- Initial Mandrakelinux release.