]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
hplip: Add support for ssl, add scriptlet to use it with sane.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 9 Sep 2012 12:07:35 +0000 (14:07 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 9 Sep 2012 12:09:29 +0000 (14:09 +0200)
hplip/hplip.nm

index cd3a8a2f65ed164a6ea21d6ec4c4157f6d84294c..560c64a663bedb43b02ab4b7c9650d089c11ccdf 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = hplip
 version    = 3.10.9
-release    = 1
+release    = 2
 
 groups     = Applications/Printing
 url        = http://hplipopensource.com/hplip-web/index.html
@@ -13,14 +13,14 @@ license    = GPLv2*
 summary    = HP Printer/Scanner Library (full version).
 
 description
-       HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed \
-       olution for printing, scanning, and faxing with HP inkjet and laser based \
-       printers in Linux. The HPLIP project provides printing support for 1,924 \
-       printer models. \
+       HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed
+       olution for printing, scanning, and faxing with HP inkjet and laser based
+       printers in Linux. The HPLIP project provides printing support for 1,924
+       printer models.
        This is the full version including printer/scanner support.
 end
 
-source_dl  =
+source_dl  = http://sourceforge.net/projects/%{name}/files/%{name}/%{version}/
 
 build
        requires
@@ -33,6 +33,7 @@ build
                libtool
                libusb-compat-devel
                net-snmp-devel
+               openssl-devel
                pkg-config
                python-devel
                sane-devel
@@ -40,10 +41,26 @@ build
 
        configure_options += \
                --sysconfdir=/etc
+
+       install_cmds
+               # Remove unwanted files.
+               rm -rvf %{BUILDROOT}%{sysconfdir}/sane.d/
+       end
 end
 
 packages
        package %{name}
+               prerequires += sane
+
+               script postin
+                       # Add hplip scanner support to sane.
+                       echo "hpaio" >> %{sysconfdir}/sane.d/dll.conf
+               end
+
+               script postun
+                       # Remove hplip scanner support from sane.
+                       sed -i "/^hpaio$/d" %{sysconfdir}/sane.d/dll.conf
+               end
        end
 
        package %{name}-debuginfo