]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - hplip/hplip.nm
kernel: Update to 3.17
[people/ms/ipfire-3.x.git] / hplip / hplip.nm
CommitLineData
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
6name = hplip
7version = 3.10.9
73cd5527 8release = 3
22285c94 9
802ea3af
MT
10groups = Applications/Printing
11url = http://hplipopensource.com/hplip-web/index.html
12license = GPLv2*
13summary = HP Printer/Scanner Library (full version).
22285c94 14
802ea3af 15description
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
21end
22
9b599516 23source_dl = http://sourceforge.net/projects/%{name}/files/%{name}/%{version}/
802ea3af
MT
24
25build
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 += \
73cd5527
SS
43 --sysconfdir=%{sysconfdir} \
44 --disable-gui-build \
45 --disable-qt4
9b599516
SS
46
47 install_cmds
48 # Remove unwanted files.
73cd5527 49 rm -rvf %{BUILDROOT}%{bindir}/hp-systray
9b599516 50 rm -rvf %{BUILDROOT}%{sysconfdir}/sane.d/
73cd5527
SS
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/
9b599516 61 end
802ea3af
MT
62end
63
64packages
65 package %{name}
73cd5527
SS
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
9b599516
SS
96 prerequires += sane
97
73cd5527
SS
98 files
99 %{libdir}/sane/*
100 end
101
9b599516
SS
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
802ea3af 111 end
1f9bc2f0
MT
112
113 package %{name}-debuginfo
114 template DEBUGINFO
115 end
802ea3af 116end