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