diff --git a/sane-backends.spec b/sane-backends.spec index b37f8de..0a184a8 100644 --- a/sane-backends.spec +++ b/sane-backends.spec @@ -1,16 +1,19 @@ Summary: Scanner access software. Name: sane-backends Version: 1.0.13 -Release: 5.1 +Release: 7 License: GPL (programs), relaxed LGPL (libraries), and public domain (docs) Group: System Environment/Libraries Source0: ftp://ftp.mostang.com/pub/sane/sane-%{version}/%{name}-%{version}.tar.gz Source1: sane.png +Source2: libusbscanner +Source3: libsane.usermap Patch1: sane-backends-1.0.11-rpath.patch Patch2: sane-backends-1.0.11-docdir.patch Patch3: sane-backends-1.0.12-badcode.patch Patch4: sane-backends-1.0.12-no_rpath.patch Patch5: sane-backends-1.0.13-gcc34.patch +Patch6: sane-backends-ep2400.patch URL: http://www.sane-project.org BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: tetex-latex libusb-devel libieee1284-devel @@ -22,6 +25,9 @@ BuildRequires: gphoto2-devel Prereq: /sbin/ldconfig, /bin/mktemp, /bin/grep, /bin/cat, /bin/rm ExcludeArch: s390 s390x +# For /etc/hotplug/usb: +Requires: hotplug + %description Scanner Access Now Easy (SANE) is a universal scanner interface. The SANE application programming interface (API) provides standardized @@ -59,6 +65,7 @@ included in the sane-backends package. %patch3 -p1 -b .badcode %patch4 -p1 -b .no_rpath %patch5 -p1 -b .gcc34 +%patch6 -p1 -b .ep2400 # Fix bug #62847. perl -pi -e 's,/dev/usbscanner0?,/dev/usb/scanner0,' backend/*.conf @@ -90,6 +97,9 @@ mkdir -p %{buildroot}%{_datadir}/pixmaps install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps rm -f %{buildroot}%{_bindir}/gamma4scanimage rm -f %{buildroot}%{_libdir}/sane/*.a %{buildroot}%{_libdir}/*.a +mkdir -p %{buildroot}%{_sysconfdir}/hotplug/usb +install -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/hotplug/usb +install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/hotplug/usb %find_lang %name @@ -104,6 +114,7 @@ rm -rf %{buildroot} %defattr(-,root,root) %dir /etc/sane.d %config /etc/sane.d/* +%{_sysconfdir}/hotplug/usb/* %{_bindir}/sane-find-scanner %{_bindir}/scanimage %{_sbindir}/* @@ -124,6 +135,14 @@ rm -rf %{buildroot} %{_libdir}/sane/*.so %changelog +* Fri May 7 2004 Tim Waugh 1.0.13-7 +- Fix epson.conf for USB scanners (bug #122328). + +* Tue May 4 2004 Tim Waugh 1.0.13-6 +- Ship libusb.usermap (from sane-backends-1.0.14) and a pam_console-aware + libusbscanner script. +- Fix epson.conf for Epson Perfection 2400 (bug #122328). + * Tue Mar 02 2004 Elliot Lee - rebuilt