[521] | 1 | # %define python_platlib %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)') |
---|
| 2 | Summary: HP printer drivers & utilities for Linux |
---|
| 3 | Summary(ja): HP プリンタ用の Linux 向けドライバとユーティリティ |
---|
| 4 | Name: hplip |
---|
[4119] | 5 | Version: 3.11.5 |
---|
[5849] | 6 | Release: 5%{?_dist_release} |
---|
[521] | 7 | Source0: %{name}-%{version}.tar.gz |
---|
| 8 | Source1: hplip.desktop.vine |
---|
[4127] | 9 | Patch0: hplip-3.11.5-gksu.patch |
---|
| 10 | Patch1: hplip-udev-rules.patch |
---|
[521] | 11 | License: GPL/MIT |
---|
| 12 | Group: Applications/Publishing |
---|
| 13 | URL: http://hplipopensource.com/hplip-web/index.html |
---|
| 14 | |
---|
[4119] | 15 | Requires: cups |
---|
| 16 | Requires: dbus |
---|
| 17 | Requires: foomatic |
---|
| 18 | Requires: ghostscript |
---|
| 19 | Requires: libjpeg |
---|
| 20 | Requires: openssl |
---|
| 21 | Requires: python-imaging |
---|
| 22 | Requires: dbus-python |
---|
[521] | 23 | Requires: %{name}-libs = %{version}-%{release} |
---|
| 24 | Requires: gksu |
---|
[4119] | 25 | BuildRequires: cups-devel |
---|
[521] | 26 | BuildRequires: dbus-devel |
---|
[4119] | 27 | BuildRequires: libusb-devel |
---|
| 28 | BuildRequires: libjpeg-devel |
---|
| 29 | BuildRequires: net-snmp-devel |
---|
| 30 | BuildRequires: openssl-devel |
---|
| 31 | BuildRequires: python-devel >= 2.3 |
---|
| 32 | BuildRequires: sane-devel |
---|
| 33 | BuildRequires: PyQt4 |
---|
| 34 | # to force to use PyQt4 |
---|
| 35 | BuildConflicts: PyQt |
---|
[4158] | 36 | |
---|
| 37 | Provides: hpijs |
---|
| 38 | Obsoletes: hpijs < 3.10 |
---|
| 39 | |
---|
[521] | 40 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 41 | |
---|
| 42 | Packager: kazutaka |
---|
| 43 | |
---|
| 44 | # When below files are included in %files section, |
---|
| 45 | # find-requires shows strange error. |
---|
| 46 | # %{_datadir}/hplip/base/kirbybase.py and pexpect.py |
---|
| 47 | # So, below option is added to aboid this. |
---|
[4119] | 48 | #AutoReq: False |
---|
[521] | 49 | |
---|
| 50 | %description |
---|
| 51 | HPLIP is an HP developed solution for printing, scanning, and |
---|
| 52 | faxing with HP inkjet and laser based printers in Linux. |
---|
| 53 | |
---|
| 54 | The HPLIP project provides printing support for 1,151 printer |
---|
| 55 | models, including Deskjet, Officejet, Photosmart, PSC (Print Scan |
---|
| 56 | Copy), Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. |
---|
| 57 | |
---|
| 58 | %description -l ja |
---|
| 59 | HPLIP は HP が開発した HP インクジェット及びレーザープリンタ向けの、 |
---|
| 60 | プリンタ/スキャナ/FAX 機能を Linux 上で利用する為のソリューション |
---|
| 61 | です。 |
---|
| 62 | |
---|
| 63 | HPLIP プロジェクトでは1,151種類のプリンタをサポートしています。 |
---|
| 64 | これには Deskjet、 Officejet、 Photosmart、 PSC (Print Scan Copy)、 |
---|
| 65 | Business Inkjet、 LaserJet、 Edgeline MFP 及び LaserJet MFP が |
---|
| 66 | 含まれます。 |
---|
| 67 | |
---|
| 68 | #--------------------------------------------------------------------- |
---|
| 69 | |
---|
| 70 | %package libs |
---|
| 71 | Summary: HPLIP libraries |
---|
| 72 | Summary(ja): HPLIP ライブラリ |
---|
| 73 | Group: System Environment/Libraries |
---|
| 74 | License: GPL/MIT |
---|
| 75 | |
---|
| 76 | %description libs |
---|
| 77 | Libraries needed by HPLIP. |
---|
| 78 | |
---|
| 79 | %description libs -l ja |
---|
| 80 | HPLIP 用のライブラリです。 |
---|
| 81 | |
---|
| 82 | #--------------------------------------------------------------------- |
---|
| 83 | |
---|
| 84 | %package gui |
---|
| 85 | Summary: HPLIP graphical tools |
---|
| 86 | Summary(ja): HPLIP 用 GUI ツール |
---|
| 87 | Group: Applications/System |
---|
| 88 | License: GPL/MIT |
---|
[4119] | 89 | Requires: %{name} = %{version}-%{release} |
---|
| 90 | Requires: PyQt4 |
---|
| 91 | Requires: notify-python |
---|
[521] | 92 | |
---|
| 93 | %description gui |
---|
| 94 | HP Device manager (toolbox) is a graphical utility including |
---|
| 95 | maintenance tools, supplies levels, and status information. |
---|
| 96 | |
---|
| 97 | %description gui -l ja |
---|
| 98 | HP デバイスマネージャ (toolbox) は、各種設定やインクや紙の残量確 |
---|
| 99 | 認、ステータス情報の確認が行える HPLIP 用の GUI ユーティリティです。 |
---|
| 100 | |
---|
| 101 | #--------------------------------------------------------------------- |
---|
| 102 | |
---|
| 103 | %package -n libsane-hpaio |
---|
| 104 | Summary: SANE driver for scanners in HP's multi-function devices |
---|
| 105 | Summary(ja): HP 複合機のスキャナ用 SANE ドライバ |
---|
| 106 | Group: System Environment/Libraries |
---|
| 107 | License: GPL/MIT |
---|
[4119] | 108 | Requires: %{name}-libs = %{version}-%{release} |
---|
| 109 | Requires: sane |
---|
[521] | 110 | |
---|
| 111 | %description -n libsane-hpaio |
---|
| 112 | SANE driver for scanners in HP inkjet and laser based multi-function |
---|
| 113 | printers. |
---|
| 114 | |
---|
| 115 | %description -n libsane-hpaio -l ja |
---|
| 116 | HP インクジェット及びレーザープリンタ複合機のスキャナ機能を利用する |
---|
| 117 | 為の SANE ドライバです。 |
---|
| 118 | |
---|
| 119 | #--------------------------------------------------------------------- |
---|
| 120 | |
---|
| 121 | %prep |
---|
| 122 | %setup -q |
---|
| 123 | %patch0 -p1 -b .gksu |
---|
[4127] | 124 | %patch1 -p1 -b .udev-rules |
---|
[521] | 125 | |
---|
| 126 | %build |
---|
| 127 | %configure --enable-doc-build \ |
---|
| 128 | --enable-network-build \ |
---|
| 129 | --disable-pp-build \ |
---|
| 130 | --enable-scan-build \ |
---|
| 131 | --enable-gui-build \ |
---|
| 132 | --enable-fax-build \ |
---|
| 133 | --enable-dbus-build \ |
---|
[4119] | 134 | --enable-qt4 \ |
---|
| 135 | --disable-qt3 \ |
---|
[4127] | 136 | --enable-hpijs-install \ |
---|
[4119] | 137 | --enable-hpcups-install \ |
---|
[4127] | 138 | --enable-cups-drv-install \ |
---|
| 139 | --enable-foomatic-drv-install \ |
---|
| 140 | --disable-cups-ppd-install \ |
---|
[521] | 141 | --disable-foomatic-ppd-install \ |
---|
| 142 | --with-cupsbackenddir=%{_libdir}/cups/backend \ |
---|
| 143 | --with-cupsfilterdir=%{_libdir}/cups/filter \ |
---|
[4127] | 144 | --with-hpppddir=%{_datadir}/foomatic/db/source/PPD/HP |
---|
[521] | 145 | %{__make} |
---|
| 146 | |
---|
| 147 | |
---|
| 148 | %install |
---|
| 149 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 150 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
| 151 | |
---|
| 152 | # install modified .desktop |
---|
| 153 | %{__install} -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_datadir}/applications/hplip.desktop |
---|
| 154 | |
---|
| 155 | # remove unpacked files. |
---|
[4119] | 156 | %{__rm} -rf ${RPM_BUILD_ROOT}/%{_sysconfdir}/sane.d |
---|
[521] | 157 | |
---|
| 158 | # remove unnecessary files. |
---|
| 159 | %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libhpip.la |
---|
| 160 | %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libhpmud.la |
---|
| 161 | %{__rm} -rf ${RPM_BUILD_ROOT}/%{python_sitearch}/cupsext.la |
---|
| 162 | %{__rm} -rf ${RPM_BUILD_ROOT}/%{python_sitearch}/hpmudext.la |
---|
| 163 | %{__rm} -rf ${RPM_BUILD_ROOT}/%{python_sitearch}/pcardext.la |
---|
| 164 | %{__rm} -rf ${RPM_BUILD_ROOT}/%{python_sitearch}/scanext.la |
---|
| 165 | %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/sane/libsane-hpaio.la |
---|
| 166 | |
---|
| 167 | %clean |
---|
| 168 | %__rm -rf ${RPM_BUILD_ROOT} |
---|
| 169 | |
---|
| 170 | |
---|
[4119] | 171 | %post libs |
---|
[521] | 172 | /sbin/ldconfig |
---|
| 173 | |
---|
[4119] | 174 | %postun libs |
---|
| 175 | /sbin/ldconfig |
---|
| 176 | |
---|
[521] | 177 | %post gui |
---|
| 178 | /usr/bin/update-desktop-database &>/dev/null ||: |
---|
| 179 | |
---|
| 180 | %postun gui |
---|
| 181 | /usr/bin/update-desktop-database &>/dev/null ||: |
---|
| 182 | |
---|
| 183 | %post -n libsane-hpaio |
---|
| 184 | /sbin/ldconfig |
---|
| 185 | if [ -f /etc/sane.d/dll.conf ] && \ |
---|
| 186 | ! grep ^hpaio /etc/sane.d/dll.conf >/dev/null 2>/dev/null ; then \ |
---|
| 187 | echo hpaio >> /etc/sane.d/dll.conf; \ |
---|
| 188 | fi |
---|
| 189 | |
---|
| 190 | %files |
---|
| 191 | %defattr(-,root,root) |
---|
| 192 | %doc %{_datadir}/doc/%{name}-%{version} |
---|
| 193 | %{_bindir}/hp-align |
---|
| 194 | %{_bindir}/hp-check |
---|
| 195 | %{_bindir}/hp-clean |
---|
| 196 | %{_bindir}/hp-colorcal |
---|
[4119] | 197 | %{_bindir}/hp-devicesettings |
---|
[521] | 198 | %{_bindir}/hp-fab |
---|
| 199 | %{_bindir}/hp-faxsetup |
---|
| 200 | %{_bindir}/hp-firmware |
---|
| 201 | %{_bindir}/hp-info |
---|
| 202 | %{_bindir}/hp-levels |
---|
| 203 | %{_bindir}/hp-linefeedcal |
---|
| 204 | %{_bindir}/hp-makecopies |
---|
| 205 | %{_bindir}/hp-makeuri |
---|
| 206 | %{_bindir}/hp-mkuri |
---|
| 207 | %{_bindir}/hp-plugin |
---|
| 208 | %{_bindir}/hp-pqdiag |
---|
| 209 | %{_bindir}/hp-pkservice |
---|
| 210 | %{_bindir}/hp-printsettings |
---|
| 211 | %{_bindir}/hp-probe |
---|
| 212 | %{_bindir}/hp-query |
---|
| 213 | %{_bindir}/hp-scan |
---|
| 214 | %{_bindir}/hp-sendfax |
---|
| 215 | %{_bindir}/hp-setup |
---|
| 216 | %{_bindir}/hp-systray |
---|
| 217 | %{_bindir}/hp-testpage |
---|
| 218 | %{_bindir}/hp-timedate |
---|
| 219 | %{_bindir}/hp-unload |
---|
[4119] | 220 | %{_bindir}/hp-wificonfig |
---|
[4127] | 221 | %{_bindir}/hpijs |
---|
[521] | 222 | %{_datadir}/hal/fdi/preprobe/10osvendor/20-hplip-devices.fdi |
---|
| 223 | %{_datadir}/hplip/__init__.py |
---|
| 224 | %{_datadir}/hplip/align.py |
---|
| 225 | %{_datadir}/hplip/base |
---|
| 226 | %{_datadir}/hplip/check.py |
---|
| 227 | %{_datadir}/hplip/clean.py |
---|
| 228 | %{_datadir}/hplip/colorcal.py |
---|
| 229 | %{_datadir}/hplip/copier |
---|
| 230 | %{_datadir}/hplip/data/ldl |
---|
| 231 | %{_datadir}/hplip/data/models |
---|
| 232 | %{_datadir}/hplip/data/pcl |
---|
| 233 | %{_datadir}/hplip/data/ps |
---|
[4119] | 234 | %{_datadir}/hplip/devicesettings.py |
---|
[521] | 235 | %{_datadir}/hplip/fax |
---|
| 236 | %{_datadir}/hplip/faxsetup.py |
---|
| 237 | %{_datadir}/hplip/firmware.py |
---|
| 238 | %{_datadir}/hplip/hpdio.py |
---|
| 239 | %{_datadir}/hplip/hpssd.py |
---|
| 240 | %{_datadir}/hplip/info.py |
---|
| 241 | %{_datadir}/hplip/installer |
---|
| 242 | %{_datadir}/hplip/levels.py |
---|
| 243 | %{_datadir}/hplip/linefeedcal.py |
---|
| 244 | %{_datadir}/hplip/makecopies.py |
---|
| 245 | %{_datadir}/hplip/makeuri.py |
---|
| 246 | %{_datadir}/hplip/pcard |
---|
| 247 | %{_datadir}/hplip/pkservice.py |
---|
| 248 | %{_datadir}/hplip/plugin.py |
---|
| 249 | %{_datadir}/hplip/pqdiag.py |
---|
| 250 | %{_datadir}/hplip/printsettings.py |
---|
| 251 | %{_datadir}/hplip/prnt |
---|
| 252 | %{_datadir}/hplip/probe.py |
---|
| 253 | %{_datadir}/hplip/query.py |
---|
| 254 | %{_datadir}/hplip/scan |
---|
| 255 | %{_datadir}/hplip/testpage.py |
---|
| 256 | %{_datadir}/hplip/timedate.py |
---|
| 257 | %{_datadir}/hplip/unload.py |
---|
[4119] | 258 | %{_datadir}/hplip/wificonfig.py |
---|
| 259 | %{_datadir}/cups/drv/hp/hpcups.drv |
---|
| 260 | %{_datadir}/cups/drv/hp/hpijs.drv |
---|
[4127] | 261 | %{_datadir}/foomatic/db/source/PPD/HP |
---|
[521] | 262 | %{_libdir}/cups/backend/hp |
---|
| 263 | %{_libdir}/cups/backend/hpfax |
---|
| 264 | %{_libdir}/cups/filter/hpcups |
---|
[4119] | 265 | %{_libdir}/cups/filter/hpcac |
---|
| 266 | %{_libdir}/cups/filter/hpcupsfax |
---|
| 267 | %{_libdir}/cups/filter/hplipjs |
---|
| 268 | %{_libdir}/cups/filter/hpps |
---|
| 269 | %{_libdir}/cups/filter/pstotiff |
---|
[521] | 270 | %config(noreplace) %{_sysconfdir}/hp/hplip.conf |
---|
[4119] | 271 | %{_sysconfdir}/cups/pstotiff.convs |
---|
| 272 | %{_sysconfdir}/cups/pstotiff.types |
---|
[521] | 273 | %{_sysconfdir}/udev/rules.d/55-hpmud.rules |
---|
| 274 | %{_sysconfdir}/udev/rules.d/56-hpmud_support.rules |
---|
| 275 | %{_localstatedir}/lib/hp |
---|
| 276 | |
---|
| 277 | %files libs |
---|
| 278 | %defattr(-,root,root) |
---|
[4119] | 279 | %{_libdir}/libhpip.so* |
---|
[521] | 280 | %{_libdir}/libhpmud.so* |
---|
| 281 | %{python_sitearch}/cupsext.so |
---|
| 282 | %{python_sitearch}/hpmudext.so |
---|
| 283 | %{python_sitearch}/pcardext.so |
---|
| 284 | %{python_sitearch}/scanext.so |
---|
| 285 | |
---|
| 286 | %files gui |
---|
| 287 | %defattr(-,root,root) |
---|
| 288 | %{_bindir}/hp-fab |
---|
| 289 | %{_bindir}/hp-print |
---|
| 290 | %{_bindir}/hp-scan |
---|
| 291 | %{_bindir}/hp-sendfax |
---|
| 292 | %{_bindir}/hp-setup |
---|
| 293 | %{_bindir}/hp-toolbox |
---|
| 294 | %{_datadir}/hplip/data/images |
---|
| 295 | %{_datadir}/hplip/data/localization |
---|
| 296 | %{_datadir}/hplip/fab.py |
---|
| 297 | %{_datadir}/hplip/print.py |
---|
| 298 | %{_datadir}/hplip/scan.py |
---|
| 299 | %{_datadir}/hplip/sendfax.py |
---|
| 300 | %{_datadir}/hplip/setup.py |
---|
| 301 | %{_datadir}/hplip/systray.py |
---|
| 302 | %{_datadir}/hplip/toolbox.py |
---|
[4119] | 303 | %{_datadir}/hplip/ui4 |
---|
[521] | 304 | %{_datadir}/applications/hplip.desktop |
---|
| 305 | %{_sysconfdir}/xdg/autostart/hplip-systray.desktop |
---|
| 306 | |
---|
| 307 | %files -n libsane-hpaio |
---|
| 308 | %defattr(-,root,root) |
---|
| 309 | %{_libdir}/sane/libsane-hpaio* |
---|
| 310 | |
---|
| 311 | |
---|
| 312 | %changelog |
---|
[5849] | 313 | * Wed Mar 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.11.5-5 |
---|
| 314 | - rebuild with net-snmp-5.7.1 |
---|
| 315 | |
---|
[5701] | 316 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.11.5-4 |
---|
| 317 | - rebuild with python-2.7.2 |
---|
| 318 | |
---|
[4158] | 319 | * Mon Jun 13 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 3.11.5-3 |
---|
| 320 | - add Obsoletes: hpijs < 3.10 |
---|
| 321 | |
---|
[4127] | 322 | * Sun Jun 12 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 3.11.5-2 |
---|
| 323 | - change configure option to --enable-hpijs-install |
---|
| 324 | - add Provides: hpijs |
---|
| 325 | - change ppd installation path to %{_datadir}/foomatic/db/source/PPD/HP |
---|
| 326 | - update Source1 (hplip.desktop.vine) |
---|
| 327 | - update Patch0 (hplip-3.11.5-gksu.patch) |
---|
| 328 | - add Patch1 to fix udev old syntax (hplip-udev-rules.patch) |
---|
| 329 | |
---|
[4119] | 330 | * Tue Mar 15 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 3.11.5-1 |
---|
| 331 | - new upstream release |
---|
| 332 | - change configure option: disable qt3 and enable qt4 |
---|
| 333 | - add configure option: --enable-foomatic-drv-install |
---|
| 334 | - add BuildRequires: openssl-devel |
---|
| 335 | - add Requires: dbus-python |
---|
| 336 | - add Requires: notify-python (gui) |
---|
| 337 | - change Requires: PyQt to PyQt4 (gui) |
---|
| 338 | - add BuildConflicts: PyQt |
---|
| 339 | - add ppds below %{_datadir}/cups/model/foomatic/hp-* |
---|
| 340 | because foomatic (>= 4.0.3) drop PPDs for HP printers. |
---|
| 341 | |
---|
[521] | 342 | * Fri Jul 24 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.9.4b-3 |
---|
| 343 | - add Patch0 to require root privilege (via gksu) when adding printer |
---|
| 344 | - add Requires: gksu |
---|
| 345 | |
---|
| 346 | * Mon Jun 08 2009 Shu KONNO <owa@bg.wakwak.com> 3.9.4b-2 |
---|
| 347 | - added --with-cupsfilterdir to configure option |
---|
| 348 | - use python_sitearch macro instead of python_platlib |
---|
| 349 | |
---|
| 350 | * Sun Jun 07 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.9.4b-1 |
---|
| 351 | - new upstream release |
---|
| 352 | - split libraries to -libs sub package |
---|
| 353 | - update configure option |
---|
| 354 | add --enable-dbus-build, --enable-qt3, --disable-qt4 |
---|
| 355 | |
---|
| 356 | * Mon Jul 21 2008 Shu KONNO <owa@bg.wakwak.com> 2.7.12-1vl5 |
---|
| 357 | - rebuilt with python-2.5.2 |
---|
| 358 | - added python_platlib macro |
---|
| 359 | - applied new versioning policy and spec in utf-8 |
---|
| 360 | |
---|
| 361 | * Sun Jan 6 2008 Shu KONNO <owa@bg.wakwak.com> 2.7.12-0vl2 |
---|
| 362 | - added --with-cupsbackenddir=%%{_libdir}/cups/backend to configure |
---|
| 363 | |
---|
| 364 | * Thu Jan 3 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 2.7.12-0vl1 |
---|
| 365 | - new upstream release |
---|
| 366 | - build with net-snmp-5.4.1 |
---|
| 367 | |
---|
| 368 | * Thu Jun 28 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 2.7.6-0vl1 |
---|
| 369 | - initial build for Vine Linux |
---|