]>
Commit | Line | Data |
---|---|---|
22285c94 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
22285c94 SS |
4 | ############################################################################### |
5 | ||
802ea3af MT |
6 | name = hplip |
7 | version = 3.10.9 | |
9b599516 | 8 | release = 2 |
22285c94 | 9 | |
802ea3af MT |
10 | groups = Applications/Printing |
11 | url = http://hplipopensource.com/hplip-web/index.html | |
12 | license = GPLv2* | |
13 | summary = HP Printer/Scanner Library (full version). | |
22285c94 | 14 | |
802ea3af | 15 | description |
9b599516 SS |
16 | HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed |
17 | olution for printing, scanning, and faxing with HP inkjet and laser based | |
18 | printers in Linux. The HPLIP project provides printing support for 1,924 | |
19 | printer models. | |
22285c94 | 20 | This is the full version including printer/scanner support. |
802ea3af MT |
21 | end |
22 | ||
9b599516 | 23 | source_dl = http://sourceforge.net/projects/%{name}/files/%{name}/%{version}/ |
802ea3af MT |
24 | |
25 | build | |
26 | requires | |
27 | autoconf | |
28 | automake | |
29 | cups-devel | |
30 | dbus-devel | |
31 | gcc-c++ | |
32 | libjpeg-devel | |
33 | libtool | |
34 | libusb-compat-devel | |
35 | net-snmp-devel | |
9b599516 | 36 | openssl-devel |
802ea3af MT |
37 | pkg-config |
38 | python-devel | |
39 | sane-devel | |
40 | end | |
41 | ||
42 | configure_options += \ | |
22285c94 | 43 | --sysconfdir=/etc |
9b599516 SS |
44 | |
45 | install_cmds | |
46 | # Remove unwanted files. | |
47 | rm -rvf %{BUILDROOT}%{sysconfdir}/sane.d/ | |
48 | end | |
802ea3af MT |
49 | end |
50 | ||
51 | packages | |
52 | package %{name} | |
9b599516 SS |
53 | prerequires += sane |
54 | ||
55 | script postin | |
56 | # Add hplip scanner support to sane. | |
57 | echo "hpaio" >> %{sysconfdir}/sane.d/dll.conf | |
58 | end | |
59 | ||
60 | script postun | |
61 | # Remove hplip scanner support from sane. | |
62 | sed -i "/^hpaio$/d" %{sysconfdir}/sane.d/dll.conf | |
63 | end | |
802ea3af | 64 | end |
1f9bc2f0 MT |
65 | |
66 | package %{name}-debuginfo | |
67 | template DEBUGINFO | |
68 | end | |
802ea3af | 69 | end |