cvsdist b714519
Summary: Scanner access software.
cvsdist b714519
Name: sane-backends
cvsdist b714519
Version: 1.0.5
cvsdist 87205c3
Release: 4.1
cvsdist b714519
License: GPL (programs), relaxed LGPL (libraries), and public domain (docs)
cvsdist b714519
Group: System Environment/Libraries
cvsdist b714519
#Source: ftp://ftp.mostang.com/pub/sane/%{name}-%{version}.tar.gz
cvsdist b714519
Source: ftp://ftp.mostang.com/pub/sane/sane-%{version}/%{name}-%{version}.tar.gz
cvsdist b714519
Source1: sane.png
cvsdist b714519
Patch0: sane-sparc.patch
cvsdist 87205c3
Patch1: sane-backends-1.0.5-tmpfile-bh.patch
cvsdist 87205c3
Patch2: sane-backends-1.0.5-tmpfile-dc25.patch
cvsdist 87205c3
Patch3: sane-backends-1.0.5-tmpfile-qcam.patch
cvsdist 87205c3
Patch4: sane-backends-1.0.5-tmpfile-snapscan.patch
cvsdist 87205c3
Patch5: sane-backends-1.0.5-tmpfile-st400.patch
cvsdist b714519
URL: http://www.mostang.com/sane/
cvsdist b714519
BuildRoot: %{_tmppath}/%{name}-%{version}-root
cvsdist b714519
BuildRequires: tetex-latex
cvsdist b714519
%ifnarch ia64 sparc64
cvsdist b714519
Provides: libsane.so.1
cvsdist b714519
%else
cvsdist b714519
Provides: libsane.so.1()(64bit)
cvsdist b714519
%endif
cvsdist b714519
Prereq: /sbin/ldconfig, /bin/mktemp, /bin/grep, /bin/cat, /bin/rm
cvsdist b714519
BuildPrereq: tetex-latex
cvsdist d124cae
ExcludeArch: s390 s390x
cvsdist b714519
cvsdist b714519
%description
cvsdist 87205c3
Scanner Access Now Easy (SANE) is a universal scanner interface. The
cvsdist b714519
SANE application programming interface (API) provides standardized
cvsdist b714519
access to any raster image scanner hardware (flatbed scanner,
cvsdist b714519
hand-held scanner, video and still cameras, frame-grabbers, etc.). If
cvsdist 87205c3
they are using SANE, developers can write image-processing
cvsdist 87205c3
applications without having to think about the peculiarities of
cvsdist 87205c3
individual devices. SANE also makes it possible to write a device
cvsdist 87205c3
driver once, which can then be used by any SANE-compliant
cvsdist 87205c3
application. SANE currently includes drivers for some Epson SCSI
cvsdist 87205c3
scanners, HP ScanJet SCSI scanners, Microtek SCSI scanners, Mustek
cvsdist 87205c3
SCSI flatbed scanners, PINT devices, most UMAX SCSI scanners,
cvsdist 87205c3
Connectix QuickCam, and other SANE devices via network. Note that this
cvsdist 87205c3
package does not enable network scanning by default. If you wish to
cvsdist 87205c3
enable network scanning, read the saned(1) manpage. If you would like
cvsdist 87205c3
to develop SANE modules, you should also install the
cvsdist 87205c3
sane-backends-devel package.
cvsdist b714519
cvsdist b714519
%package devel
cvsdist b714519
Summary: The SANE (a universal scanner interface) development toolkit.
cvsdist b714519
Group: Development/Libraries
cvsdist b714519
Requires: sane-backends = %{version}
cvsdist b714519
Obsoletes: sane-devel
cvsdist b714519
Provides: sane-devel
cvsdist b714519
cvsdist b714519
%description devel
cvsdist b714519
Static libraries and header files for writing Scanner Access Now Easy
cvsdist 87205c3
(SANE) modules. SANE is a universal scanner interface which is
cvsdist b714519
included in the sane-backends package.
cvsdist b714519
cvsdist b714519
%prep
cvsdist b714519
%setup -q
cvsdist b714519
%patch0 -p1 -b .sparc
cvsdist b714519
cvsdist 87205c3
# Fix temporary file handling
cvsdist 87205c3
%patch1 -p1 -b .bh
cvsdist 87205c3
%patch2 -p1 -b .dc25
cvsdist 87205c3
%patch3 -p1 -b .qcam
cvsdist 87205c3
%patch4 -p1 -b .snapscan
cvsdist 87205c3
%patch5 -p3 -b .st400
cvsdist 87205c3
cvsdist b714519
%build
cvsdist b714519
%{expand:%%define optflags %{optflags} -DGIMP_ENABLE_COMPAT_CRUFT=1}
cvsdist b714519
%configure
cvsdist b714519
make
cvsdist b714519
cvsdist b714519
cvsdist b714519
%install
cvsdist b714519
rm -rf %{buildroot}
cvsdist b714519
%{makeinstall}
cvsdist b714519
perl -pi -e "s/installed.*/installed=yes/g" $RPM_BUILD_ROOT%{_libdir}/libsane.la
cvsdist b714519
/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_libdir}/sane
cvsdist b714519
cvsdist b714519
mkdir -p %{buildroot}%{_datadir}/pixmaps
cvsdist b714519
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps
cvsdist b714519
cvsdist b714519
%clean
cvsdist b714519
rm -rf %{buildroot}
cvsdist b714519
cvsdist b714519
%post
cvsdist b714519
FNAME=`mktemp /etc/ld.so.conf.XXXXXX`
cvsdist b714519
grep -v "/usr/lib/sane" /etc/ld.so.conf > ${FNAME}
cvsdist b714519
echo "/usr/lib/sane" >> ${FNAME}
cvsdist b714519
cat ${FNAME} > /etc/ld.so.conf
cvsdist b714519
rm -f ${FNAME}
cvsdist b714519
/sbin/ldconfig
cvsdist b714519
cvsdist b714519
%postun
cvsdist b714519
if [ $1 = 0 ]; then
cvsdist b714519
  FNAME=`mktemp /etc/ld.so.conf.XXXXXX`
cvsdist b714519
  grep -v "/usr/lib/sane" /etc/ld.so.conf > ${FNAME}
cvsdist b714519
  cat ${FNAME} > /etc/ld.so.conf
cvsdist b714519
  rm -f ${FNAME}
cvsdist b714519
  /sbin/ldconfig
cvsdist b714519
fi
cvsdist b714519
cvsdist b714519
%triggerpostun -- sane
cvsdist b714519
if ! grep -q '^/usr/lib/sane$' /etc/ld.so.conf; then
cvsdist b714519
  echo "/usr/lib/sane" >> /etc/ld.so.conf
cvsdist b714519
fi
cvsdist b714519
/sbin/ldconfig
cvsdist b714519
cvsdist b714519
%files
cvsdist b714519
%defattr(-,root,root)
cvsdist b714519
%doc doc/*.ps doc/icons doc/figs doc/*.man
cvsdist b714519
%doc AUTHORS NEWS PROBLEMS PROJECTS README
cvsdist b714519
%dir /etc/sane.d
cvsdist b714519
%config /etc/sane.d/*
cvsdist b714519
%{_bindir}/*
cvsdist b714519
%{_sbindir}/*
cvsdist b714519
%{_libdir}/libsane*.so.*
cvsdist b714519
%dir %{_libdir}/sane
cvsdist b714519
%{_libdir}/sane/*.so.*
cvsdist b714519
%{_mandir}/*/*
cvsdist b714519
%{_datadir}/pixmaps/sane.png
cvsdist b714519
cvsdist b714519
%files devel
cvsdist b714519
%defattr(-,root,root)
cvsdist b714519
%{_includedir}/sane
cvsdist b714519
%{_libdir}/libsane*.la
cvsdist b714519
%{_libdir}/libsane*.a
cvsdist b714519
%{_libdir}/libsane*.so
cvsdist b714519
%{_libdir}/sane/*.la
cvsdist b714519
%{_libdir}/sane/*.a
cvsdist b714519
%{_libdir}/sane/*.so
cvsdist b714519
cvsdist b714519
%changelog
cvsdist 87205c3
* Wed Dec 19 2001 Tim Waugh <twaugh@redhat.com> 1.0.5-4.1
cvsdist 87205c3
- Fix temporary file handling.
cvsdist 87205c3
cvsdist d124cae
* Fri Jul 20 2001 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist d124cae
- exclude s390, s390x
cvsdist d124cae
cvsdist b714519
* Tue Jul 17 2001 Preston Brown <pbrown@redhat.com> 1.0.5-3
cvsdist b714519
- sane.png included
cvsdist b714519
cvsdist b714519
* Tue Jul 10 2001 Tim Waugh <twaugh@redhat.com> 1.0.5-2
cvsdist b714519
- sane-backends-devel provides sane-devel.
cvsdist b714519
cvsdist b714519
* Sun Jul  1 2001 Tim Waugh <twaugh@redhat.com> 1.0.5-1
cvsdist b714519
- 1.0.5.
cvsdist b714519
cvsdist b714519
* Wed Jun 20 2001 Tim Waugh <twaugh@redhat.com> 1.0.5-0.20010620.0
cvsdist b714519
- 2001-06-20 CVS update.  PreReq /bin/cat, /bin/rm.
cvsdist b714519
cvsdist b714519
* Mon Jun 11 2001 Tim Waugh <twaugh@redhat.com> 1.0.5-0.20010610
cvsdist b714519
- 2001-06-10 CVS snapshot.  umax_pp update from CVS again to fix more
cvsdist b714519
  build problems.
cvsdist b714519
cvsdist b714519
* Sun Jun  3 2001 Tim Waugh <twaugh@redhat.com> 1.0.5-0.20010603.1000
cvsdist b714519
- 2001-06-03 CVS snapshot (10:00).  Fixes umax_pp build problems.
cvsdist b714519
cvsdist b714519
* Sat Jun  2 2001 Tim Waugh <twaugh@redhat.com> 1.0.5-0.20010530
cvsdist b714519
- sane-backends (sane-frontends is in a separate package now).
cvsdist b714519
- 2001-05-30 CVS snapshot.
cvsdist b714519
- include.patch no longer needed.
cvsdist b714519
- sg3timeout.patch no longer needed.
cvsdist b714519
cvsdist b714519
* Mon Jan 22 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.0.3-10
cvsdist b714519
- Fix up the libtool config file /usr/lib/libsane.la
cvsdist b714519
  kscan should build now. ;)
cvsdist b714519
cvsdist b714519
* Wed Jan 10 2001 Tim Waugh <twaugh@redhat.com>
cvsdist b714519
- Increase timeout for SCSI commands sent via sg driver version 3
cvsdist b714519
  (bug #23447)
cvsdist b714519
cvsdist b714519
* Mon Dec 25 2000 Matt Wilson <msw@redhat.com>
cvsdist b714519
- rebuilt against gimp 1.2.0
cvsdist b714519
cvsdist b714519
* Thu Dec 21 2000 Matt Wilson <msw@redhat.com>
cvsdist b714519
- rebuilt against gimp 1.1.32
cvsdist b714519
- use -DGIMP_ENABLE_COMPAT_CRUFT=1 to build with compat macros
cvsdist b714519
cvsdist b714519
* Mon Dec 18 2000 Matt Wilson <msw@redhat.com>
cvsdist b714519
- rebuilt against gimp 1.1.30
cvsdist b714519
cvsdist b714519
* Fri Dec  1 2000 Tim Waugh <twaugh@redhat.com>
cvsdist b714519
- Rebuild because of fileutils bug.
cvsdist b714519
cvsdist b714519
* Thu Oct 26 2000 Bill Nottingham <notting@redhat.com>
cvsdist b714519
- fix provides for ia64/sparc64
cvsdist b714519
cvsdist b714519
* Thu Aug 29 2000 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist b714519
- don't include xscanimage desktop entry - it's a gimp
cvsdist b714519
  plugin. Doh. (part of #17076)
cvsdist b714519
- add tetex-latex as a build requirement
cvsdist b714519
cvsdist b714519
* Wed Aug 23 2000 Matt Wilson <msw@redhat.com>
cvsdist b714519
- built against gimp 1.1.25
cvsdist b714519
cvsdist b714519
* Tue Aug 22 2000 Preston Brown <pbrown@redhat.com>
cvsdist b714519
- 1.0.3 bugfix release (#16726)
cvsdist b714519
- rev patch removed, no longer needed
cvsdist b714519
cvsdist b714519
* Tue Aug 15 2000 Than Ngo <than@redhat.com>
cvsdist b714519
- add triggerpostun to fix removing path from ld.so.conf at update
cvsdist b714519
cvsdist b714519
* Fri Aug  4 2000 Bernhard Rosenkraenzer <bero@redhat.com>
cvsdist b714519
- Add Swedish and German translations to desktop file, Bug #15317
cvsdist b714519
cvsdist b714519
* Sun Jul 23 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist b714519
- use mktemp in post and postun scripts
cvsdist b714519
- fix incorrect usage of rev in backend/Makefile
cvsdist b714519
cvsdist b714519
* Wed Jul 19 2000 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist b714519
- workarounds for weird bug (all so-files had names with "s="
cvsdist b714519
  - except for sparc which has just "=" and IA64 which works)
cvsdist b714519
cvsdist b714519
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
cvsdist b714519
- automatic rebuild
cvsdist b714519
cvsdist b714519
* Mon Jul  3 2000 Matt Wilson <msw@redhat.com>
cvsdist b714519
- rebuilt against gimp-1.1.24
cvsdist b714519
cvsdist b714519
* Tue Jun 13 2000 Preston Brown <pbrown@redhat.com>
cvsdist b714519
- FHS paths
cvsdist b714519
- work around ICE on intel.  FIX ME!
cvsdist b714519
cvsdist b714519
* Mon May 22 2000 Tim Powers <timp@redhat.com>
cvsdist b714519
-  rebuilt w/ glibc-2.1.90
cvsdist b714519
cvsdist b714519
* Thu May 18 2000 Tim Powers <timp@redhat.com>
cvsdist b714519
- updated to 1.0.2
cvsdist b714519
cvsdist b714519
* Wed Jul 21 1999 Tim Powers <timp@redhat.com>
cvsdist b714519
- rebuilt for 6.1
cvsdist b714519
cvsdist b714519
* Tue May 11 1999 Bill Nottingham <notting@redhat.com>
cvsdist b714519
- make it play nice with xsane, add ld.so.conf entries
cvsdist b714519
cvsdist b714519
* Wed Apr 21 1999 Bill Nottingham <notting@redhat.com>
cvsdist b714519
- update to 1.0.1
cvsdist b714519
cvsdist b714519
* Tue Oct 13 1998 Michael Maher <mike@redhat.com>
cvsdist b714519
- updated package
cvsdist b714519
cvsdist b714519
* Thu May 21 1998 Cristian Gafton <gafton@redhat.com>
cvsdist b714519
- upgraded to 0.73
cvsdist b714519
cvsdist b714519
* Tue Jan 27 1998 Otto Hammersmith <otto@redhat.com>
cvsdist b714519
- umax drivers were missing from the file list.
cvsdist b714519
cvsdist b714519
* Sun Dec  7 1997 Otto Hammersmith <otto@redhat.com>
cvsdist b714519
- added wmconfig
cvsdist b714519
- fixed library problem
cvsdist b714519
cvsdist b714519
* Tue Dec  2 1997 Otto Hammersmith <otto@redhat.com>
cvsdist b714519
- added changelog
cvsdist b714519
- got newer package from Sane web site than our old powertools one