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