]>
Commit | Line | Data |
---|---|---|
52bf4fe0 | 1 | Summary: Hewlett-Packard Linux Imaging and Printing Project |
7403e3f2 | 2 | Summary(pl.UTF-8): Serwer dla drukarek HP Inkjet |
82c91e61 | 3 | Name: hplip |
69df3261 | 4 | Version: 3.9.12 |
26837090 | 5 | Release: 2 |
95b8dde5 | 6 | License: BSD, GPL v2 and MIT |
82c91e61 | 7 | Group: Applications/System |
a67f874b | 8 | Source0: http://dl.sourceforge.net/hplip/%{name}-%{version}.tar.gz |
69df3261 | 9 | # Source0-md5: 2b0906b4a57b437988829557ca62adfd |
032c25ec | 10 | URL: http://hplipopensource.com/ |
82c91e61 | 11 | BuildRequires: autoconf |
9846f1df | 12 | BuildRequires: automake |
82aef552 | 13 | BuildRequires: cups-devel |
a4a662e6 | 14 | BuildRequires: dbus-devel |
cedbfcec | 15 | BuildRequires: libjpeg-devel |
82c91e61 | 16 | BuildRequires: libstdc++-devel |
e5c70de6 | 17 | BuildRequires: libusb-devel |
a4a662e6 | 18 | BuildRequires: libusb-compat-devel |
52bf4fe0 AM |
19 | BuildRequires: net-snmp-devel |
20 | BuildRequires: openssl-devel | |
21 | BuildRequires: python-devel | |
2a260930 | 22 | BuildRequires: python-modules |
a4a662e6 | 23 | BuildRequires: pkgconfig |
6336a75a | 24 | BuildRequires: rpm-pythonprov |
db551280 | 25 | BuildRequires: sane-backends-devel |
6336a75a | 26 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
27 | Requires: python-modules | |
1cca41bb | 28 | Obsoletes: hplip-daemon |
32ec01ce | 29 | Obsoletes: hpijs |
ecc19b7b | 30 | Obsoletes: python-hplip |
9846f1df | 31 | Conflicts: ghostscript <= 7.00-3 |
7a9b84c0 SS |
32 | # used in scan.py |
33 | Suggests: python-ReportLab >= 2.0 | |
82c91e61 | 34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
52bf4fe0 AM |
36 | %define _ulibdir %{_prefix}/lib |
37 | ||
82c91e61 | 38 | %define _cupsdir %(cups-config --datadir) |
39 | %define _cupsppddir %{_cupsdir}/model | |
82c91e61 | 40 | |
41 | %description | |
52bf4fe0 AM |
42 | The Hewlett-Packard Linux Imaging and Printing project (HPLIP) |
43 | provides a unified single and multi-function connectivity solution for | |
44 | Linux. The goal of this project is to provide "radically simple" | |
45 | printing, faxing, scanning, photo-card access, and device management | |
46 | to the consumer and small business desktop Linux users. | |
47 | ||
6336a75a | 48 | %package gui-tools |
49 | Summary: HPLIP GUI tools | |
50 | Summary(pl.UTF-8): Narzędzia graficzne HPLIP | |
51 | Group: Applications/System | |
032c25ec | 52 | Requires: python-PyQt4 |
6336a75a | 53 | Requires: %{name} = %{epoch}:%{version}-%{release} |
54 | ||
55 | %description gui-tools | |
56 | HPLIP GUI tools. | |
57 | ||
58 | %description gui-tools -l pl.UTF-8 | |
59 | Narzędzia graficzne HPLIP. | |
60 | ||
52bf4fe0 AM |
61 | %package libs |
62 | Summary: HPLIP Libraries | |
7403e3f2 | 63 | Summary(pl.UTF-8): Biblioteki HPLIP |
52bf4fe0 AM |
64 | Group: Libraries |
65 | ||
66 | %description libs | |
67 | HPLIP Libraries. | |
68 | ||
0a7e9b17 | 69 | %description libs -l pl.UTF-8 |
52bf4fe0 AM |
70 | Biblioteki HPLIP. |
71 | ||
72 | %package sane | |
73 | Summary: HPLIP SANE Libraries | |
7403e3f2 | 74 | Summary(pl.UTF-8): Biblioteki HPLIP SANE |
52bf4fe0 | 75 | Group: Libraries |
ecc19b7b | 76 | Requires(post): /bin/grep |
db551280 | 77 | Requires(postun): /bin/sed |
6336a75a | 78 | Requires: %{name} = %{epoch}:%{version}-%{release} |
52bf4fe0 AM |
79 | |
80 | %description sane | |
81 | HPLIP SANE Libraries. | |
82c91e61 | 82 | |
0a7e9b17 | 83 | %description sane -l pl.UTF-8 |
52bf4fe0 | 84 | Biblioteki HPLIP SANE. |
82c91e61 | 85 | |
86 | %package ppd | |
87 | Summary: PPD database for Hewlett Packard printers | |
7403e3f2 | 88 | Summary(pl.UTF-8): Baza danych PPD dla drukarek Hewlett Packard |
82c91e61 | 89 | Group: Applications/System |
90 | Requires: cups | |
032c25ec | 91 | Requires: cups-filter-foomatic |
70d2c4fc | 92 | Obsoletes: hpijs-ppd |
82c91e61 | 93 | |
94 | %description ppd | |
95 | PPD database for Hewlett Packard printers. | |
96 | ||
0a7e9b17 | 97 | %description ppd -l pl.UTF-8 |
82c91e61 | 98 | Baza danych PPD dla drukarek Hewlett Packard. |
99 | ||
52bf4fe0 AM |
100 | %package -n cups-backend-hp |
101 | Summary: HP backend for CUPS | |
7403e3f2 | 102 | Summary(pl.UTF-8): Backend HP dla CUPS-a |
52bf4fe0 | 103 | Group: Applications/Printing |
ecc19b7b | 104 | Requires: %{name} = %{version}-%{release} |
db551280 | 105 | Requires: cups |
52bf4fe0 AM |
106 | |
107 | %description -n cups-backend-hp | |
108 | This package allow CUPS printing on HP printers. | |
109 | ||
0a7e9b17 JR |
110 | %description -n cups-backend-hp -l pl.UTF-8 |
111 | Ten pakiet umożliwia drukowanie z poziomu CUPS-a na drukarkach HP. | |
52bf4fe0 | 112 | |
70d2c4fc AF |
113 | %package -n cups-backend-hpfax |
114 | Summary: HP fax backend for CUPS | |
115 | Summary(pl): Backend HP fax dla CUPS-a | |
116 | Group: Applications/Printing | |
117 | Requires: %{name} = %{version}-%{release} | |
118 | Requires: cups | |
119 | ||
120 | %description -n cups-backend-hpfax | |
121 | This package allow CUPS faxing using HP AiO devices. | |
122 | ||
08ab5eb1 JB |
123 | %description -n cups-backend-hpfax -l pl.UTF-8 |
124 | Ten pakiet umożliwia wysyłanie faksów z poziomu CUPS-a poprzez | |
125 | urządzenia HP AiO. | |
126 | ||
032c25ec AF |
127 | %package -n hal-hplip |
128 | Summary: HAL device information for HPLIP | |
129 | Group: Applications/Printing | |
130 | Requires: %{name} = %{version}-%{release} | |
131 | ||
132 | %description -n hal-hplip | |
133 | HAL device information for HPLIP supported devices | |
134 | ||
82c91e61 | 135 | %prep |
136 | %setup -q | |
ecc19b7b | 137 | sed -i -e's,^#!/usr/bin/env python$,#!/usr/bin/python,' *.py |
82c91e61 | 138 | |
139 | %build | |
52bf4fe0 AM |
140 | install /usr/share/automake/config.* . |
141 | install /usr/share/automake/config.* prnt | |
82c91e61 | 142 | CXXFLAGS="%{rpmcflags} -fno-exceptions -fno-rtti" |
143 | %configure \ | |
bae2b1ac AF |
144 | --enable-hpcups-install \ |
145 | --enable-cups-drv-install \ | |
146 | --enable-cups-ppd-install \ | |
147 | --enable-hpijs-install \ | |
032c25ec | 148 | --enable-foomatic-ppd-install \ |
bae2b1ac | 149 | --enable-foomatic-drv-install \ |
032c25ec | 150 | --enable-foomatic-rip-hplip-install \ |
bae2b1ac | 151 | --enable-pp-build |
ecc19b7b | 152 | %{__make} \ |
ecc19b7b | 153 | hpppddir=%{_cupsppddir} |
82c91e61 | 154 | |
155 | %install | |
156 | rm -rf $RPM_BUILD_ROOT | |
9846f1df | 157 | |
567746ed | 158 | install -d $RPM_BUILD_ROOT%{_cupsppddir} \ |
82c91e61 | 159 | $RPM_BUILD_ROOT$(cups-config --serverbin)/filter |
82c91e61 | 160 | |
161 | %{__make} install \ | |
162 | DESTDIR=$RPM_BUILD_ROOT \ | |
ecc19b7b JK |
163 | rpm_install=yes \ |
164 | hpppddir=%{_cupsppddir} | |
82c91e61 | 165 | |
a69590f2 SS |
166 | for tool in align clean colorcal fab firmware info levels makecopies makeuri print \ |
167 | probe scan sendfax setup testpage timedate toolbox unload ; do | |
3f49b438 | 168 | ln -sf %{_datadir}/%{name}/$tool.py $RPM_BUILD_ROOT%{_bindir}/hp-$tool |
ecc19b7b JK |
169 | done |
170 | ||
db551280 | 171 | rm -rf $RPM_BUILD_ROOT{%{_bindir}/foomatic-rip,%{_libdir}/*.la,%{_docdir}/hpijs*} \ |
6336a75a | 172 | $RPM_BUILD_ROOT{%{_datadir}/%{name}/hplip{,.sh},%{_sysconfdir}/sane.d/*} \ |
173 | $RPM_BUILD_ROOT/etc/init.d | |
d5438369 | 174 | rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/{install.py,hplip-install} |
ccb16d77 | 175 | rm -f $RPM_BUILD_ROOT%{_libdir}/sane/*.la |
9c5b35ac | 176 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.la |
bae2b1ac | 177 | rm $RPM_BUILD_ROOT%{_libdir}/libhp{ip,mud}.so |
ecc19b7b | 178 | |
82c91e61 | 179 | %clean |
567746ed | 180 | rm -rf $RPM_BUILD_ROOT |
82c91e61 | 181 | |
9c5b35ac JB |
182 | %post libs -p /sbin/ldconfig |
183 | %postun libs -p /sbin/ldconfig | |
52bf4fe0 | 184 | |
ecc19b7b JK |
185 | %post sane |
186 | /bin/grep -q '^hpaio' /etc/sane.d/dll.conf || echo hpaio >> /etc/sane.d/dll.conf | |
187 | ||
db551280 | 188 | %postun sane |
ecc19b7b JK |
189 | if [ "$1" = "0" ]; then |
190 | /bin/sed -e'/^hpaio/d' -i /etc/sane.d/dll.conf || : | |
191 | fi | |
52bf4fe0 | 192 | |
82c91e61 | 193 | %files |
194 | %defattr(644,root,root,755) | |
9d6cf544 | 195 | %doc doc/* |
ccb16d77 | 196 | %{_sysconfdir}/udev/rules.d/* |
f0cb2a76 | 197 | %attr(755,root,root) %{_bindir}/hpijs |
6336a75a | 198 | %attr(755,root,root) %{_bindir}/hp-align |
d5438369 | 199 | %attr(755,root,root) %{_bindir}/hp-check |
6336a75a | 200 | %attr(755,root,root) %{_bindir}/hp-clean |
6336a75a | 201 | %attr(755,root,root) %{_bindir}/hp-colorcal |
202 | %attr(755,root,root) %{_bindir}/hp-firmware | |
203 | %attr(755,root,root) %{_bindir}/hp-info | |
204 | %attr(755,root,root) %{_bindir}/hp-levels | |
205 | %attr(755,root,root) %{_bindir}/hp-makecopies | |
206 | %attr(755,root,root) %{_bindir}/hp-makeuri | |
567746ed | 207 | %attr(755,root,root) %{_bindir}/hp-mkuri |
032c25ec | 208 | %attr(755,root,root) %{_bindir}/hp-pkservice |
567746ed | 209 | %attr(755,root,root) %{_bindir}/hp-plugin |
6336a75a | 210 | %attr(755,root,root) %{_bindir}/hp-probe |
032c25ec | 211 | %attr(755,root,root) %{_bindir}/hp-query |
a69590f2 | 212 | %attr(755,root,root) %{_bindir}/hp-scan |
6336a75a | 213 | %attr(755,root,root) %{_bindir}/hp-sendfax |
214 | %attr(755,root,root) %{_bindir}/hp-setup | |
215 | %attr(755,root,root) %{_bindir}/hp-testpage | |
216 | %attr(755,root,root) %{_bindir}/hp-timedate | |
217 | %attr(755,root,root) %{_bindir}/hp-unload | |
32ec01ce AF |
218 | %dir %{_datadir}/hplip |
219 | # info about GPL v2 for some files | |
840d7629 | 220 | #%{_datadir}/hplip/COPYING |
32ec01ce AF |
221 | # initscript for hplip helpers |
222 | #%{_datadir}/hplip/hplip | |
223 | #%{_datadir}/hplip/hplip.sh | |
224 | %{_datadir}/hplip/__init__.py | |
a2739875 AF |
225 | %dir %{_datadir}/hplip/copier |
226 | %{_datadir}/hplip/copier/*.py | |
840d7629 | 227 | %attr(755,root,root) %{_datadir}/hplip/align.py |
d5438369 | 228 | %attr(755,root,root) %{_datadir}/hplip/check.py |
840d7629 SS |
229 | %attr(755,root,root) %{_datadir}/hplip/clean.py |
230 | %attr(755,root,root) %{_datadir}/hplip/colorcal.py | |
231 | %attr(755,root,root) %{_datadir}/hplip/firmware.py | |
032c25ec | 232 | %attr(755,root,root) %{_datadir}/hplip/hpdio.py |
1cca41bb | 233 | %attr(755,root,root) %{_datadir}/hplip/hpssd.py |
840d7629 SS |
234 | %attr(755,root,root) %{_datadir}/hplip/info.py |
235 | %attr(755,root,root) %{_datadir}/hplip/levels.py | |
840d7629 | 236 | %attr(755,root,root) %{_datadir}/hplip/makecopies.py |
032c25ec AF |
237 | %attr(755,root,root) %{_datadir}/hplip/makeuri.py |
238 | %attr(755,root,root) %{_datadir}/hplip/pkservice.py | |
567746ed | 239 | %attr(755,root,root) %{_datadir}/hplip/plugin.py |
840d7629 | 240 | %attr(755,root,root) %{_datadir}/hplip/probe.py |
032c25ec | 241 | %attr(755,root,root) %{_datadir}/hplip/query.py |
ccb16d77 | 242 | %attr(755,root,root) %{_datadir}/hplip/scan.py |
840d7629 SS |
243 | %attr(755,root,root) %{_datadir}/hplip/sendfax.py |
244 | %attr(755,root,root) %{_datadir}/hplip/setup.py | |
245 | %attr(755,root,root) %{_datadir}/hplip/testpage.py | |
246 | %attr(755,root,root) %{_datadir}/hplip/timedate.py | |
247 | %attr(755,root,root) %{_datadir}/hplip/unload.py | |
32ec01ce | 248 | %{_datadir}/hplip/base |
d8254f98 SS |
249 | %dir %{_datadir}/hplip/data |
250 | %{_datadir}/hplip/data/ldl | |
251 | %{_datadir}/hplip/data/localization | |
252 | %{_datadir}/hplip/data/models | |
253 | %{_datadir}/hplip/data/pcl | |
254 | %{_datadir}/hplip/data/ps | |
32ec01ce AF |
255 | # fax subpackage ? |
256 | %{_datadir}/hplip/fax | |
591ac00e | 257 | %{_datadir}/hplip/installer |
32ec01ce | 258 | %{_datadir}/hplip/pcard |
32ec01ce AF |
259 | %{_datadir}/hplip/prnt |
260 | %{_datadir}/hplip/scan | |
82aef552 SS |
261 | %attr(755,root,root) %{py_sitedir}/cupsext.so |
262 | %attr(755,root,root) %{py_sitedir}/hpmudext.so | |
263 | %attr(755,root,root) %{py_sitedir}/pcardext.so | |
264 | %attr(755,root,root) %{py_sitedir}/scanext.so | |
8c126803 | 265 | %dir %{_sysconfdir}/hp |
ecc19b7b | 266 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hp/* |
52bf4fe0 | 267 | |
6336a75a | 268 | %files gui-tools |
269 | %defattr(644,root,root,755) | |
02536a73 | 270 | %{_sysconfdir}/xdg/autostart/hplip-systray.desktop |
032c25ec | 271 | %attr(755,root,root) %{_bindir}/hp-devicesettings |
6336a75a | 272 | %attr(755,root,root) %{_bindir}/hp-fab |
032c25ec AF |
273 | %attr(755,root,root) %{_bindir}/hp-faxsetup |
274 | %attr(755,root,root) %{_bindir}/hp-linefeedcal | |
275 | %attr(755,root,root) %{_bindir}/hp-pqdiag | |
d8254f98 | 276 | %attr(755,root,root) %{_bindir}/hp-print |
032c25ec | 277 | %attr(755,root,root) %{_bindir}/hp-printsettings |
d5438369 | 278 | %attr(755,root,root) %{_bindir}/hp-systray |
032c25ec AF |
279 | %attr(755,root,root) %{_bindir}/hp-toolbox |
280 | %attr(755,root,root) %{_bindir}/hp-wificonfig | |
281 | %attr(755,root,root) %{_datadir}/hplip/devicesettings.py | |
282 | %attr(755,root,root) %{_datadir}/hplip/wificonfig.py | |
840d7629 | 283 | %attr(755,root,root) %{_datadir}/hplip/fab.py |
032c25ec AF |
284 | %attr(755,root,root) %{_datadir}/hplip/faxsetup.py |
285 | %attr(755,root,root) %{_datadir}/hplip/linefeedcal.py | |
286 | %attr(755,root,root) %{_datadir}/hplip/pqdiag.py | |
d8254f98 | 287 | %attr(755,root,root) %{_datadir}/hplip/print.py |
032c25ec | 288 | %attr(755,root,root) %{_datadir}/hplip/printsettings.py |
d5438369 | 289 | %attr(755,root,root) %{_datadir}/hplip/systray.py |
032c25ec AF |
290 | %attr(755,root,root) %{_datadir}/hplip/toolbox.py |
291 | #%{_datadir}/hplip/plugins | |
292 | %{_datadir}/hplip/ui4 | |
d8254f98 | 293 | %{_datadir}/hplip/data/images |
d5438369 | 294 | %{_desktopdir}/hplip.desktop |
bae2b1ac AF |
295 | %dir %{_sharedstatedir}/hp |
296 | %verify(not md5 mtime size) %{_sharedstatedir}/hp/hplip.state | |
6336a75a | 297 | |
52bf4fe0 AM |
298 | %files libs |
299 | %defattr(644,root,root,755) | |
300 | %attr(755,root,root) %{_libdir}/libhpip*.so.* | |
ccb16d77 | 301 | %attr(755,root,root) %{_libdir}/libhpmud*.so.* |
52bf4fe0 AM |
302 | |
303 | %files sane | |
304 | %defattr(644,root,root,755) | |
ccb16d77 | 305 | %attr(755,root,root) %{_libdir}/sane/libsane*.so.* |
bae2b1ac | 306 | %attr(755,root,root) %{_libdir}/sane/libsane*.so |
52bf4fe0 | 307 | |
82c91e61 | 308 | %files ppd |
309 | %defattr(644,root,root,755) | |
310 | %{_cupsppddir}/* | |
5e1f0362 | 311 | %{_datadir}/cups/drv/hp |
52bf4fe0 AM |
312 | |
313 | %files -n cups-backend-hp | |
314 | %defattr(644,root,root,755) | |
315 | %attr(755,root,root) %{_ulibdir}/cups/backend/hp | |
d5438369 | 316 | %attr(755,root,root) %{_ulibdir}/cups/filter/foomatic-rip-hplip |
032c25ec | 317 | %attr(755,root,root) %{_ulibdir}/cups/filter/hpcups |
d5438369 | 318 | %attr(755,root,root) %{_ulibdir}/cups/filter/hplipjs |
032c25ec | 319 | %attr(755,root,root) %{_ulibdir}/cups/filter/hpcac |
bae2b1ac | 320 | %{_cupsdir}/drv/hp |
d5438369 | 321 | |
70d2c4fc AF |
322 | %files -n cups-backend-hpfax |
323 | %defattr(644,root,root,755) | |
324 | %attr(755,root,root) %{_ulibdir}/cups/backend/hpfax | |
032c25ec AF |
325 | %attr(755,root,root) %{_ulibdir}/cups/filter/hpcupsfax |
326 | ||
327 | %files -n hal-hplip | |
328 | %defattr(644,root,root,755) | |
329 | %{_datadir}/hal/fdi/preprobe/10osvendor/20-hplip-devices.fdi |