]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - hplip/hplip.nm
kernel: Update to 3.17
[people/ms/ipfire-3.x.git] / hplip / hplip.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = hplip
7 version = 3.10.9
8 release = 3
9
10 groups = Applications/Printing
11 url = http://hplipopensource.com/hplip-web/index.html
12 license = GPLv2*
13 summary = HP Printer/Scanner Library (full version).
14
15 description
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.
20 This is the full version including printer/scanner support.
21 end
22
23 source_dl = http://sourceforge.net/projects/%{name}/files/%{name}/%{version}/
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
36 openssl-devel
37 pkg-config
38 python-devel
39 sane-devel
40 end
41
42 configure_options += \
43 --sysconfdir=%{sysconfdir} \
44 --disable-gui-build \
45 --disable-qt4
46
47 install_cmds
48 # Remove unwanted files.
49 rm -rvf %{BUILDROOT}%{bindir}/hp-systray
50 rm -rvf %{BUILDROOT}%{sysconfdir}/sane.d/
51 rm -rvf %{BUILDROOT}%{datadir}/installer
52
53 # Remove files for HAL.
54 rm -rvf %{BUILDROOT}%{datadir}/hal
55
56 # Remove X11 relevated files.
57 rm -rvf %{BUILDROOT}%{datadir}/applications/
58
59 # Remove xdg files.
60 rm -rvf %{BUILDROOT}%{sysconfdir}/xdg/
61 end
62 end
63
64 packages
65 package %{name}
66 requires
67 %{name}-common=%{thisver}
68 cups
69 end
70 end
71
72 package %{name}-common
73 summary = Files needed by the HPLIP printer and scanner drivers.
74 description = %{summary}
75
76 files
77 %{libdir}/udev/
78 %{libdir}/python*/
79 %{sysconfdir}/udev/
80 %{datadir}/hplip
81 end
82 end
83
84 package %{name}-libs
85 template LIBS
86 end
87
88 package %{name}-devel
89 template DEVEL
90 end
91
92 package libsane-hpaio
93 summary = SANE driver for scanners in HP's multi-function devices.
94 description = %{summary}
95
96 prerequires += sane
97
98 files
99 %{libdir}/sane/*
100 end
101
102 script postin
103 # Add hplip scanner support to sane.
104 echo "hpaio" >> %{sysconfdir}/sane.d/dll.conf
105 end
106
107 script postun
108 # Remove hplip scanner support from sane.
109 sed -i "/^hpaio$/d" %{sysconfdir}/sane.d/dll.conf
110 end
111 end
112
113 package %{name}-debuginfo
114 template DEBUGINFO
115 end
116 end