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