/[packages]/updates/1/hplip/current/SPECS/hplip.spec
ViewVC logotype

Annotation of /updates/1/hplip/current/SPECS/hplip.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 95747 - (hide annotations) (download)
Sat May 7 10:04:23 2011 UTC (12 years, 11 months ago) by cjw
Original Path: cauldron/hplip/current/SPECS/hplip.spec
File size: 22452 byte(s)
- add provides: sane-backends-hpaio on the sane module package
- make hplip depend on python-imaging and sane-backends-hpaio, so the hp-scan tool actually works (see bug #792)

1 spuhler 49621 # Define if you want to build the sane backend (default)
2     %define sane_backend 1
3     %{?_with_sane: %global sane_backend 1}
4     %{?_without_sane: %global sane_backend 0}
5    
6     %define hpip_major 0
7     %define hpip_libname %mklibname hpip %{hpip_major}
8    
9     %define sane_hpaio_major 1
10     %define sane_hpaio_libname %mklibname sane-hpaio %{sane_hpaio_major}
11    
12     # Suppress automatically generated Requires for devel packages
13     %define _requires_exceptions devel\(.*\)
14    
15     #define extraversion -RC1
16     %define extraversion %nil
17    
18     Summary: HP printer/all-in-one driver infrastructure
19     Name: hplip
20 cjw 85139 Version: 3.11.3a
21 cjw 95747 Release: %mkrel 3
22 spuhler 49621 License: GPLv2+ and MIT
23     Group: System/Printing
24 cjw 85144 Source: http://heanet.dl.sourceforge.net/sourceforge/hplip/%{name}-%{version}%{extraversion}.tar.gz
25     Source1: hpcups-update-ppds.sh
26 spuhler 49621 # dlopen libhpmud.so.0 instad of libhpmud.so, in order not to depend on
27     # devel package (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=548379)
28     Patch0: hplip-3.9.8-dlopen-libhpmud.patch
29    
30     # Fedora patches
31     Patch101: hplip-pstotiff-is-rubbish.patch
32     Patch102: hplip-strstr-const.patch
33     Patch103: hplip-ui-optional.patch
34     Patch104: hplip-no-asm.patch
35     Patch105: hplip-deviceIDs-drv.patch
36     Patch106: hplip-mucks-with-spooldir.patch
37     Patch107: hplip-udev-rules.patch
38     Patch108: hplip-retry-open.patch
39     Patch110: hplip-discovery-method.patch
40     Patch111: hplip-device-reconnected.patch
41     Patch112: hplip-clear-old-state-reasons.patch
42     Patch114: hplip-hpcups-sigpipe.patch
43     Patch116: hplip-bad-low-ink-warning.patch
44     Patch117: hplip-deviceIDs-ppd.patch
45     Patch118: hplip-skip-blank-lines.patch
46     Patch119: hplip-dbglog-newline.patch
47     Patch120: hplip-no-system-tray.patch
48     Patch122: hplip-hpijs-marker-supply.patch
49     Patch124: hplip-raw_deviceID-traceback.patch
50     Patch125: hplip-UnicodeDecodeError.patch
51     Patch126: hplip-emit-SIGNAL.patch
52     Patch127: hplip-fab-root-crash.patch
53     Patch128: hplip-addprinter.patch
54     Patch129: hplip-dbus-exception.patch
55     Patch130: hplip-hpaio-segfault.patch
56     Patch131: hplip-newline.patch
57     Patch132: hplip-dbus-threads.patch
58     Patch133: hplip-notification-exception.patch
59     Patch135: hplip-CVE-2010-4267.patch
60    
61     # Debian/Ubuntu patches
62     Patch202: hplip-hpinfo-query-without-cups-queue.patch
63     Patch203: hplip-pjl-duplex-binding.patch
64     Patch204: hplip-photosmart_b9100_support.patch
65     Patch205: 85_rebuild_python_ui.dpatch
66     Patch206: hplip-rss.patch
67     Patch207: hplip-2.7.6-14_charsign_fixes.patch
68     Patch208: 10_shebang_fixes.dpatch
69     Patch210: 87_move_documentation.dpatch
70     Patch211: hp-check_debian.dpatch
71     Patch212: delayed-hp-systray-start.dpatch
72    
73     Url: http://hplip.sourceforge.net/
74     %if %{sane_backend}
75     BuildRequires: libsane-devel, xsane
76     %endif
77     %py_requires -d
78     BuildRequires: python-sip >= 4.1.1
79     BuildRequires: net-snmp-devel
80     BuildRequires: libusb-devel >= 0.1.8
81     BuildRequires: imagemagick
82     BuildRequires: autoconf
83     BuildRequires: libcups-devel
84     BuildRequires: libjpeg-devel
85     BuildRequires: python-devel
86     BuildRequires: desktop-file-utils
87     BuildRequires: libdbus-devel
88     BuildRequires: udev-devel
89     BuildRequires: polkit
90     BuildRequires: gphoto2-devel
91     BuildRequires: libv4l-devel
92     Requires: cups
93     # For dynamic ppd generation.
94     Requires: cupsddk-drivers >= 1.2.3-2mdv
95     Requires: foomatic-filters
96     Requires: hplip-model-data hplip-hpijs
97     Requires: hplip-hpijs-ppds
98     Requires: python-sip >= 4.1.1
99     # Needed for communicating with ethernet-connected printers
100     Requires: net-snmp-mibs
101     # Needed to generate fax cover pages
102     Requires: python-reportlab
103     # Needed since 2.8.4 for IPC
104     Requires: python-dbus
105     Requires: polkit-agent
106     Requires: usermode-consoleonly
107     Requires: python-gobject
108     # Required by hp-scan for command line scanning
109 cjw 95747 Requires: python-imaging
110     Requires: sane-backends-hpaio
111     # Some HP ppds are in foomatic-db and foomatic-db-hpijs (mdv bug #47415)
112 spuhler 49621 Suggests: foomatic-db-hpijs
113    
114     # foomatic-db-hpijs drivers are provided by hp and by this package now
115     # NOTE: remove the foomatic-db-hpijs deps sometime in 2010-10-?? ?
116     Provides: foomatic-db-hpijs = %{version}-%{release}
117     Obsoletes: foomatic-db-hpijs
118    
119 spuhler 49623
120 spuhler 49621 %description
121     This is the HP driver package to supply Linux support for most
122     Hewlett-Packard DeskJet, LaserJet, PSC, OfficeJet, and PhotoSmart
123     printers and all-in-one peripherals (also known as Multi-Function
124     Peripherals or MFPs), which can print, scan, copy, fax, and/or access
125     flash memory cards.
126    
127     It is work in progress, but printing, scanning, memory card access,
128     ink/toner/battery/consumable level checking, and inkjet printer
129     maintenance are supported on most models, when either connected to the
130     USB or LAN (built-in interfaces or selected HP JetDirect models) on a
131     Linux workstation with CUPS printing system.
132    
133     For status and consumable checking and also for inkjet maintenance
134     there is the graphical tool "hp-toolbox" available (Menu:
135     "System"/"Monitoring"/"HP Printer Toolbox").
136    
137     %package -n %{hpip_libname}
138     Summary: Dynamic library for the "hplip" HP printer/all-in-one drivers
139     Group: System/Printing
140    
141     %description -n %{hpip_libname}
142     Library needed for the "hplip" HP printer/all-in-one drivers
143    
144     %package -n %{hpip_libname}-devel
145     Summary: Headers and links to compile against the "%{hpip_libname}" ("hplip") library
146     Group: Development/C
147     Requires: %{hpip_libname} >= %{version}-%{release}
148     Provides: libhpip-devel = %{version}-%{release}
149    
150     %description -n %{hpip_libname}-devel
151     This package contains all files which one needs to compile programs using
152     the "%{hpip_libname}" library.
153    
154     %if %{sane_backend}
155     %package -n %{sane_hpaio_libname}
156     Summary: SANE driver for scanners in HP's multi-function devices (from HPLIP)
157     Group: System/Printing
158     Requires: sane-backends
159 cjw 95747 Provides: sane-backends-hpaio = %{version}-%{release}
160 spuhler 49621 %define _requires_exceptions devel(libcrypto)\\|devel(libdl)\\|devel(libhpip)\\|devel(libm)\\|devel(libsnmp)
161     %endif
162    
163     %if %{sane_backend}
164     %description -n %{sane_hpaio_libname}
165     SANE driver for scanners in HP's multi-function devices (from HPLIP)
166     %endif
167    
168     %if 0
169     %if %{sane_backend}
170     %package -n %{sane_hpaio_libname}-devel
171     Summary: Headers and links to compile against the "%{sane_hpaio_libname}" ("sane-hpaio") library
172     Group: Development/C
173     Requires: %{sane_hpaio_libname} >= %{version}-%{release}
174     Provides: libsane-hpaio-devel = %{version}-%{release}
175     %endif
176    
177     %if %{sane_backend}
178     %description -n %{sane_hpaio_libname}-devel
179     This package contains all files which one needs to compile programs using
180     the "%{sane_hpaio_libname}" library.
181     %endif
182     %endif
183    
184     %package model-data
185     Summary: Data file listing the HP printer models supported by HPLIP
186     Group: System/Printing
187    
188     %description model-data
189     HPLIP supports most current HP printers and multifunction devices, but
190     there are some older models not supported. This package contains the
191     list of supported models. Printerdrake installs it automatically to
192     determine whether HPLIP has to be installed or not.
193    
194     %package gui
195     Summary: HPLIP graphical tools
196     Group: System/Printing
197     Requires:python-qt4-gui
198     Requires: %{name} = %{version}-%{release}
199     Requires: usermode
200    
201     %description gui
202     HPLIP graphical tools.
203    
204    
205     %package hpijs
206     Summary: HPs printer driver IJS plug-in for GhostScript
207     Group: System/Printing
208     Requires: ghostscript
209     Provides: hpijs
210    
211     %description hpijs
212     HPs printer driver IJS plug-in for GhostScript. This driver gives full
213     printing support for nearly all non-PostScript inkjet and laser
214     printers made by HP.
215    
216     %package hpijs-ppds
217     Summary: PPD files for the HPIJS printer driver
218     Group: System/Printing
219     Requires: foomatic-filters, hplip-hpijs
220    
221     %description hpijs-ppds
222     PPD files to use the HPIJS printer driver with foomatic-rip and a
223     printer spooler like CUPS, LPRng, PDQ, ...
224    
225     %package doc
226     Summary: Documentation for HPLIP
227     Group: System/Printing
228    
229     %description doc
230     This package contains documentation for the HPLIP driver.
231    
232     This is the HP driver package to supply Linux support for most
233     Hewlett-Packard DeskJet, LaserJet, PSC, OfficeJet, and PhotoSmart
234     printers and all-in-one peripherals (also known as Multi-Function
235     Peripherals or MFPs), which can print, scan, copy, fax, and/or access
236     flash memory cards.
237    
238     %prep
239     rm -rf $RPM_BUILD_DIR/%{name}-%{version}%{extraversion}
240     %setup -q -n %{name}-%{version}%{extraversion}
241    
242     %patch0 -p1 -b .dlopen
243    
244     # Fedora patches
245    
246     # The pstotiff filter is rubbish so replace it (launchpad #528394).
247     %patch101 -p1 -b .pstotiff-is-rubbish
248    
249     # Fix compilation.
250     %patch102 -p1 -b .strstr-const
251    
252     # Make utils.checkPyQtImport() look for the gui sub-package (RH bug #243273).
253     %patch103 -p1 -b .ui-optional
254    
255     # Make sure to avoid handwritten asm.
256     %patch104 -p1 -b .no-asm
257    
258     # Corrected several IEEE 1284 Device IDs using foomatic data.
259     # HP Color LaserJet CM1312nfi (bug #581005).
260     # HP Color LaserJet 3800 (bug #581935).
261     # HP Color LaserJet 2840 (bug #582215).
262     %patch105 -p1 -b .device-ids
263    
264     # Stopped hpcups pointlessly trying to read spool files
265     # directly (RH bug #552572).
266     %patch106 -p1 -b .mucks-with-spooldir
267    
268     # Removed SYSFS use in udev rules and actually made them work
269     # (RH bug #560754).
270     %patch107 -p1 -b .udev-rules
271    
272     # Retry when connecting to device fails (RH bug #532112).
273     %patch108 -p1 -b .retry-open
274    
275     # Fixed hp-setup traceback when discovery page is skipped (RH bug #523685).
276     %patch110 -p1 -b .discovery-method
277    
278     # Give up trying to print a job to a reconnected device (RH bug #515481).
279     %patch111 -p1 -b .device-reconnected
280    
281     # Clear old printer-state-reasons we used to manage (bug #510926).
282     %patch112 -p1 -b .clear-old-state-reasons
283    
284     # Avoid busy loop in hpcups when backend has exited (RH bug #525944).
285     %patch114 -p1 -b .hpcups-sigpipe
286    
287     # Fixed Device ID parsing code in hpijs's dj9xxvip.c (RH bug #510926).
288     %patch116 -p1 -b .bad-low-ink-warning
289    
290     # Add Device ID for
291     # HP LaserJet 1200 (bug #577308)
292     # HP LaserJet 1320 series (bug #579920)
293     # HP LaserJet 2300 (bug #576928)
294     # HP LaserJet P2015 Series (bug #580231)
295     # HP Color LaserJet 3800 (bug #581935).
296     # HP Color LaserJet 2840 (bug #582215).
297     for ppd_file in $(grep '^diff' %{PATCH117} | cut -d " " -f 4);
298     do
299     gunzip ${ppd_file#*/}.gz
300     done
301     %patch117 -p1 -b .deviceIDs-ppd
302     for ppd_file in $(grep '^diff' %{PATCH117} | cut -d " " -f 4);
303     do
304     gzip -n ${ppd_file#*/}
305     done
306    
307     # Hpcups (ljcolor) was putting black lines where should be blank lines (RH bug #579461).
308     %patch118 -p1 -b .skip-blank-lines
309    
310     # Added missing newline to string argument in dbglog() call (bug #585275).
311     %patch119 -p1 -b .dbglog-newline
312    
313     # Wait for max 30s to see if a system tray becomes available (bug #569969).
314     %patch120 -p1 -b .no-system-tray
315    
316     # Fixed bogus low ink warnings from hpijs driver (bug #643643).
317     %patch122 -p1 -b .hpijs-marker-supply
318    
319     # Fixed traceback on error condition in device.py (bug #628125).
320     %patch124 -p1 -b .raw_deviceID-traceback
321    
322     # Avoid UnicodeDecodeError in printsettingstoolbox.py (bug #645739).
323     %patch125 -p1 -b .UnicodeDecodeError
324    
325     # Don't emit SIGNALs in ui4.setupdialog.SetupDialog the PyQt3 way (bug #623834).
326     %patch126 -p1 -b .emit-SIGNAL
327    
328     # Prevent hp-fab traceback when run as root.
329     %patch127 -p1 -b .fab-root-crash
330    
331     # Call cupsSetUser in cupsext's addPrinter method before connecting so
332     # that we can get an authentication callback (bug #538352).
333     %patch128 -p1 -b .addprinter
334    
335     # Catch D-Bus exceptions in fax dialog (bug #645316).
336     %patch129 -p1 -b .dbus-exception
337    
338     # Prevent hpaio segfaulting on invalid URIs (bug #649092).
339     %patch130 -p1 -b .hpaio-segfault
340    
341     # Another missing newline in filter output (Ubuntu #418053).
342     %patch131 -p1 -b .newline
343    
344     # Enable D-Bus threading (and require pygobject2) (bug #600932).
345     %patch132 -p1 -b .dbus-threads
346    
347     # Catch GError exception when notification showing failed (bug #665577).
348     %patch133 -p1 -b .notification-exception
349    
350     # Applied patch to fix CVE-2010-4267, remote stack overflow
351     # vulnerability (bug #670252).
352     %patch135 -p1 -b .CVE-2010-4267
353    
354     # Debian/Ubuntu patches
355    
356     # Allow hp-info to query URIs for which there is no CUPS queue
357     # (Launchpad bug #329220)
358     %patch202 -p1 -b .query
359    
360     # FixsShort-edge duplex printing if duplex is PJL-controlled
361     # https://bugs.launchpad.net/hplip/+bug/244295
362     %patch203 -p1 -b .pjl-duplex
363    
364     # Corrections on the models.dat entry for the HP PhotoSmart Pro B9100,
365     # especially for the correct color calibration mode.
366     %patch204 -p1 -b .b9100
367    
368     # compiling ui files to py
369     %patch205 -p1 -b .rebuildui
370    
371     # This patch tries to make sure that black is printed with just
372     # the black pen, if the printer supports it
373     %patch206 -p1 -b .rss
374    
375     # code cleanup related to char signedness
376     %patch207 -p1 -b .14charsign
377    
378     # shebang fixes
379     %patch208 -p1
380    
381     # place html documentation under hplip-doc/HTML/
382     %patch210 -p1
383    
384     # Check for hpaio module in /etc/sane.d/dll.d/hplip too
385     %patch211 -p1
386    
387     # Delay start-up of notification utility
388     %patch212 -p1
389    
390     # Make all files in the source user-writable
391     chmod -R u+w .
392    
393     %build
394     %serverbuild
395     #needed by patch205
396     libtoolize --copy --force
397     aclocal --force
398     autoconf -f
399     #needed by patches 205 and 210
400     automake -f --foreign
401    
402     %if !%{sane_backend}
403     WITHOUT_SANE="--without-sane"
404     %endif
405     %configure2_5x $WITHOUT_SANE \
406     --disable-foomatic-rip-hplip-install \
407     --enable-scan-build \
408     --enable-gui-build \
409     --enable-fax-build \
410     --enable-pp-build \
411     --enable-qt4 --disable-qt3 \
412     --enable-hpcups-install \
413     --enable-cups-drv-install \
414     --enable-cups-ppd-install \
415     --enable-hpijs-install \
416     --enable-udev-acl-rules \
417     --enable-policykit \
418     --with-mimedir=%{_datadir}/cups/mime
419    
420     sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
421     sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
422    
423     %make
424    
425     # convert icons to required sizes
426     #convert data/images/print.png -resize 16x16 %{name}.mini.png
427     #convert data/images/print.png -resize 32x32 %{name}.png
428     #convert data/images/print.png -resize 48x48 %{name}.large.png
429    
430     %install
431     rm -rf %{buildroot}
432     mkdir -p %{buildroot}%{_bindir}
433     mkdir -p %{buildroot}%{_includedir}
434     mkdir -p %{buildroot}%{_initrddir}
435     mkdir -p %{buildroot}%{_sysconfdir}/hp
436     mkdir -p %{buildroot}/var/run/hplip
437    
438     # Do not use the macro here, use the standard DESTDIR method as it works
439     # with HPLIP, in contrary to the non-standard Mandriva method
440     #make test-destdir DESTDIR=%{buildroot}
441     make install DESTDIR=%{buildroot}
442    
443     # Install files which the "make install" missed to install
444     install -m 644 ip/hpip.h %{buildroot}%{_includedir}
445     install -m 644 ip/xform.h %{buildroot}%{_includedir}
446    
447     # Move doc in sub-package
448     mv %{buildroot}%{_docdir}/%{name}-%{version}%{extraversion} %{buildroot}%{_docdir}/%{name}-doc-%{version}%{extraversion}
449    
450     # Remove static libraries of SANE driver
451     rm -f %{buildroot}%{_libdir}/sane/libsane-hpaio*.so
452     rm -f %{buildroot}%{_libdir}/sane/libsane-hpaio*.la
453     rm -f %{buildroot}%{_sysconfdir}/sane.d/dll.conf
454    
455     # Remove other unneeded files
456     rm -f %{buildroot}%{py_platsitedir}/*.la
457    
458     # install menu icons
459     #mkdir -p %{buildroot}%{_iconsdir}/locolor/16x16/apps/
460     #install -m 644 %{name}.png -D %{buildroot}%{_iconsdir}/%{name}.png
461     #install -m 644 %{name}.mini.png -D %{buildroot}%{_miconsdir}/%{name}.png
462     #install -m 644 %{name}.large.png -D %{buildroot}%{_liconsdir}/%{name}.png
463    
464     mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
465     desktop-file-install --vendor='' \
466     --dir=%{buildroot}%{_datadir}/applications \
467     --remove-category='Application' \
468     --remove-category='Utility' \
469     --add-category='System' \
470     --add-category='Settings' \
471     --add-category='Printing' \
472     --add-category='Qt' \
473     --add-category='HardwareSettings' \
474     --add-category='X-MandrivaLinux-CrossDesktop' \
475     --remove-key='Version' \
476     %{buildroot}%{_datadir}/applications/hplip.desktop
477    
478 wally 91745 cat > $RPM_BUILD_ROOT%{_datadir}/applications/%{_real_vendor}-hp-sendfax.desktop << EOF
479 spuhler 49621 [Desktop Entry]
480     Name=HP Sendfax
481     Comment=Utility for sending faxes with HP's multi-function devices
482     Exec=%{_bindir}/hp-sendfax
483     Icon=%{_datadir}/%{name}/data/images/32x32/fax_machine.png
484     Terminal=false
485     Type=Application
486     Categories=TelephonyTools;Qt;Printing;Utility;X-MandrivaLinux-CrossDesktop;
487     EOF
488     #' #Fix vim's stupid syntax
489    
490     rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop
491    
492     # switched to udev, no need for hal information
493     rm -rf %{buildroot}%{_datadir}/hal/fdi
494    
495     # Regenerate hpcups PPDs on upgrade if necessary (bug #579355).
496     install -p -m755 %{SOURCE1} %{buildroot}%{_bindir}/hpcups-update-ppds
497    
498     # Fedora pstotiff
499     rm -f %{buildroot}%{_sysconfdir}/cups/pstotiff.types
500     rm -f %{buildroot}%{_datadir}/cups/mime/pstotiff.types
501     rm -f %{buildroot}%{_datadir}/hplip/fax/pstotiff*
502     rm -f %{buildroot}%{_prefix}/lib/cups/filter/hpcac
503    
504     # bork?
505     install -d %{buildroot}%{_sysconfdir}/cups
506     cp -p %{buildroot}%{_datadir}/cups/mime/pstotiff.convs %{buildroot}%{_sysconfdir}/cups/pstotiff.convs
507    
508     # set up consolehelper
509     mkdir -p %{buildroot}%{_sbindir}
510     mv %{buildroot}%{_bindir}/hp-setup %{buildroot}%{_sbindir}/hp-setup
511     ln -s consolehelper %{buildroot}%{_bindir}/hp-setup
512    
513     # Make sure pyc files are generated, otherwise we can get
514     # difficult to debug problems
515     pushd %{buildroot}%{_datadir}/%{name}
516     python -m compileall .
517     popd
518    
519     %triggerin -- hplip < 2.7.7
520     chkconfig --del hplip
521    
522     # Restart CUPS to make the Fax PPD known to it
523     if [ -f /etc/init.d/cups ]; then
524     /sbin/service cups condrestart || :
525     fi
526    
527     %post -n hplip-hpijs-ppds
528     # Restart CUPS to make the printing PPDs known to it
529     if [ -f /etc/init.d/cups ]; then
530     /sbin/service cups condrestart || :
531     fi
532    
533     %post -n hplip-hpijs
534     %{_bindir}/hpcups-update-ppds &>/dev/null ||:
535    
536     %post -n hplip-model-data
537     /sbin/udevadm trigger --subsystem-match=usb --attr-match=idVendor=03f0
538    
539    
540     %if %{sane_backend}
541     %post -n %{sane_hpaio_libname}
542 spuhler 49623
543 spuhler 49621 # Add HPLIP driver to /etc/sane.d/dll.conf
544     if ! grep ^hpaio /etc/sane.d/dll.conf >/dev/null 2>/dev/null ; then \
545     echo hpaio >> /etc/sane.d/dll.conf; \
546     fi
547     %endif
548    
549     %if %{sane_backend}
550     %preun -n %{sane_hpaio_libname}
551     # Remove HPLIP driver from /etc/sane.d/dll.conf
552     if [ "$1" = 0 ]; then \
553     if grep ^hpaio /etc/sane.d/dll.conf >/dev/null 2>/dev/null ; then \
554     sed '/hpaio/d' /etc/sane.d/dll.conf > /tmp/$$; \
555     cp -f /tmp/$$ /etc/sane.d/dll.conf; \
556     rm -f /tmp/$$; \
557     fi; \
558     fi
559     %endif
560    
561     # Restart CUPS to make the removal of the Fax PPD known to it
562     if [ -f /etc/init.d/cups ]; then
563     /sbin/service cups condrestart || :
564     fi
565    
566     %postun -n hplip-hpijs-ppds
567     # Restart CUPS to make the removal of the printing PPDs known to it
568     if [ -f /etc/init.d/cups ]; then
569     /sbin/service cups condrestart || :
570     fi
571    
572    
573     %if %{sane_backend}
574     %postun -n %{sane_hpaio_libname}
575     %endif
576    
577     %clean
578     rm -rf %{buildroot}
579    
580     %files
581     %defattr(-,root,root)
582     #doc COPYING doc/*
583     %config(noreplace) %{_sysconfdir}/hp
584     %dir /var/run/hplip/
585     %{_bindir}/hp-align
586     %{_bindir}/hp-clean
587     %{_bindir}/hp-colorcal
588     %{_bindir}/hp-devicesettings
589     %{_bindir}/hp-fab
590     %{_bindir}/hp-faxsetup
591     %{_bindir}/hp-firmware
592     %{_bindir}/hp-info
593     %{_bindir}/hp-levels
594     %{_bindir}/hp-linefeedcal
595     %{_bindir}/hp-makecopies
596     %{_bindir}/hp-makeuri
597     %{_bindir}/hp-mkuri
598     %{_bindir}/hp-pkservice
599     %{_bindir}/hp-plugin
600     %{_bindir}/hp-pqdiag
601     %{_bindir}/hp-printsettings
602     %{_bindir}/hp-probe
603     %{_bindir}/hp-query
604     %{_bindir}/hp-scan
605     %{_bindir}/hp-sendfax
606     %{_bindir}/hp-setup
607     %{_sbindir}/hp-setup
608     %{_bindir}/hp-testpage
609     %{_bindir}/hp-timedate
610     %{_bindir}/hp-unload
611     %{_bindir}/hp-wificonfig
612    
613     %exclude %{_datadir}/hplip/data/models
614     # C libraries for Python
615     %{_libdir}/python*/*/*.so*
616     # CUPS backends (0755 permissions, so that CUPS 1.2 runs these backends
617     # as lp user)
618     # Note: this must be /usr/lib not %{_libdir}, since that's the
619     # CUPS serverbin directory.
620     %attr(0755,root,root) %{_prefix}/lib/cups/backend/hp*
621     %{_prefix}/lib/cups/filter/hplipjs
622     %{_prefix}/lib/cups/filter/hpcups
623     %{_prefix}/lib/cups/filter/hpcupsfax
624 cjw 85139 %{_prefix}/lib/cups/filter/hpps
625 spuhler 49621 %{_prefix}/lib/cups/filter/pstotiff
626     %{_datadir}/cups/mime/pstotiff.convs
627     %config(noreplace) %{_sysconfdir}/cups/pstotiff.convs
628     %{_datadir}/ppd/HP/HP-Fax*.ppd*
629     %{_datadir}/cups/drv/hp/hpcups.drv
630     # Files
631     %dir %{_datadir}/hplip
632     %{_datadir}/hplip/align.py*
633     %{_datadir}/hplip/clean.py*
634     %{_datadir}/hplip/colorcal.py*
635     %{_datadir}/hplip/devicesettings.py*
636     %{_datadir}/hplip/fab.py*
637     %{_datadir}/hplip/fax
638     %{_datadir}/hplip/faxsetup.py*
639     %{_datadir}/hplip/firmware.py*
640     %{_datadir}/hplip/hpdio.py*
641     %{_datadir}/hplip/hpssd*
642     %{_datadir}/hplip/info.py*
643     %{_datadir}/hplip/__init__.py*
644     %{_datadir}/hplip/levels.py*
645     %{_datadir}/hplip/linefeedcal.py*
646     %{_datadir}/hplip/makecopies.py*
647     %{_datadir}/hplip/makeuri.py*
648     %{_datadir}/hplip/pkservice.py*
649     %{_datadir}/hplip/plugin.py*
650     %{_datadir}/hplip/pqdiag.py*
651     %{_datadir}/hplip/printsettings.py*
652     %{_datadir}/hplip/probe.py*
653     %{_datadir}/hplip/query.py*
654     %{_datadir}/hplip/scan.py*
655     %{_datadir}/hplip/sendfax.py*
656     %{_datadir}/hplip/setup.py*
657     %{_datadir}/hplip/testpage.py*
658     %{_datadir}/hplip/timedate.py*
659     %{_datadir}/hplip/unload.py*
660     %{_datadir}/hplip/wificonfig.py*
661     # Directories
662     %{_datadir}/hplip/base
663     %{_datadir}/hplip/copier
664     %dir %{_datadir}/hplip/data
665     %{_datadir}/hplip/data/ldl
666     %{_datadir}/hplip/data/localization
667     %{_datadir}/hplip/data/models
668     %{_datadir}/hplip/data/pcl
669     %{_datadir}/hplip/data/ps
670     %{_datadir}/hplip/installer
671     %{_datadir}/hplip/pcard
672     %{_datadir}/hplip/prnt
673     %{_datadir}/hplip/scan
674     %{_datadir}/polkit-1/actions/com.hp.hplip.policy
675     %{_datadir}/dbus-1/system-services/com.hp.hplip.service
676     %{_localstatedir}/lib/hp/hplip.state
677     %config(noreplace) %{_sysconfdir}/dbus-1/system.d/com.hp.hplip.conf
678    
679     %files doc
680     %defattr(-,root,root)
681     %doc %{_docdir}/%{name}-doc-%{version}%{extraversion}
682    
683     %files -n %{hpip_libname}
684     %defattr(-,root,root)
685     %{_libdir}/libhpip*.so.*
686     %{_libdir}/libhpmud.so.*
687    
688     %files -n %{hpip_libname}-devel
689     %defattr(-,root,root)
690     %{_includedir}/hpip.h
691     %{_includedir}/xform.h
692     %{_libdir}/libhpip*.so
693     %{_libdir}/libhpip*.la
694     %{_libdir}/libhpmud.so
695     %{_libdir}/libhpmud.la
696    
697     %if %{sane_backend}
698    
699     %files -n %{sane_hpaio_libname}
700     %defattr(-,root,root)
701     %{_libdir}/sane/libsane-hpaio*.so.*
702    
703     %if 0
704     %files -n %{sane_hpaio_libname}-devel
705     %defattr(-,root,root)
706     #%{_libdir}/libsane-hpaio*.so
707     #%{_libdir}/libsane-hpaio*.a
708     #%{_libdir}/libsane-hpaio*.la
709     #%{_libdir}/sane/libsane-hpaio*.so
710     #%{_libdir}/sane/libsane-hpaio*.a
711     #%{_libdir}/sane/libsane-hpaio*.la
712     %endif
713    
714     %endif
715    
716     %files model-data
717     %defattr(-,root,root)
718     %{_sysconfdir}/udev/rules.d/*.rules
719     %{_datadir}/hplip/data/models
720    
721     %files gui
722     %{_bindir}/hp-check
723     %{_bindir}/hp-print
724     %{_bindir}/hp-systray
725     %{_bindir}/hp-toolbox
726     %{_datadir}/applications/*.desktop
727     # Files
728     %{_datadir}/hplip/check.py*
729     %{_datadir}/hplip/print.py*
730     %{_datadir}/hplip/systray.py*
731     %{_datadir}/hplip/toolbox.py*
732     # Directories
733     %{_datadir}/hplip/data/images
734     %{_datadir}/hplip/ui4
735    
736     %files hpijs
737     %defattr(-,root,root)
738     %{_bindir}/hpijs
739     # Needed for both printing and fax PPDs. They all need HPIJS, therefore
740     # the link is here
741     %dir %{_datadir}/ppd
742     %dir %{_datadir}/ppd/HP
743     %{_bindir}/hpcups-update-ppds
744    
745     %files hpijs-ppds
746     %defattr(-,root,root)
747     %{_datadir}/ppd/HP/apollo*.ppd*
748     %{_datadir}/ppd/HP/hp-*.ppd*
749    
750    

  ViewVC Help
Powered by ViewVC 1.1.30