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