123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363 |
- # %define python_platlib %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)')
- Summary: HP printer drivers & utilities for Linux
- Summary(ja): HP プリンタ用の Linux 向けドライバとユーティリティ
- Name: hplip
- Version: 3.11.5
- Release: 3%{?_dist_release}
- Source0: %{name}-%{version}.tar.gz
- Source1: hplip.desktop.vine
- Patch0: hplip-3.11.5-gksu.patch
- Patch1: hplip-udev-rules.patch
- License: GPL/MIT
- Group: Applications/Publishing
- URL: http://hplipopensource.com/hplip-web/index.html
- Requires: cups
- Requires: dbus
- Requires: foomatic
- Requires: ghostscript
- Requires: libjpeg
- Requires: openssl
- Requires: python-imaging
- Requires: dbus-python
- Requires: %{name}-libs = %{version}-%{release}
- Requires: gksu
- BuildRequires: cups-devel
- BuildRequires: dbus-devel
- BuildRequires: libusb-devel
- BuildRequires: libjpeg-devel
- BuildRequires: net-snmp-devel
- BuildRequires: openssl-devel
- BuildRequires: python-devel >= 2.3
- BuildRequires: sane-devel
- BuildRequires: PyQt4
- # to force to use PyQt4
- BuildConflicts: PyQt
- Provides: hpijs
- Obsoletes: hpijs < 3.10
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- Packager: kazutaka
- # When below files are included in %files section,
- # find-requires shows strange error.
- # %{_datadir}/hplip/base/kirbybase.py and pexpect.py
- # So, below option is added to aboid this.
- #AutoReq: False
- %description
- HPLIP is an HP developed solution for printing, scanning, and
- faxing with HP inkjet and laser based printers in Linux.
- The HPLIP project provides printing support for 1,151 printer
- models, including Deskjet, Officejet, Photosmart, PSC (Print Scan
- Copy), Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP.
- %description -l ja
- HPLIP は HP が開発した HP インクジェット及びレーザープリンタ向けの、
- プリンタ/スキャナ/FAX 機能を Linux 上で利用する為のソリューション
- です。
- HPLIP プロジェクトでは1,151種類のプリンタをサポートしています。
- これには Deskjet、 Officejet、 Photosmart、 PSC (Print Scan Copy)、
- Business Inkjet、 LaserJet、 Edgeline MFP 及び LaserJet MFP が
- 含まれます。
- #---------------------------------------------------------------------
- %package libs
- Summary: HPLIP libraries
- Summary(ja): HPLIP ライブラリ
- Group: System Environment/Libraries
- License: GPL/MIT
- %description libs
- Libraries needed by HPLIP.
- %description libs -l ja
- HPLIP 用のライブラリです。
- #---------------------------------------------------------------------
- %package gui
- Summary: HPLIP graphical tools
- Summary(ja): HPLIP 用 GUI ツール
- Group: Applications/System
- License: GPL/MIT
- Requires: %{name} = %{version}-%{release}
- Requires: PyQt4
- Requires: notify-python
- %description gui
- HP Device manager (toolbox) is a graphical utility including
- maintenance tools, supplies levels, and status information.
- %description gui -l ja
- HP デバイスマネージャ (toolbox) は、各種設定やインクや紙の残量確
- 認、ステータス情報の確認が行える HPLIP 用の GUI ユーティリティです。
- #---------------------------------------------------------------------
- %package -n libsane-hpaio
- Summary: SANE driver for scanners in HP's multi-function devices
- Summary(ja): HP 複合機のスキャナ用 SANE ドライバ
- Group: System Environment/Libraries
- License: GPL/MIT
- Requires: %{name}-libs = %{version}-%{release}
- Requires: sane
- %description -n libsane-hpaio
- SANE driver for scanners in HP inkjet and laser based multi-function
- printers.
- %description -n libsane-hpaio -l ja
- HP インクジェット及びレーザープリンタ複合機のスキャナ機能を利用する
- 為の SANE ドライバです。
- #---------------------------------------------------------------------
- %prep
- %setup -q
- %patch0 -p1 -b .gksu
- %patch1 -p1 -b .udev-rules
- %build
- %configure --enable-doc-build \
- --enable-network-build \
- --disable-pp-build \
- --enable-scan-build \
- --enable-gui-build \
- --enable-fax-build \
- --enable-dbus-build \
- --enable-qt4 \
- --disable-qt3 \
- --enable-hpijs-install \
- --enable-hpcups-install \
- --enable-cups-drv-install \
- --enable-foomatic-drv-install \
- --disable-cups-ppd-install \
- --disable-foomatic-ppd-install \
- --with-cupsbackenddir=%{_libdir}/cups/backend \
- --with-cupsfilterdir=%{_libdir}/cups/filter \
- --with-hpppddir=%{_datadir}/foomatic/db/source/PPD/HP
- %{__make}
- %install
- %{__rm} -rf ${RPM_BUILD_ROOT}
- %{__make} install DESTDIR=${RPM_BUILD_ROOT}
- # install modified .desktop
- %{__install} -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_datadir}/applications/hplip.desktop
- # remove unpacked files.
- %{__rm} -rf ${RPM_BUILD_ROOT}/%{_sysconfdir}/sane.d
- # remove unnecessary files.
- %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libhpip.la
- %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libhpmud.la
- %{__rm} -rf ${RPM_BUILD_ROOT}/%{python_sitearch}/cupsext.la
- %{__rm} -rf ${RPM_BUILD_ROOT}/%{python_sitearch}/hpmudext.la
- %{__rm} -rf ${RPM_BUILD_ROOT}/%{python_sitearch}/pcardext.la
- %{__rm} -rf ${RPM_BUILD_ROOT}/%{python_sitearch}/scanext.la
- %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/sane/libsane-hpaio.la
- %clean
- %__rm -rf ${RPM_BUILD_ROOT}
- %post libs
- /sbin/ldconfig
- %postun libs
- /sbin/ldconfig
- %post gui
- /usr/bin/update-desktop-database &>/dev/null ||:
- %postun gui
- /usr/bin/update-desktop-database &>/dev/null ||:
- %post -n libsane-hpaio
- /sbin/ldconfig
- if [ -f /etc/sane.d/dll.conf ] && \
- ! grep ^hpaio /etc/sane.d/dll.conf >/dev/null 2>/dev/null ; then \
- echo hpaio >> /etc/sane.d/dll.conf; \
- fi
- %files
- %defattr(-,root,root)
- %doc %{_datadir}/doc/%{name}-%{version}
- %{_bindir}/hp-align
- %{_bindir}/hp-check
- %{_bindir}/hp-clean
- %{_bindir}/hp-colorcal
- %{_bindir}/hp-devicesettings
- %{_bindir}/hp-fab
- %{_bindir}/hp-faxsetup
- %{_bindir}/hp-firmware
- %{_bindir}/hp-info
- %{_bindir}/hp-levels
- %{_bindir}/hp-linefeedcal
- %{_bindir}/hp-makecopies
- %{_bindir}/hp-makeuri
- %{_bindir}/hp-mkuri
- %{_bindir}/hp-plugin
- %{_bindir}/hp-pqdiag
- %{_bindir}/hp-pkservice
- %{_bindir}/hp-printsettings
- %{_bindir}/hp-probe
- %{_bindir}/hp-query
- %{_bindir}/hp-scan
- %{_bindir}/hp-sendfax
- %{_bindir}/hp-setup
- %{_bindir}/hp-systray
- %{_bindir}/hp-testpage
- %{_bindir}/hp-timedate
- %{_bindir}/hp-unload
- %{_bindir}/hp-wificonfig
- %{_bindir}/hpijs
- %{_datadir}/hal/fdi/preprobe/10osvendor/20-hplip-devices.fdi
- %{_datadir}/hplip/__init__.py
- %{_datadir}/hplip/align.py
- %{_datadir}/hplip/base
- %{_datadir}/hplip/check.py
- %{_datadir}/hplip/clean.py
- %{_datadir}/hplip/colorcal.py
- %{_datadir}/hplip/copier
- %{_datadir}/hplip/data/ldl
- %{_datadir}/hplip/data/models
- %{_datadir}/hplip/data/pcl
- %{_datadir}/hplip/data/ps
- %{_datadir}/hplip/devicesettings.py
- %{_datadir}/hplip/fax
- %{_datadir}/hplip/faxsetup.py
- %{_datadir}/hplip/firmware.py
- %{_datadir}/hplip/hpdio.py
- %{_datadir}/hplip/hpssd.py
- %{_datadir}/hplip/info.py
- %{_datadir}/hplip/installer
- %{_datadir}/hplip/levels.py
- %{_datadir}/hplip/linefeedcal.py
- %{_datadir}/hplip/makecopies.py
- %{_datadir}/hplip/makeuri.py
- %{_datadir}/hplip/pcard
- %{_datadir}/hplip/pkservice.py
- %{_datadir}/hplip/plugin.py
- %{_datadir}/hplip/pqdiag.py
- %{_datadir}/hplip/printsettings.py
- %{_datadir}/hplip/prnt
- %{_datadir}/hplip/probe.py
- %{_datadir}/hplip/query.py
- %{_datadir}/hplip/scan
- %{_datadir}/hplip/testpage.py
- %{_datadir}/hplip/timedate.py
- %{_datadir}/hplip/unload.py
- %{_datadir}/hplip/wificonfig.py
- %{_datadir}/cups/drv/hp/hpcups.drv
- %{_datadir}/cups/drv/hp/hpijs.drv
- %{_datadir}/foomatic/db/source/PPD/HP
- %{_libdir}/cups/backend/hp
- %{_libdir}/cups/backend/hpfax
- %{_libdir}/cups/filter/hpcups
- %{_libdir}/cups/filter/hpcac
- %{_libdir}/cups/filter/hpcupsfax
- %{_libdir}/cups/filter/hplipjs
- %{_libdir}/cups/filter/hpps
- %{_libdir}/cups/filter/pstotiff
- %config(noreplace) %{_sysconfdir}/hp/hplip.conf
- %{_sysconfdir}/cups/pstotiff.convs
- %{_sysconfdir}/cups/pstotiff.types
- %{_sysconfdir}/udev/rules.d/55-hpmud.rules
- %{_sysconfdir}/udev/rules.d/56-hpmud_support.rules
- %{_localstatedir}/lib/hp
- %files libs
- %defattr(-,root,root)
- %{_libdir}/libhpip.so*
- %{_libdir}/libhpmud.so*
- %{python_sitearch}/cupsext.so
- %{python_sitearch}/hpmudext.so
- %{python_sitearch}/pcardext.so
- %{python_sitearch}/scanext.so
- %files gui
- %defattr(-,root,root)
- %{_bindir}/hp-fab
- %{_bindir}/hp-print
- %{_bindir}/hp-scan
- %{_bindir}/hp-sendfax
- %{_bindir}/hp-setup
- %{_bindir}/hp-toolbox
- %{_datadir}/hplip/data/images
- %{_datadir}/hplip/data/localization
- %{_datadir}/hplip/fab.py
- %{_datadir}/hplip/print.py
- %{_datadir}/hplip/scan.py
- %{_datadir}/hplip/sendfax.py
- %{_datadir}/hplip/setup.py
- %{_datadir}/hplip/systray.py
- %{_datadir}/hplip/toolbox.py
- %{_datadir}/hplip/ui4
- %{_datadir}/applications/hplip.desktop
- %{_sysconfdir}/xdg/autostart/hplip-systray.desktop
- %files -n libsane-hpaio
- %defattr(-,root,root)
- %{_libdir}/sane/libsane-hpaio*
- %changelog
- * Mon Jun 13 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 3.11.5-3
- - add Obsoletes: hpijs < 3.10
- * Sun Jun 12 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 3.11.5-2
- - change configure option to --enable-hpijs-install
- - add Provides: hpijs
- - change ppd installation path to %{_datadir}/foomatic/db/source/PPD/HP
- - update Source1 (hplip.desktop.vine)
- - update Patch0 (hplip-3.11.5-gksu.patch)
- - add Patch1 to fix udev old syntax (hplip-udev-rules.patch)
- * Tue Mar 15 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 3.11.5-1
- - new upstream release
- - change configure option: disable qt3 and enable qt4
- - add configure option: --enable-foomatic-drv-install
- - add BuildRequires: openssl-devel
- - add Requires: dbus-python
- - add Requires: notify-python (gui)
- - change Requires: PyQt to PyQt4 (gui)
- - add BuildConflicts: PyQt
- - add ppds below %{_datadir}/cups/model/foomatic/hp-*
- because foomatic (>= 4.0.3) drop PPDs for HP printers.
- * Fri Jul 24 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.9.4b-3
- - add Patch0 to require root privilege (via gksu) when adding printer
- - add Requires: gksu
- * Mon Jun 08 2009 Shu KONNO <owa@bg.wakwak.com> 3.9.4b-2
- - added --with-cupsfilterdir to configure option
- - use python_sitearch macro instead of python_platlib
- * Sun Jun 07 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.9.4b-1
- - new upstream release
- - split libraries to -libs sub package
- - update configure option
- add --enable-dbus-build, --enable-qt3, --disable-qt4
- * Mon Jul 21 2008 Shu KONNO <owa@bg.wakwak.com> 2.7.12-1vl5
- - rebuilt with python-2.5.2
- - added python_platlib macro
- - applied new versioning policy and spec in utf-8
- * Sun Jan 6 2008 Shu KONNO <owa@bg.wakwak.com> 2.7.12-0vl2
- - added --with-cupsbackenddir=%%{_libdir}/cups/backend to configure
- * Thu Jan 3 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 2.7.12-0vl1
- - new upstream release
- - build with net-snmp-5.4.1
- * Thu Jun 28 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 2.7.6-0vl1
- - initial build for Vine Linux
|