From 68caccbec377b8ab025c1ffe0de063f26f14824d Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Wed, 8 Jun 2005 16:32:27 +0000 Subject: [PATCH] auto-import hplip-0.9.3-0.1 on branch devel from hplip-0.9.3-0.1.src.rpm --- .cvsignore | 1 + hplip.spec | 128 +++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 130 insertions(+) create mode 100644 hplip.spec diff --git a/.cvsignore b/.cvsignore index e69de29..8dc9800 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +hplip-0.9.3.tar.gz diff --git a/hplip.spec b/hplip.spec new file mode 100644 index 0000000..47314f4 --- /dev/null +++ b/hplip.spec @@ -0,0 +1,128 @@ +Summary: HP Linux Imaging and Printing Project +Name: hplip +Version: 0.9.3 +Release: 0.1 +License: GPL/MIT/BSD +Group: System Environment/Daemons +Obsoletes: hpoj +Url: http://sourceforge.net/projects/hpinkjet +Source: http://kent.dl.sourceforge.net/sourceforge/hpinkjet/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot + +Requires: desktop-file-utils >= 0.2.92 + +BuildRequires: net-snmp-devel +BuildRequires: cups-devel + +%description +The Hewlett-Packard Linux Imaging and Printing Project provides +drivers for HP printers and multi-function peripherals. + +%package -n hpijs +Summary: HP Printer Drivers +Group: Applications/Publishing +License: BSD +Epoch: 1 + +%description -n hpijs +hpijs is a collection of optimized drivers for HP printers. +hpijs supports the DeskJet 350C, 600C, 600C Photo, 630C, Apollo 2000, +Apollo 2100, Apollo 2560, DeskJet 800C, DeskJet 825, DeskJet 900, +PhotoSmart, DeskJet 990C, and PhotoSmart 100 series. + +%package -n libsane-hpaio +Summary: SANE driver for scanners in HP's multi-function devices +Group: System Environment/Daemons +License: GPL +Obsoletes: libsane-hpoj <= 0.91 +Requires: sane-backends + +%description -n libsane-hpaio +SANE driver for scanners in HP's multi-function devices (from HPOJ). + +%prep +rm -rf $RPM_BUILD_DIR/%{name}-%{version} +%setup -q + +%build +%configure +make + +%install +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} + +# Move SANE backend into correct directory +mkdir -p %{buildroot}%{_libdir}/sane +mv %{buildroot}%{_libdir}/libsane-*.so* %{buildroot}%{_libdir}/sane + +# Remove unpackaged files +rm -rf %{buildroot}%{_sysconfdir}/sane.d \ + %{buildroot}%{_datadir}/ppd \ + %{buildroot}%{_docdir} + +rm -f %{buildroot}%{_bindir}/foomatic-rip \ + %{buildroot}%{_libdir}/cups/filter/foomatic-rip \ + %{buildroot}%{_libdir}/*.la \ + %{buildroot}%{_libdir}/*.so \ + %{buildroot}%{_datadir}/cups/model/foomatic-ppds \ + %{buildroot}%{_datadir}/applications/hplip.desktop + +# Desktop file installation. +mkdir -p %{buildroot}%{_datadir}/applications +desktop-file-install --vendor HP \ + --dir %{buildroot}%{_datadir}/applications \ + --add-category X-Red-Hat-Extra \ + --add-category Utility \ + --add-category Application \ + %{buildroot}%{_datadir}/hplip/data/hplip.desktop + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%doc COPYING hplip_readme.html hplip_overview.png +%dir %{_sysconfdir}/hp +%config(noreplace) %{_sysconfdir}/hp/hplip.conf +%config(noreplace) %{_sysconfdir}/init.d/hplip +%{_bindir}/hp-* +%{_sbindir}/hpiod +%{_libdir}/cups/backend/hp +%{_datadir}/hplip +%{_libdir}/python*/site-packages/* +%{_datadir}/applications/*.desktop + +%files -n hpijs +%defattr(-,root,root) +%doc prnt/hpijs/COPYING prnt/hpijs/hpijs_readme.html prnt/hpijs/gs_hpijs.png +%{_bindir}/hpijs + +%files -n libsane-hpaio +%defattr(-,root,root) +%{_libdir}/libhpip.so* +%{_libdir}/sane/libsane-*.so* + +%post +/sbin/chkconfig --add hplip || : +if [ "$1" == "1" ]; then + /sbin/service hplip restart >/dev/null 2>&1 || : +fi +exit 0 + +%preun +if [ "$1" == "0" ]; then + /sbin/service hplip stop >/dev/null 2>&1 || : + /sbin/chkconfig --del hplip +fi +exit 0 + +%post -n libsane-hpaio +/sbin/ldconfig +if ! grep ^hpoj /etc/sane.d/dll.conf >/dev/null 2>/dev/null ; then \ + echo hpoj >> /etc/sane.d/dll.conf; \ +fi + +%changelog +* Tue Jun 7 2005 Tim Waugh 0.9.3-0.1 +- Initial package, based on Mandriva spec file. diff --git a/sources b/sources index e69de29..118a28f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +da1de128875173238c65303c7540a555 hplip-0.9.3.tar.gz