merge with master
[platform/upstream/hplip.git] / hplip.list.in
1 # @configure_input@
2 #
3 #  ESP Package Manager (EPM) "list" file.
4 #
5 #  (c) 2008-2009 Copyright Hewlett-Packard Development Company, LP
6 #
7 #  Use this configuration for new distributions that support CUPSDDK 1.2.3 or higher.
8 #    ./configure --prefix=/usr
9 #
10 #  Use this configuration for old distributions that do *not* support CUPSDDK 1.2.3 or higher.
11 #    ./configure --prefix=/usr --disable-foomatic-drv-install --enable-foomatic-ppd-install --enable-foomatic-rip-hplip-install
12 #
13 #  By default the hplipfull package is built (print, scan, fax, hp-toolbox, hp-setup).
14 #
15 #  Use this configuration to make the hpliplite package (print, scan).
16 #    ./configure --prefix=/usr --enable-lite-build
17 #
18 #  Use this command to build the hplip package.
19 #    make rpm | deb
20 #
21 #  5/5/09 DES, Added configure time "#" lines since EPM does not handle nested conditionals.
22 #
23
24 %product HPLIP
25 %copyright (c) 2004-2009 Copyright Hewlett-Packard Development Company, LP
26 %vendor Hewlett-Packard
27 %if PLUGIN
28 %license prnt/plugins/license.txt
29 %else
30 %license COPYING
31 %endif
32 %readme doc/index.html
33 %version @VERSION@
34 %description The Hewlett-Packard Linux Imaging and Printing (HPLIP) system
35 %description provides a unified single and multi-function connectivity
36 %description driver solution. HPLIPLITE provides support for print and scan only.
37 %description HPLIPFULL provides support for print, scan, fax and toolbox.
38
39 %format rpm deb portable
40
41 $prefix=@prefix@
42 $exec_prefix=@exec_prefix@
43 $bindir=@bindir@
44 $datarootdir=@datarootdir@
45 $datadir=@datadir@
46 $libdir=@libdir@
47 $srcdir=@srcdir@
48 $pyexecdir=@pyexecdir@
49 $icondir=@icondir@
50 $systraydir=@systraydir@
51 $docdir=@hpdocdir@
52 $version=@VERSION@
53 $internal_tag=@PACKAGE_BUGREPORT@
54
55 $home=@abs_datadir@/hplip
56 $ppd=@abs_ppddir@
57 $cupsbackend=@cupsbackenddir@
58 $cupsfilter=@cupsfilterdir@
59 $drv=@abs_drvdir@
60 $hpaio-version=libsane-hpaio.so.1.0.0
61 $foomatic-rip-install=@epm_foomatic_rip_hplip_install@
62 $foomatic-ppd-install=@epm_foomatic_ppd_install@
63 $cups-ppd-install=@epm_cups_ppd_install@
64 $hpijs-install=@epm_hpijs_install@
65 $hpcups-install=@epm_hpcups_install@
66 $foomatic-drv-install=@epm_foomatic_drv_install@
67 $cups-drv-install=@epm_cups_drv_install@
68 $machine=@platform@
69
70 $print_only_exclude=@epm_print_only_exclude@
71
72 %system linux
73 %postinstall ldconfig
74 %system all
75
76 %if hpijs-install
77 @epm_full@f 0755 root root $bindir/hpijs .libs/hpijs
78 @epm_lite@f 0755 root root $bindir/hpijs .libs/hpijs
79 @epm_hpijs_only@f 0755 root root $bindir/hpijs hpijs
80 %endif
81 %if hpcups-install
82 f 0755 root root $cupsfilter/hpcups hpcups
83 f 0755 root root $cupsfilter/hpps hpps
84 %endif
85 f 0644 root root /etc/hp/hplip.conf hplip.conf
86 f 0644 root root /etc/cups/pstotiff.convs fax/filters/pstotiff.convs
87 f 0644 root root /etc/cups/pstotiff.types fax/filters/pstotiff.types
88 f 0755 root root $cupsfilter/pstotiff fax/filters/pstotiff
89 f 0755 root root $cupsfilter/hpcupsfax .libs/hpcupsfax
90 %if foomatic-drv-install
91 f 0644 root root $drv/hpijs.drv prnt/drv/hpijs.drv
92 %endif
93 %if foomatic-rip-install
94 f 0755 root root $cupsfilter/foomatic-rip-hplip prnt/hpijs/foomatic-rip-hplip
95 %endif
96 %if foomatic-ppd-install
97 f 0644 root root $ppd/HP ppd/hpijs/*.ppd.gz
98 %endif
99 %if cups-drv-install
100 f 0644 root root $drv/hpcups.drv prnt/drv/hpcups.drv
101 %endif
102 %if cups-ppd-install
103 f 0644 root root $ppd/HP ppd/hpcups/*.ppd.gz
104 %endif
105 f 0644 root root $ppd/HP prnt/ps/*.ppd.gz
106
107 %system darwin
108 @epm_print_only_exclude@f 0755 root root $libdir/libhpmud.0.0.6.dylib .libs/libhpmud.0.0.6.dylib
109 @epm_print_only_exclude@l 0755 root root $libdir/libhpmud.dylib libhpmud.0.0.6.dylib
110 @epm_print_only_exclude@f 0755 root root $libdir/libhpip.0.0.1.dylib .libs/libhpip.0.0.1.dylib
111 @epm_print_only_exclude@l 0755 root root $libdir/libhpip.dylib libhpip.0.0.1.dylib
112 %system !darwin
113 @epm_print_only_exclude@f 0755 root root $libdir/libhpmud.so.0.0.6 .libs/libhpmud.so.0.0.6
114 @epm_print_only_exclude@l 0755 root root $libdir/libhpmud.so libhpmud.so.0.0.6
115 @epm_print_only_exclude@f 0755 root root $libdir/libhpip.so.0.0.1 .libs/libhpip.so.0.0.1
116 @epm_print_only_exclude@l 0755 root root $libdir/libhpip.so libhpip.so.0.0.1
117 # Ugly fix for inconsistent libcrypto soname
118 #l 0755 root root $libdir/libcrypto.so.6 libcrypto.so.0.9.8
119 %system all
120
121 # scan
122 %if !print_only_exclude
123 @epm_scan@%system darwin
124 @epm_scan@f 0755 root root $libdir/sane/${hpaio-version}.dylib .libs/${hpaio-version}.dylib
125 @epm_scan@l 0755 root root $libdir/sane/libsane-hpaio.dylib ${hpaio-version}.dylib
126 @epm_scan@%system !darwin
127 @epm_scan@f 0755 root root $libdir/sane/${hpaio-version} .libs/${hpaio-version}
128 @epm_scan@l 0755 root root $libdir/sane/libsane-hpaio.so ${hpaio-version}
129 @epm_scan@l 0755 root root $libdir/sane/libsane-hpaio.so.1 ${hpaio-version}
130 @epm_scan@%system all
131 @epm_scan@%postinstall <<EOF
132 @epm_scan@if [ -f /etc/sane.d/dll.conf ]; then
133 @epm_scan@   grep -q ^#hpaio /etc/sane.d/dll.conf
134 @epm_scan@   if [ $$? -eq 0 ]; then
135 @epm_scan@      sed -i -e s/^#hpaio/hpaio/ /etc/sane.d/dll.conf
136 @epm_scan@   else
137 @epm_scan@      grep -q ^hpaio /etc/sane.d/dll.conf
138 @epm_scan@      if [ $$? -ne 0 ]; then
139 @epm_scan@       echo hpaio >>/etc/sane.d/dll.conf
140 @epm_scan@      fi
141 @epm_scan@   fi
142 @epm_scan@fi
143 @epm_scan@EOF
144 %endif
145
146 # full
147 @epm_full@%system darwin
148 @epm_full@f 0755 root root $pyexecdir/hpmudext.dylib .libs/hpmudext.dylib
149 @epm_full@f 0755 root root $pyexecdir/pcardext.dylib .libs/pcardext.dylib
150 @epm_scan@@epm_full@f 0755 root root $pyexecdir/scanext.dylib .libs/scanext.dylib
151 @epm_full@%system !darwin
152 @epm_full@f 0755 root root $pyexecdir/hpmudext.so .libs/hpmudext.so
153 @epm_full@f 0755 root root $pyexecdir/pcardext.so .libs/pcardext.so
154 @epm_scan@@epm_full@f 0755 root root $pyexecdir/scanext.so .libs/scanext.so
155 @epm_full@%system all
156 @epm_full@f 644 root root $icondir/hplip.desktop hplip.desktop
157 @epm_full@f 644 root root $systraydir/hplip-systray.desktop hplip-systray.desktop
158 @epm_full@f 0700 root root $cupsbackend/hpfax fax/backend/hpfax.py
159 @epm_full@f 644 root root $ppd/HP fax/ppd/*.ppd.gz
160 # /usr/share/hplip files
161 @epm_full@f 755 root root $home/levels.py levels.py
162 @epm_full@f 755 root root $home/toolbox.py toolbox.py
163 @epm_full@f 755 root root $home/probe.py probe.py
164 @epm_full@f 755 root root $home/faxsetup.py faxsetup.py
165 @epm_full@f 755 root root $home/hpdio.py hpdio.py
166 @epm_full@f 755 root root $home/linefeedcal.py linefeedcal.py
167 @epm_full@f 755 root root $home/pqdiag.py pqdiag.py
168 @epm_full@f 755 root root $home/printsettings.py printsettings.py
169 @epm_full@f 755 root root $home/query.py query.py
170 @epm_full@f 755 root root $home/__init__.py __init__.py
171 @epm_full@d 775 root root $home/fax -
172 @epm_full@f 644 root root $home/fax/__init__.py fax/__init__.py
173 @epm_full@f 644 root root $home/fax/pmlfax.py fax/pmlfax.py
174 @epm_full@f 644 root root $home/fax/soapfax.py fax/soapfax.py
175 @epm_full@f 644 root root $home/fax/marvellfax.py fax/marvellfax.py
176 @epm_full@f 644 root root $home/fax/coverpages.py fax/coverpages.py
177 @epm_full@f 644 root root $home/fax/fax.py fax/fax.py
178 @epm_full@f 644 root root $home/fax/faxdevice.py fax/faxdevice.py
179 @epm_full@f 644 root root $home/fax/ledmfax.py fax/ledmfax.py
180 @epm_full@f 644 root root $home/fax/ledmsoapfax.py fax/ledmsoapfax.py
181 @epm_full@f 755 root root $home/fab.py fab.py
182 @epm_full@f 755 root root $home/pkservice.py pkservice.py
183 @epm_full@f 755 root root $home/hpssd.py hpssd.py
184 @epm_full@d 775 root root $home/base -
185 @epm_full@f 644 root root $home/base base/*.py
186 @epm_full@f 644 root root $home/hpaio.desc scan/sane/hpaio.desc
187 @epm_full@f 755 root root $home/align.py align.py
188 @epm_full@f 755 root root $home/timedate.py timedate.py
189 @epm_full@d 775 root root $home/copier -
190 @epm_full@f 644 root root $home/copier/__init__.py copier/__init__.py
191 @epm_full@f 644 root root $home/copier/copier.py copier/copier.py
192 @epm_full@f 755 root root $home/makecopies.py makecopies.py
193 @epm_full@f 755 root root $home/unload.py unload.py
194 @epm_full@f 755 root root $home/scan.py scan.py
195 @epm_full@f 755 root root $home/sendfax.py sendfax.py
196 @epm_full@d 775 root root $home/data -
197 @epm_full@d 775 root root $home/data/pcl -
198 @epm_full@f 644 root root $home/data/pcl data/pcl/*.pcl.gz
199 @epm_full@d 775 root root $home/data/ldl -
200 @epm_full@f 644 root root $home/data/ldl data/ldl/*.ldl.gz
201 @epm_full@d 775 root root $home/data/models -
202 @epm_full@f 644 root root $home/data/models/models.dat data/models/models.dat
203 @epm_full@d 775 root root $home/data/localization -
204 @epm_full@f 644 root root $home/data/localization data/localization/*.qm
205 @epm_full@d 775 root root $home/data/images -
206 @epm_full@d 775 root root $home/data/images/other -
207 @epm_full@f 644 root root $home/data/images/other data/images/other/*
208 @epm_full@d 775 root root $home/data/images/16x16 -
209 @epm_full@f 644 root root $home/data/images/16x16 data/images/16x16/*
210 @epm_full@d 775 root root $home/data/images/24x24 -
211 @epm_full@f 644 root root $home/data/images/24x24 data/images/24x24/*
212 @epm_full@d 775 root root $home/data/images/devices -
213 @epm_full@f 644 root root $home/data/images/devices data/images/devices/*
214 @epm_full@d 775 root root $home/data/images/32x32 -
215 @epm_full@f 644 root root $home/data/images/32x32 data/images/32x32/*
216 @epm_full@d 775 root root $home/data/images/128x128 -
217 @epm_full@f 644 root root $home/data/images/128x128 data/images/128x128/*
218 @epm_full@d 775 root root $home/data/images/64x64 -
219 @epm_full@f 644 root root $home/data/images/64x64 data/images/64x64/*
220 @epm_full@d 775 root root $home/data/images/256x256 -
221 @epm_full@f 644 root root $home/data/images/256x256 data/images/256x256/*
222 @epm_full@d 775 root root $home/data/ps -
223 @epm_full@f 644 root root $home/data/ps/clean_page.pdf.gz data/ps/clean_page.pdf.gz
224 @epm_full@f 644 root root $home/data/ps/testpage.ps.gz data/ps/testpage.ps.gz
225 @epm_full@f 755 root root $home/testpage.py testpage.py
226 @epm_full@f 755 root root $home/systray.py systray.py
227 @epm_full@f 755 root root $home/setup.py setup.py
228 @epm_full@f 755 root root $home/makeuri.py makeuri.py
229 @epm_full@d 775 root root $home/scan -
230 @epm_full@f 644 root root $home/scan/__init__.py scan/__init__.py
231 @epm_full@f 644 root root $home/scan/sane.py scan/sane.py
232 @epm_full@f 755 root root $home/plugin.py plugin.py
233 @epm_full@f 755 root root $home/check-plugin.py check-plugin.py
234 @epm_full@f 755 root root $home/diagnose_plugin.py diagnose_plugin.py
235 @epm_full@f 755 root root $home/print.py print.py
236 @epm_full@f 755 root root $home/firmware.py firmware.py
237 @epm_full@d 775 root root $home/plugins -
238 @epm_full@f 644 root root $home/plugins/powersettings2.py plugins/powersettings2.py
239 @epm_full@f 644 root root $home/plugins/__init__.py plugins/__init__.py
240 @epm_full@f 644 root root $home/plugins/powersettingsdialog_base.py plugins/powersettingsdialog_base.py
241 @epm_full@f 644 root root $home/plugins/Officejet_H470.py plugins/Officejet_H470.py
242 @epm_full@f 644 root root $home/plugins/powersettingsdialog.py plugins/powersettingsdialog.py
243 @epm_full@f 644 root root $home/plugins/Deskjet_460.py plugins/Deskjet_460.py
244 @epm_full@f 644 root root $home/plugins/dj450.py plugins/dj450.py
245 @epm_full@f 644 root root $home/plugins/powersettings.py plugins/powersettings.py
246 @epm_full@d 775 root root $home/installer -
247 @epm_full@f 644 root root $home/installer/distros.dat installer/distros.dat
248 @epm_full@f 644 root root $home/installer/__init__.py installer/__init__.py
249 @epm_full@f 644 root root $home/installer/dcheck.py installer/dcheck.py
250 @epm_full@f 644 root root $home/installer/core_install.py installer/core_install.py
251 @epm_full@f 755 root root $home/uninstall.py uninstall.py
252 @epm_full@f 755 root root $home/upgrade.py upgrade.py
253 @epm_full@f 755 root root $home/colorcal.py colorcal.py
254 @epm_full@d 775 root root $home/prnt -
255 @epm_full@f 644 root root $home/prnt/pcl.py prnt/pcl.py
256 @epm_full@f 644 root root $home/prnt/__init__.py prnt/__init__.py
257 @epm_full@f 644 root root $home/prnt/ldl.py prnt/ldl.py
258 @epm_full@f 644 root root $home/prnt/colorcal.py prnt/colorcal.py
259 @epm_full@f 755 root root $home/clean.py clean.py
260 @epm_full@f 755 root root $home/check.py check.py
261 @epm_full@d 775 root root $home/pcard -
262 @epm_full@f 644 root root $home/pcard/__init__.py pcard/__init__.py
263 @epm_full@f 644 root root $home/pcard/photocard.py pcard/photocard.py
264 @epm_full@f 755 root root $home/info.py info.py
265 @epm_full@f 755 root root $home/wificonfig.py wificonfig.py
266 @epm_full@f 755 root root $home/devicesettings.py devicesettings.py
267 @epm_full@f 755 root root $home/config_usb_printer.py config_usb_printer.py
268 @epm_full@f 755 root root $home/diagnose_queues.py diagnose_queues.py
269
270 # docs
271 @epm_full@f 644 root root $docdir doc/*
272 @epm_full@d 775 root root $docdir/images -
273 @epm_full@f 644 root root $docdir/images doc/images/*
274 @epm_full@d 775 root root $docdir/styles -
275 @epm_full@f 644 root root $docdir/styles doc/styles/*
276 # python commands
277 @epm_full@l 755 root root $bindir/hp-toolbox ../share/hplip/toolbox.py
278 @epm_full@l 755 root root $bindir/hp-colorcal ../share/hplip/colorcal.py
279 @epm_full@l 755 root root $bindir/hp-sendfax ../share/hplip/sendfax.py
280 @epm_full@l 755 root root $bindir/hp-clean ../share/hplip/clean.py
281 @epm_full@l 755 root root $bindir/hp-testpage ../share/hplip/testpage.py
282 @epm_full@l 755 root root $bindir/hp-systray ../share/hplip/systray.py
283 @epm_full@l 755 root root $bindir/hp-firmware ../share/hplip/firmware.py
284 @epm_full@l 755 root root $bindir/hp-makeuri ../share/hplip/makeuri.py
285 @epm_full@l 755 root root $bindir/hp-fab ../share/hplip/fab.py
286 @epm_full@l 755 root root $bindir/hp-pkservice ../share/hplip/pkservice.py
287 @epm_full@l 755 root root $bindir/hp-align ../share/hplip/align.py
288 @epm_full@l 755 root root $bindir/hp-print ../share/hplip/print.py
289 @epm_full@l 755 root root $bindir/hp-setup ../share/hplip/setup.py
290 @epm_full@l 755 root root $bindir/hp-levels ../share/hplip/levels.py
291 @epm_full@l 755 root root $bindir/hp-unload ../share/hplip/unload.py
292 @epm_full@l 755 root root $bindir/hp-probe ../share/hplip/probe.py
293 @epm_full@l 755 root root $bindir/hp-timedate ../share/hplip/timedate.py
294 @epm_full@l 755 root root $bindir/hp-plugin ../share/hplip/plugin.py
295 @epm_full@l 755 root root $bindir/hp-check-plugin ../share/hplip/check-plugin.py
296 @epm_full@l 755 root root $bindir/hp-diagnose_plugin ../share/hplip/diagnose_plugin.py
297 @epm_full@l 755 root root $bindir/hp-check ../share/hplip/check.py
298 @epm_full@l 755 root root $bindir/hp-info ../share/hplip/info.py
299 @epm_full@l 755 root root $bindir/hp-makecopies ../share/hplip/makecopies.py
300 @epm_full@l 755 root root $bindir/hp-scan ../share/hplip/scan.py
301 @epm_full@l 755 root root $bindir/hp-faxsetup ../share/hplip/faxsetup.py
302 @epm_full@l 755 root root $bindir/hp-linefeedcal ../share/hplip/linefeedcal.py
303 @epm_full@l 755 root root $bindir/hp-printsettings ../share/hplip/printsettings.py
304 @epm_full@l 755 root root $bindir/hp-query ../share/hplip/query.py
305 @epm_full@l 755 root root $bindir/hp-wificonfig ../share/hplip/wificonfig.py
306 @epm_full@l 755 root root $bindir/hp-devicesettings ../share/hplip/devicesettings.py
307 @epm_full@l 755 root root $bindir/hp-uninstall ../share/hplip/uninstall.py
308 @epm_full@l 755 root root $bindir/hp-upgrade ../share/hplip/upgrade.py
309 @epm_full@l 755 root root $bindir/hp-config_usb_printer ../share/hplip/config_usb_printer.py
310 @epm_full@l 755 root root $bindir/hp-diagnose_queues ../share/hplip/diagnose_queues.py
311
312 # qt4
313 @epm_full@@epm_qt4@d 775 root root $home/ui4 -
314 @epm_full@@epm_qt4@f 644 root root $home/ui4 ui4/*.py
315
316 # qt3
317 @epm_full@@epm_qt3@d 775 root root $home/ui -
318 @epm_full@@epm_qt3@f 644 root root $home/ui ui/*.py
319
320 %if !SUSE9
321 @epm_print_only_exclude@f 0700 root root $cupsbackend/hp .libs/hp
322 @epm_print_only_exclude@f 0755 root root $bindir/hp-mkuri .libs/hp-mkuri
323 %endif
324
325 # Use LINPUS8 for Acer Aspire One
326 %if LINPUS8 RHEL5
327 @epm_print_only_exclude@f 0644 root root /etc/udev/rules.d/55-hpmud_pam.rules data/rules/55-hpmud_pam.rules
328 %endif
329
330 %if RHEL3
331 f 0755 root root /etc/hotplug/usb/hpmud data/rules/hpmud
332 l 0644 root root /usr/share/cups/model/foomatic-ppds $ppd/HP
333 @epm_print_only_exclude@%postinstall <<EOF
334 @epm_print_only_exclude@if [ -f /etc/hotplug/usb.usermap ]; then
335 @epm_print_only_exclude@   grep -q ^hpmud /etc/hotplug/usb.usermap
336 @epm_print_only_exclude@   if [ $$? -ne 0 ]; then
337 @epm_print_only_exclude@     echo "hpmud 0x0001 0x03f0 0x0000 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000" >>/etc/hotplug/usb.usermap
338 @epm_print_only_exclude@   fi
339 @epm_print_only_exclude@fi
340 @epm_print_only_exclude@EOF
341 %endif
342
343 %system !darwin
344 %if !LINPUS8 !RHEL3 !UBUNTU804 !SUSE9 !RHEL5
345 @epm_print_only_exclude@f 0644 root root /etc/udev/rules.d/55-hpmud.rules data/rules/55-hpmud.rules
346 @epm_print_only_exclude@f 0644 root root /usr/share/hal/fdi/preprobe/10osvendor/20-hplip-devices.fdi data/rules/20-hplip-devices.fdi
347 %endif
348 %system all
349
350 %if LINPUS8
351 %requires PyQt
352 %requires cupsddk-drivers
353 %requires cupsddk-devel
354 %provides hpijs $version
355 %endif
356
357 %if FEDORA9 RHEL5
358 @epm_full@%requires PyQt
359 @epm_full@%provides hpijs $version
360 %endif
361
362 %if FEDORA9
363 @epm_lite@%provides hpijs $version
364 %endif
365
366 %if SUSE9
367 l 0644 root root /usr/share/cups/model/foomatic-ppds $ppd/HP
368 %postinstall <<EOF
369 rm -f /usr/share/cups/model/HP/*.hpijs.ppd.gz
370 rm -f /usr/share/cups/model/HP/*.Postscript.ppd.gz
371 EOF
372 %endif
373
374 %if UBUNTU804
375 @epm_full@%requires python-qt4
376 @epm_full@%requires python-qt4-dbus
377 @epm_full@%replaces foomatic-db-hpijs
378 @epm_full@%replaces hpijs
379 @epm_full@%replaces hplip
380 @epm_full@%replaces hplip-data
381 @epm_full@f 0644 root root /usr/share/hal/fdi/preprobe/10osvendor/20-hplip-devices.fdi data/rules/20-hplip-devices.fdi
382 @epm_full@%postinstall <<EOF
383 @epm_full@install -m 644 data/rules/55-hpmud.rules /etc/udev/rules.d
384 @epm_full@EOF
385 %endif
386
387 %if UBUNTU804
388 @epm_lite@%replaces foomatic-db-hpijs
389 @epm_lite@%replaces hpijs
390 @epm_lite@%replaces hplip
391 @epm_lite@%replaces hplip-data
392 @epm_lite@f 0644 root root /usr/share/hal/fdi/preprobe/10osvendor/20-hplip-devices.fdi data/rules/20-hplip-devices.fdi
393 @epm_lite@%postinstall <<EOF
394 @epm_lite@install -m 644 data/rules/55-hpmud.rules /etc/udev/rules.d
395 @epm_lite@EOF
396 %endif
397
398 %if DEBIAN5
399 @epm_full@%requires python-qt4
400 @epm_full@%requires python-qt4-dbus
401 @epm_full@%requires libc6
402 @epm_full@%requires libcups2
403 @epm_full@%requires cups-ddk
404 @epm_full@%requires libdbus-1-3
405 @epm_full@%requires libsane
406 @epm_full@%requires libsnmp15
407 @epm_full@%requires libusb-0.1-4
408 @epm_full@%requires libgcc1
409 @epm_full@%requires libjpeg62
410 @epm_full@%requires libstdc++6
411 @epm_full@%replaces foomatic-db-hpijs
412 @epm_full@%replaces hpijs
413 @epm_full@%replaces hplip
414 @epm_full@%replaces hplip-data
415 @epm_full@%replaces hplip-gui
416 @epm_full@%postinstall <<EOF
417 @epm_full@sed -i -e s/GROUP=\"lp\"/GROUP=\"scanner\"/ /etc/udev/rules.d/55-hpmud.rules
418 @epm_full@EOF
419 %endif
420
421 %if DEBIAN5
422 @epm_lite@%requires libc6
423 @epm_lite@%requires libcups2
424 @epm_lite@%requires cups-ddk
425 @epm_lite@%requires libdbus-1-3
426 @epm_lite@%requires libsane
427 @epm_lite@%requires libsnmp15
428 @epm_lite@%requires libusb-0.1-4
429 @epm_lite@%requires libgcc1
430 @epm_lite@%requires libjpeg62
431 @epm_lite@%requires libstdc++6
432 @epm_lite@%replaces foomatic-db-hpijs
433 @epm_lite@%replaces hpijs
434 @epm_lite@%replaces hplip
435 @epm_lite@%replaces hplip-data
436 @epm_lite@%postinstall <<EOF
437 @epm_lite@sed -i -e s/GROUP=\"lp\"/GROUP=\"scanner\"/ /etc/udev/rules.d/55-hpmud.rules
438 @epm_lite@EOF
439 %endif
440
441 %if PLUGIN
442 f 0644 root root $docdir/license.txt prnt/plugins/license.txt
443 f 0644 root root $docdir/COPYING prnt/plugins/license.txt
444 f 0644 root root $docdir/copyright prnt/plugins/copyright
445 d 0755 root root /var/lib/hp/ -
446 f 0644 root root $home/data/firmware data/firmware/*.fw.gz
447 d 0775 root root $home/data/plugin -
448 d 0775 root lp /var/log/hp -
449
450 #scan
451
452 @epm_print_only_exclude@f 0644 root root $home/data/models/models.dat data/models/models.dat
453
454 %system !darwin
455 @epm_print_only_exclude@f 0644 root root /etc/udev/rules.d data/rules/86-hpmud*.rules
456 @epm_print_only_exclude@f 0644 root root /etc/udev/rules.d data/rules/56-hpmud_add_printer.rules
457 f 0755 root root $home/prnt/plugins/lj-${machine}.so prnt/plugins/lj-${machine}.so
458 l 0755 root root $home/prnt/plugins/lj.so lj-${machine}.so
459 @epm_print_only_exclude@d 0775 root root $home/scan/plugins -
460 @epm_print_only_exclude@f 0755 root root $home/scan/plugins/bb_marvell-${machine}.so scan/sane/bb_marvell-${machine}.so
461 @epm_print_only_exclude@l 0755 root root $home/scan/plugins/bb_marvell.so bb_marvell-${machine}.so
462 @epm_print_only_exclude@f 0755 root root $home/scan/plugins/bb_soapht-${machine}.so scan/sane/bb_soapht-${machine}.so
463 @epm_print_only_exclude@l 0755 root root $home/scan/plugins/bb_soapht.so bb_soapht-${machine}.so
464 @epm_print_only_exclude@f 0755 root root $home/scan/plugins/bb_soap-${machine}.so scan/sane/bb_soap-${machine}.so
465 @epm_print_only_exclude@l 0755 root root $home/scan/plugins/bb_soap.so bb_soap-${machine}.so
466 @epm_print_only_exclude@f 0755 root root $home/fax/plugins/fax_marvell-${machine}.so fax/plugins/fax_marvell-${machine}.so
467 @epm_print_only_exclude@l 0755 root root $home/fax/plugins/fax_marvell.so fax_marvell-${machine}.so
468
469
470 %system all
471 %postinstall <<EOF
472 ver=`echo $version | sed 's/\([0-9]*.[0-9]*.[0-9]*\).*/\1/'`
473 touch $home/data/plugin/hplip-$${ver}-plugin.run
474 EOF
475 %postremove <<EOF
476 ver=`echo $version | sed 's/\([0-9]*.[0-9]*.[0-9]*\).*/\1/'`
477 rm -f $home/data/plugin/hplip-$${ver}-plugin.run
478 EOF
479 %else
480 f 0644 root root $docdir/COPYING COPYING
481 f 0644 root root $docdir/copyright copyright
482 d 0755 root root /var/lib/hp/ -
483 d 0775 root lp /var/log/hp -
484 %system !darwin
485 @epm_print_only_exclude@f 0644 root root /etc/udev/rules.d/56-hpmud_support.rules data/rules/56-hpmud_support.rules
486 @epm_print_only_exclude@f 0644 root root /etc/udev/rules.d/86-hpmud_plugin.rules data/rules/86-hpmud_plugin.rules
487 @epm_print_only_exclude@f 0644 root root /etc/udev/rules.d/56-hpmud_add_printer.rules data/rules/56-hpmud_add_printer.rules
488
489 %system all
490 %endif
491 #end PLUGIN