]>
Commit | Line | Data |
---|---|---|
7e2cd552 | 1 | # WARNING: when updating to 3.18.7+ beware of libImageProcessor binary blob (enigmatic "CDS feature" commonly causing problems); see Debian or Arch for patch to disable it |
b47796c2 JB |
2 | # TODO: |
3 | # - add desktop file for toolbox | |
4 | # - separate hpijs package? | |
75b06fcb ER |
5 | # |
6 | # Conditional build: | |
1f326d7b JB |
7 | %bcond_without dbus # dbus (com.hplip.StatusService) support |
8 | %bcond_without fax # fax support (cups backend+hplip components), depends on dbus | |
75b06fcb ER |
9 | |
10 | %if %{without dbus} | |
11 | %undefine with_fax | |
12 | %endif | |
13 | ||
ef3c86b9 JB |
14 | Summary: Hewlett-Packard Linux Imaging and Printing suite - printing and scanning using HP devices |
15 | Summary(pl.UTF-8): Narzędzia Hewlett-Packard Linux Imaging and Printing - drukowanie i skanowanie przy użyciu urządzeń HP | |
82c91e61 | 16 | Name: hplip |
c76f56bc | 17 | Version: 3.18.6 |
3ad1a8b6 | 18 | Release: 1 |
ef3c86b9 | 19 | License: BSD (hpijs), MIT (low-level scanning and printing code), GPL v2 (the rest) |
82c91e61 | 20 | Group: Applications/System |
ef3c86b9 | 21 | Source0: http://downloads.sourceforge.net/hplip/%{name}-%{version}.tar.gz |
c76f56bc | 22 | # Source0-md5: 3857eae76c49c00fa185628d4dce7d61 |
d7ec48cf | 23 | Patch0: %{name}-desktop.patch |
90e31170 | 24 | Patch1: unresolved.patch |
df75bd11 | 25 | Patch2: pld-distro.patch |
410dce58 | 26 | # note: this patch adds support to fixing only certain binary plugins. Newer plugin |
1f326d7b | 27 | # version have different md5 sums, different offsets, so handling new binaries need |
410dce58 | 28 | # to be added |
3452672b | 29 | Patch3: %{name}-binary-fixup.patch |
c76f56bc | 30 | Patch4: %{name}-destdir.patch |
3b2074bb | 31 | Patch5: %{name}-udev-rules.patch |
032c25ec | 32 | URL: http://hplipopensource.com/ |
82c91e61 | 33 | BuildRequires: autoconf |
9846f1df | 34 | BuildRequires: automake |
929e51ca | 35 | BuildRequires: cups-devel >= 1.2 |
c76f56bc | 36 | BuildRequires: cups-ppdc >= 1.2 |
75b06fcb | 37 | %{?with_dbus:BuildRequires: dbus-devel >= 1.0.0} |
cedbfcec | 38 | BuildRequires: libjpeg-devel |
82c91e61 | 39 | BuildRequires: libstdc++-devel |
7526f02a | 40 | BuildRequires: libtiff-devel |
9a437c7d | 41 | BuildRequires: libtool |
56236532 | 42 | BuildRequires: libusb-devel >= 1.0 |
52bf4fe0 AM |
43 | BuildRequires: net-snmp-devel |
44 | BuildRequires: openssl-devel | |
9a437c7d | 45 | BuildRequires: pkgconfig |
ef3c86b9 JB |
46 | BuildRequires: python-devel >= 2.2 |
47 | BuildRequires: python-modules >= 2.2 | |
6336a75a | 48 | BuildRequires: rpm-pythonprov |
db551280 | 49 | BuildRequires: sane-backends-devel |
9a437c7d | 50 | BuildRequires: sed >= 4.0 |
ef3c86b9 | 51 | Requires: %{name}-libs = %{version}-%{release} |
6336a75a | 52 | Requires: python-modules |
be5b6a34 | 53 | Obsoletes: hal-hplip |
32ec01ce | 54 | Obsoletes: hpijs |
9a437c7d | 55 | Obsoletes: hplip-daemon |
ecc19b7b | 56 | Obsoletes: python-hplip |
9846f1df | 57 | Conflicts: ghostscript <= 7.00-3 |
7a9b84c0 SS |
58 | # used in scan.py |
59 | Suggests: python-ReportLab >= 2.0 | |
82c91e61 | 60 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
61 | ||
52bf4fe0 AM |
62 | %define _ulibdir %{_prefix}/lib |
63 | ||
d3ca3e6e | 64 | %define cups_datadir %(cups-config --datadir 2>/dev/null || echo ERROR) |
ef3c86b9 | 65 | %define cups_mimedir %{cups_datadir}/mime |
d3ca3e6e | 66 | %define cups_ppddir %{cups_datadir}/model |
75b06fcb | 67 | %define cups_serverdir %(cups-config --serverbin 2>/dev/null || echo ERROR) |
ef3c86b9 JB |
68 | %define cups_backenddir %{cups_serverdir}/backend |
69 | %define cups_filterdir %{cups_serverdir}/filter | |
82c91e61 | 70 | |
71 | %description | |
52bf4fe0 AM |
72 | The Hewlett-Packard Linux Imaging and Printing project (HPLIP) |
73 | provides a unified single and multi-function connectivity solution for | |
74 | Linux. The goal of this project is to provide "radically simple" | |
75 | printing, faxing, scanning, photo-card access, and device management | |
76 | to the consumer and small business desktop Linux users. | |
77 | ||
ef3c86b9 JB |
78 | %description -l pl.UTF-8 |
79 | Projekt Hewlett-Packard Linux Imaging and Printing (HPLIP) udostępnia | |
80 | jednolite, wielofunkcyjne rozwiązanie dla Linuksa. Celem tego projektu | |
81 | jest zapewnienie "radykalnie prostego" drukowania, faksowania, | |
82 | skanowania, dostępu do kart fotograficznych oraz zarządzania | |
83 | urządzeniami końcowym użytkownikom Linuksa. | |
84 | ||
6336a75a | 85 | %package gui-tools |
86 | Summary: HPLIP GUI tools | |
ef3c86b9 | 87 | Summary(pl.UTF-8): Narzędzia HPLIP z graficznym interfejsem użytkownika |
6336a75a | 88 | Group: Applications/System |
ef3c86b9 | 89 | Requires: %{name} = %{version}-%{release} |
9a437c7d | 90 | Requires: python-PyQt4 |
6336a75a | 91 | |
92 | %description gui-tools | |
93 | HPLIP GUI tools. | |
94 | ||
95 | %description gui-tools -l pl.UTF-8 | |
ef3c86b9 | 96 | Narzędzia HPLIP z graficznym interfejsem użytkownika. |
6336a75a | 97 | |
52bf4fe0 AM |
98 | %package libs |
99 | Summary: HPLIP Libraries | |
7403e3f2 | 100 | Summary(pl.UTF-8): Biblioteki HPLIP |
52bf4fe0 AM |
101 | Group: Libraries |
102 | ||
103 | %description libs | |
104 | HPLIP Libraries. | |
105 | ||
0a7e9b17 | 106 | %description libs -l pl.UTF-8 |
52bf4fe0 AM |
107 | Biblioteki HPLIP. |
108 | ||
109 | %package sane | |
ef3c86b9 JB |
110 | Summary: HPLIP driver for SANE (scanner access) |
111 | Summary(pl.UTF-8): Sterownik HPLIP dla SANE (dostęp do skanera) | |
52bf4fe0 | 112 | Group: Libraries |
ecc19b7b | 113 | Requires(post): /bin/grep |
db551280 | 114 | Requires(postun): /bin/sed |
ef3c86b9 | 115 | Requires: %{name} = %{version}-%{release} |
52bf4fe0 AM |
116 | |
117 | %description sane | |
ef3c86b9 | 118 | HPLIP driver for SANE (provides scanner access). |
82c91e61 | 119 | |
0a7e9b17 | 120 | %description sane -l pl.UTF-8 |
ef3c86b9 | 121 | Sterownik HPLIP dla SANE (umożliwia dostęp do skanera). |
82c91e61 | 122 | |
123 | %package ppd | |
124 | Summary: PPD database for Hewlett Packard printers | |
7403e3f2 | 125 | Summary(pl.UTF-8): Baza danych PPD dla drukarek Hewlett Packard |
82c91e61 | 126 | Group: Applications/System |
127 | Requires: cups | |
22c50a88 | 128 | Requires: cups-filters >= 1.0.43 |
70d2c4fc | 129 | Obsoletes: hpijs-ppd |
f74d2bb3 ER |
130 | %if "%{_rpmversion}" >= "5" |
131 | BuildArch: noarch | |
132 | %endif | |
82c91e61 | 133 | |
134 | %description ppd | |
135 | PPD database for Hewlett Packard printers. | |
136 | ||
0a7e9b17 | 137 | %description ppd -l pl.UTF-8 |
82c91e61 | 138 | Baza danych PPD dla drukarek Hewlett Packard. |
139 | ||
52bf4fe0 AM |
140 | %package -n cups-backend-hp |
141 | Summary: HP backend for CUPS | |
7403e3f2 | 142 | Summary(pl.UTF-8): Backend HP dla CUPS-a |
52bf4fe0 | 143 | Group: Applications/Printing |
ecc19b7b | 144 | Requires: %{name} = %{version}-%{release} |
db551280 | 145 | Requires: cups |
22c50a88 | 146 | Requires: cups-filters >= 1.0.43 |
52bf4fe0 AM |
147 | |
148 | %description -n cups-backend-hp | |
ef3c86b9 | 149 | This package allows CUPS printing on HP printers. |
52bf4fe0 | 150 | |
0a7e9b17 JR |
151 | %description -n cups-backend-hp -l pl.UTF-8 |
152 | Ten pakiet umożliwia drukowanie z poziomu CUPS-a na drukarkach HP. | |
52bf4fe0 | 153 | |
70d2c4fc AF |
154 | %package -n cups-backend-hpfax |
155 | Summary: HP fax backend for CUPS | |
85a47db5 | 156 | Summary(pl.UTF-8): Backend HP fax dla CUPS-a |
70d2c4fc AF |
157 | Group: Applications/Printing |
158 | Requires: %{name} = %{version}-%{release} | |
159 | Requires: cups | |
160 | ||
161 | %description -n cups-backend-hpfax | |
162 | This package allow CUPS faxing using HP AiO devices. | |
163 | ||
08ab5eb1 JB |
164 | %description -n cups-backend-hpfax -l pl.UTF-8 |
165 | Ten pakiet umożliwia wysyłanie faksów z poziomu CUPS-a poprzez | |
166 | urządzenia HP AiO. | |
167 | ||
82c91e61 | 168 | %prep |
169 | %setup -q | |
ac6d2378 | 170 | %undos Makefile.am |
d7ec48cf | 171 | %patch0 -p1 |
90e31170 | 172 | %patch1 -p1 |
89260e38 | 173 | %patch2 -p1 |
d3ca3e6e | 174 | #%patch3 -p1 |
c76f56bc | 175 | %patch4 -p1 |
3b2074bb | 176 | %patch5 -p1 |
ef3c86b9 | 177 | |
215a0dee JB |
178 | %{__sed} -i -e '1s,^#!/usr/bin/env python$,#!%{__python},' *.py fax/filters/pstotiff prnt/filters/hpps |
179 | find base fax installer prnt scan ui ui4 -name '*.py' | xargs \ | |
180 | %{__sed} -i -e '1s,^#!/usr/bin/env python$,#!%{__python},' | |
ef3c86b9 | 181 | %{__sed} -i -e 's#test -d /usr/share/polkit-1#true#' configure.in |
82c91e61 | 182 | |
183 | %build | |
90e31170 AF |
184 | %{__libtoolize} |
185 | %{__aclocal} | |
186 | %{__autoconf} | |
187 | %{__automake} | |
82c91e61 | 188 | CXXFLAGS="%{rpmcflags} -fno-exceptions -fno-rtti" |
189 | %configure \ | |
75b06fcb ER |
190 | %{!?with_dbus:--disable-dbus-build} \ |
191 | %{!?with_fax:--disable-fax-build} \ | |
bae2b1ac AF |
192 | --enable-cups-drv-install \ |
193 | --enable-cups-ppd-install \ | |
bae2b1ac | 194 | --enable-foomatic-drv-install \ |
ef3c86b9 | 195 | --enable-foomatic-ppd-install \ |
d3ca3e6e | 196 | --disable-foomatic-rip-hplip-install \ |
ef3c86b9 JB |
197 | --enable-hpcups-install \ |
198 | --enable-hpijs-install \ | |
2b8087e6 PZ |
199 | --enable-policykit \ |
200 | --enable-pp-build \ | |
ef3c86b9 JB |
201 | --with-cupsbackenddir=%{cups_backenddir} \ |
202 | --with-cupsfilterdir=%{cups_filterdir} \ | |
203 | --with-hpppddir=%{cups_ppddir} \ | |
204 | --with-mimedir=%{_datadir}/cups/mime | |
7dc4c10e | 205 | %{__make} |
82c91e61 | 206 | |
207 | %install | |
208 | rm -rf $RPM_BUILD_ROOT | |
b39512d9 | 209 | install -d $RPM_BUILD_ROOT/var/lib/hp |
9846f1df | 210 | |
59e967ed | 211 | %{__make} -j1 install \ |
ef3c86b9 | 212 | DESTDIR=$RPM_BUILD_ROOT |
82c91e61 | 213 | |
b39512d9 JR |
214 | touch $RPM_BUILD_ROOT/var/lib/hp/hplip.state |
215 | ||
a69590f2 SS |
216 | for tool in align clean colorcal fab firmware info levels makecopies makeuri print \ |
217 | probe scan sendfax setup testpage timedate toolbox unload ; do | |
3f49b438 | 218 | ln -sf %{_datadir}/%{name}/$tool.py $RPM_BUILD_ROOT%{_bindir}/hp-$tool |
ecc19b7b JK |
219 | done |
220 | ||
22c50a88 JR |
221 | # use filter from cups-filters package, the perl script from hplip does not work |
222 | # correctly with cups 1.7.x, and is an unnecessary functional duplicate | |
223 | ln -s %{cups_filterdir}/foomatic-rip $RPM_BUILD_ROOT%{cups_filterdir}/foomatic-rip-hplip | |
d3ca3e6e | 224 | |
ef3c86b9 | 225 | # useless (nothing is going to link to installed libraries/modules) |
c76f56bc | 226 | %{__rm} $RPM_BUILD_ROOT{%{_libdir}/libhp*.{so,la},%{_libdir}/sane/*.{so,la},%{py_sitedir}/*.la} |
ef3c86b9 JB |
227 | # handled by post script |
228 | %{__rm} $RPM_BUILD_ROOT/etc/sane.d/dll.conf | |
d3ca3e6e JR |
229 | # junk |
230 | %{__rm} $RPM_BUILD_ROOT{%{_bindir}/hp-{uninstall,upgrade},%{_datadir}/hplip/{uninstall,upgrade}.py} | |
215a0dee | 231 | %{__rm} $RPM_BUILD_ROOT/usr/lib/systemd/system/hplip-printer@.service |
ecc19b7b | 232 | |
75b06fcb | 233 | %if %{without fax} |
215a0dee | 234 | %{__rm} $RPM_BUILD_ROOT%{cups_filterdir}/pstotiff |
75b06fcb ER |
235 | %endif |
236 | ||
be5b6a34 JR |
237 | # use udev, hal's dead |
238 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/hal | |
239 | ||
d3ca3e6e JR |
240 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} |
241 | ||
82c91e61 | 242 | %clean |
567746ed | 243 | rm -rf $RPM_BUILD_ROOT |
82c91e61 | 244 | |
9c5b35ac JB |
245 | %post libs -p /sbin/ldconfig |
246 | %postun libs -p /sbin/ldconfig | |
52bf4fe0 | 247 | |
ecc19b7b JK |
248 | %post sane |
249 | /bin/grep -q '^hpaio' /etc/sane.d/dll.conf || echo hpaio >> /etc/sane.d/dll.conf | |
250 | ||
db551280 | 251 | %postun sane |
ecc19b7b JK |
252 | if [ "$1" = "0" ]; then |
253 | /bin/sed -e'/^hpaio/d' -i /etc/sane.d/dll.conf || : | |
254 | fi | |
52bf4fe0 | 255 | |
82c91e61 | 256 | %files |
257 | %defattr(644,root,root,755) | |
9d6cf544 | 258 | %doc doc/* |
f0cb2a76 | 259 | %attr(755,root,root) %{_bindir}/hpijs |
6336a75a | 260 | %attr(755,root,root) %{_bindir}/hp-align |
d5438369 | 261 | %attr(755,root,root) %{_bindir}/hp-check |
6336a75a | 262 | %attr(755,root,root) %{_bindir}/hp-clean |
6336a75a | 263 | %attr(755,root,root) %{_bindir}/hp-colorcal |
b39512d9 | 264 | %attr(755,root,root) %{_bindir}/hp-config_usb_printer |
ef73b8d1 | 265 | %attr(755,root,root) %{_bindir}/hp-diagnose_plugin |
b39512d9 | 266 | %attr(755,root,root) %{_bindir}/hp-diagnose_queues |
6336a75a | 267 | %attr(755,root,root) %{_bindir}/hp-firmware |
d3ca3e6e | 268 | %attr(755,root,root) %{_bindir}/hp-doctor |
6336a75a | 269 | %attr(755,root,root) %{_bindir}/hp-info |
270 | %attr(755,root,root) %{_bindir}/hp-levels | |
d3ca3e6e | 271 | %attr(755,root,root) %{_bindir}/hp-logcapture |
6336a75a | 272 | %attr(755,root,root) %{_bindir}/hp-makecopies |
273 | %attr(755,root,root) %{_bindir}/hp-makeuri | |
032c25ec | 274 | %attr(755,root,root) %{_bindir}/hp-pkservice |
567746ed | 275 | %attr(755,root,root) %{_bindir}/hp-plugin |
6336a75a | 276 | %attr(755,root,root) %{_bindir}/hp-probe |
032c25ec | 277 | %attr(755,root,root) %{_bindir}/hp-query |
a69590f2 | 278 | %attr(755,root,root) %{_bindir}/hp-scan |
6336a75a | 279 | %attr(755,root,root) %{_bindir}/hp-sendfax |
280 | %attr(755,root,root) %{_bindir}/hp-setup | |
281 | %attr(755,root,root) %{_bindir}/hp-testpage | |
282 | %attr(755,root,root) %{_bindir}/hp-timedate | |
283 | %attr(755,root,root) %{_bindir}/hp-unload | |
32ec01ce | 284 | %dir %{_datadir}/hplip |
32ec01ce | 285 | %{_datadir}/hplip/__init__.py |
a2739875 AF |
286 | %dir %{_datadir}/hplip/copier |
287 | %{_datadir}/hplip/copier/*.py | |
840d7629 | 288 | %attr(755,root,root) %{_datadir}/hplip/align.py |
d5438369 | 289 | %attr(755,root,root) %{_datadir}/hplip/check.py |
ef73b8d1 | 290 | %attr(755,root,root) %{_datadir}/hplip/check-plugin.py |
840d7629 SS |
291 | %attr(755,root,root) %{_datadir}/hplip/clean.py |
292 | %attr(755,root,root) %{_datadir}/hplip/colorcal.py | |
b39512d9 | 293 | %attr(755,root,root) %{_datadir}/hplip/config_usb_printer.py |
ef73b8d1 | 294 | %attr(755,root,root) %{_datadir}/hplip/diagnose_plugin.py |
b39512d9 | 295 | %attr(755,root,root) %{_datadir}/hplip/diagnose_queues.py |
d3ca3e6e | 296 | %attr(755,root,root) %{_datadir}/hplip/doctor.py |
840d7629 | 297 | %attr(755,root,root) %{_datadir}/hplip/firmware.py |
032c25ec | 298 | %attr(755,root,root) %{_datadir}/hplip/hpdio.py |
d3ca3e6e | 299 | %attr(755,root,root) %{_datadir}/hplip/hplip_clean.sh |
1cca41bb | 300 | %attr(755,root,root) %{_datadir}/hplip/hpssd.py |
840d7629 SS |
301 | %attr(755,root,root) %{_datadir}/hplip/info.py |
302 | %attr(755,root,root) %{_datadir}/hplip/levels.py | |
d3ca3e6e | 303 | %attr(755,root,root) %{_datadir}/hplip/logcapture.py |
840d7629 | 304 | %attr(755,root,root) %{_datadir}/hplip/makecopies.py |
032c25ec AF |
305 | %attr(755,root,root) %{_datadir}/hplip/makeuri.py |
306 | %attr(755,root,root) %{_datadir}/hplip/pkservice.py | |
567746ed | 307 | %attr(755,root,root) %{_datadir}/hplip/plugin.py |
840d7629 | 308 | %attr(755,root,root) %{_datadir}/hplip/probe.py |
032c25ec | 309 | %attr(755,root,root) %{_datadir}/hplip/query.py |
ccb16d77 | 310 | %attr(755,root,root) %{_datadir}/hplip/scan.py |
840d7629 SS |
311 | %attr(755,root,root) %{_datadir}/hplip/sendfax.py |
312 | %attr(755,root,root) %{_datadir}/hplip/setup.py | |
313 | %attr(755,root,root) %{_datadir}/hplip/testpage.py | |
314 | %attr(755,root,root) %{_datadir}/hplip/timedate.py | |
315 | %attr(755,root,root) %{_datadir}/hplip/unload.py | |
32ec01ce | 316 | %{_datadir}/hplip/base |
d8254f98 SS |
317 | %dir %{_datadir}/hplip/data |
318 | %{_datadir}/hplip/data/ldl | |
319 | %{_datadir}/hplip/data/localization | |
320 | %{_datadir}/hplip/data/models | |
321 | %{_datadir}/hplip/data/pcl | |
322 | %{_datadir}/hplip/data/ps | |
32ec01ce | 323 | # fax subpackage ? |
75b06fcb | 324 | %if %{with fax} |
32ec01ce | 325 | %{_datadir}/hplip/fax |
75b06fcb | 326 | %endif |
591ac00e | 327 | %{_datadir}/hplip/installer |
32ec01ce | 328 | %{_datadir}/hplip/pcard |
32ec01ce AF |
329 | %{_datadir}/hplip/prnt |
330 | %{_datadir}/hplip/scan | |
3ad1a8b6 AM |
331 | %attr(755,root,root) %{_datadir}/hplip/dat2drv |
332 | %attr(755,root,root) %{_datadir}/hplip/locatedriver | |
82aef552 SS |
333 | %attr(755,root,root) %{py_sitedir}/cupsext.so |
334 | %attr(755,root,root) %{py_sitedir}/hpmudext.so | |
335 | %attr(755,root,root) %{py_sitedir}/pcardext.so | |
336 | %attr(755,root,root) %{py_sitedir}/scanext.so | |
8c126803 | 337 | %dir %{_sysconfdir}/hp |
ef3c86b9 | 338 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hp/hplip.conf |
d3ca3e6e | 339 | /lib/udev/rules.d/56-hpmud.rules |
ef3c86b9 JB |
340 | /etc/dbus-1/system.d/com.hp.hplip.conf |
341 | %{_datadir}/dbus-1/system-services/com.hp.hplip.service | |
342 | %{_datadir}/polkit-1/actions/com.hp.hplip.policy | |
52bf4fe0 | 343 | |
6336a75a | 344 | %files gui-tools |
345 | %defattr(644,root,root,755) | |
032c25ec | 346 | %attr(755,root,root) %{_bindir}/hp-devicesettings |
6336a75a | 347 | %attr(755,root,root) %{_bindir}/hp-fab |
032c25ec AF |
348 | %attr(755,root,root) %{_bindir}/hp-faxsetup |
349 | %attr(755,root,root) %{_bindir}/hp-linefeedcal | |
350 | %attr(755,root,root) %{_bindir}/hp-pqdiag | |
d8254f98 | 351 | %attr(755,root,root) %{_bindir}/hp-print |
032c25ec | 352 | %attr(755,root,root) %{_bindir}/hp-printsettings |
d5438369 | 353 | %attr(755,root,root) %{_bindir}/hp-systray |
032c25ec AF |
354 | %attr(755,root,root) %{_bindir}/hp-toolbox |
355 | %attr(755,root,root) %{_bindir}/hp-wificonfig | |
356 | %attr(755,root,root) %{_datadir}/hplip/devicesettings.py | |
357 | %attr(755,root,root) %{_datadir}/hplip/wificonfig.py | |
840d7629 | 358 | %attr(755,root,root) %{_datadir}/hplip/fab.py |
032c25ec AF |
359 | %attr(755,root,root) %{_datadir}/hplip/faxsetup.py |
360 | %attr(755,root,root) %{_datadir}/hplip/linefeedcal.py | |
361 | %attr(755,root,root) %{_datadir}/hplip/pqdiag.py | |
d8254f98 | 362 | %attr(755,root,root) %{_datadir}/hplip/print.py |
032c25ec | 363 | %attr(755,root,root) %{_datadir}/hplip/printsettings.py |
d5438369 | 364 | %attr(755,root,root) %{_datadir}/hplip/systray.py |
032c25ec | 365 | %attr(755,root,root) %{_datadir}/hplip/toolbox.py |
032c25ec | 366 | %{_datadir}/hplip/ui4 |
d8254f98 | 367 | %{_datadir}/hplip/data/images |
ef3c86b9 | 368 | %{_sysconfdir}/xdg/autostart/hplip-systray.desktop |
d5438369 | 369 | %{_desktopdir}/hplip.desktop |
ef3c86b9 JB |
370 | %dir /var/lib/hp |
371 | %verify(not md5 mtime size) /var/lib/hp/hplip.state | |
6336a75a | 372 | |
52bf4fe0 AM |
373 | %files libs |
374 | %defattr(644,root,root,755) | |
215a0dee JB |
375 | %attr(755,root,root) %{_libdir}/libhpdiscovery.so.*.*.* |
376 | %attr(755,root,root) %ghost %{_libdir}/libhpdiscovery.so.0 | |
ef3c86b9 JB |
377 | %attr(755,root,root) %{_libdir}/libhpip.so.*.*.* |
378 | %attr(755,root,root) %ghost %{_libdir}/libhpip.so.0 | |
215a0dee JB |
379 | %attr(755,root,root) %{_libdir}/libhpipp.so.*.*.* |
380 | %attr(755,root,root) %ghost %{_libdir}/libhpipp.so.0 | |
ef3c86b9 JB |
381 | %attr(755,root,root) %{_libdir}/libhpmud.so.*.*.* |
382 | %attr(755,root,root) %ghost %{_libdir}/libhpmud.so.0 | |
52bf4fe0 AM |
383 | |
384 | %files sane | |
385 | %defattr(644,root,root,755) | |
ef3c86b9 JB |
386 | %doc scan/sane/hpaio.desc |
387 | %attr(755,root,root) %{_libdir}/sane/libsane-hpaio.so.*.*.* | |
388 | %attr(755,root,root) %{_libdir}/sane/libsane-hpaio.so.1 | |
52bf4fe0 | 389 | |
82c91e61 | 390 | %files ppd |
391 | %defattr(644,root,root,755) | |
75b06fcb | 392 | %if %{with fax} |
ef3c86b9 | 393 | %{cups_ppddir}/HP-Fax*.ppd.gz |
75b06fcb | 394 | %endif |
ef3c86b9 JB |
395 | %{cups_ppddir}/apollo-*.ppd.gz |
396 | %{cups_ppddir}/hp-*.ppd.gz | |
52bf4fe0 AM |
397 | |
398 | %files -n cups-backend-hp | |
399 | %defattr(644,root,root,755) | |
ef3c86b9 JB |
400 | %attr(755,root,root) %{cups_backenddir}/hp |
401 | %attr(755,root,root) %{cups_filterdir}/foomatic-rip-hplip | |
402 | %attr(755,root,root) %{cups_filterdir}/hpcups | |
ef3c86b9 JB |
403 | %attr(755,root,root) %{cups_filterdir}/hpps |
404 | %{cups_datadir}/drv/hp | |
d5438369 | 405 | |
75b06fcb | 406 | %if %{with fax} |
70d2c4fc AF |
407 | %files -n cups-backend-hpfax |
408 | %defattr(644,root,root,755) | |
ef3c86b9 JB |
409 | %attr(755,root,root) %{cups_backenddir}/hpfax |
410 | %attr(755,root,root) %{cups_filterdir}/hpcupsfax | |
411 | %attr(755,root,root) %{cups_filterdir}/pstotiff | |
412 | %{cups_mimedir}/pstotiff.types | |
413 | %{cups_mimedir}/pstotiff.convs | |
75b06fcb | 414 | %endif |