auto-import sane-backends-1.0.12-4 from sane-backends-1.0.12-4.src.rpm
This commit is contained in:
parent
9697eb8872
commit
4e59a1972b
@ -1,2 +1 @@
|
|||||||
plustek-sane-0.45-5.tar.gz
|
sane-backends-1.0.12.tar.gz
|
||||||
sane-backends-1.0.9.tar.gz
|
|
||||||
|
@ -1,22 +1,17 @@
|
|||||||
Summary: Scanner access software.
|
Summary: Scanner access software.
|
||||||
Name: sane-backends
|
Name: sane-backends
|
||||||
Version: 1.0.9
|
Version: 1.0.12
|
||||||
Release: 5.5
|
Release: 4
|
||||||
License: GPL (programs), relaxed LGPL (libraries), and public domain (docs)
|
License: GPL (programs), relaxed LGPL (libraries), and public domain (docs)
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
Source0: ftp://ftp.mostang.com/pub/sane/sane-%{version}/%{name}-%{version}.tar.gz
|
Source0: ftp://ftp.mostang.com/pub/sane/sane-%{version}/%{name}-%{version}.tar.gz
|
||||||
Source1: sane.png
|
Source1: sane.png
|
||||||
Source2: plustek-sane-0.45-5.tar.gz
|
Patch0: sane-backends-1.0.7-autoload.patch
|
||||||
Patch0: sane-sparc.patch
|
Patch1: sane-backends-1.0.11-rpath.patch
|
||||||
Patch1: sane-backends-1.0.7-autoload.patch
|
Patch2: sane-backends-1.0.11-docdir.patch
|
||||||
Patch2: sane-backends-1.0.8-rpath.patch
|
|
||||||
Patch3: sane-backends-1.0.8-docdir.patch
|
|
||||||
Patch4: sane-backends-1.0.9-errorchk.patch
|
|
||||||
Patch5: sane-backends-1.0.9-hp101.patch
|
|
||||||
Patch6: sane-backends-1.0.10-security.patch
|
|
||||||
URL: http://www.mostang.com/sane/
|
URL: http://www.mostang.com/sane/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
BuildRequires: tetex-latex libusb-devel
|
BuildRequires: tetex-latex libusb-devel libieee1284-devel
|
||||||
# Backend maintainer says to leave gphoto2 disabled for now.
|
# Backend maintainer says to leave gphoto2 disabled for now.
|
||||||
%define gphoto2_support 0
|
%define gphoto2_support 0
|
||||||
%if %{gphoto2_support}
|
%if %{gphoto2_support}
|
||||||
@ -45,7 +40,7 @@ also install the sane-backends-devel package.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: The SANE (a universal scanner interface) development toolkit.
|
Summary: The SANE (a universal scanner interface) development toolkit.
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: sane-backends = %{version}
|
Requires: sane-backends = %{version}, libusb-devel, libieee1284-devel
|
||||||
Obsoletes: sane-devel
|
Obsoletes: sane-devel
|
||||||
Provides: sane-devel
|
Provides: sane-devel
|
||||||
|
|
||||||
@ -55,24 +50,24 @@ Static libraries and header files for writing Scanner Access Now Easy
|
|||||||
included in the sane-backends package.
|
included in the sane-backends package.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -a 2
|
%setup -q
|
||||||
%patch0 -p1 -b .sparc
|
|
||||||
|
|
||||||
# Make sure to load SCSI modules if not already loaded (bug #59979).
|
# Make sure to load SCSI modules if not already loaded (bug #59979).
|
||||||
cd sanei
|
cd sanei
|
||||||
%patch1 -p0 -b .autoload
|
%patch0 -p0 -b .autoload
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
%patch2 -p1 -b .rpath
|
%patch1 -p1 -b .rpath
|
||||||
%patch3 -p1 -b .docdir
|
%patch2 -p1 -b .docdir
|
||||||
%patch4 -p1 -b .errorchk
|
|
||||||
%patch5 -p1 -b .hp101
|
|
||||||
%patch6 -p1 -b .security
|
|
||||||
|
|
||||||
# Fix bug #62847.
|
# Fix bug #62847.
|
||||||
perl -pi -e 's,/dev/usbscanner0?,/dev/usb/scanner0,' backend/*.conf
|
perl -pi -e 's,/dev/usbscanner0?,/dev/usb/scanner0,' backend/*.conf
|
||||||
|
|
||||||
# We patched configure.in, so regenerate configure.
|
# We patched configure.in, so regenerate configure.
|
||||||
|
sed '/^# libtool\.m4/,$d' < acinclude.m4 > acinclude.m4.new
|
||||||
|
mv -f acinclude.m4{.new,}
|
||||||
|
aclocal
|
||||||
|
libtoolize --force --copy
|
||||||
autoconf
|
autoconf
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -89,28 +84,42 @@ make
|
|||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
%{makeinstall} docdir=%{buildroot}/%{_docdir}/%{name}-%{version}
|
%{makeinstall} docdir=%{buildroot}/%{_docdir}/%{name}-%{version}
|
||||||
perl -pi -e "s/installed.*/installed=yes/g" $RPM_BUILD_ROOT%{_libdir}/libsane.la
|
perl -pi -e "s/installed.*/installed=yes/g" $RPM_BUILD_ROOT%{_libdir}/libsane.la
|
||||||
/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}
|
/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_libdir}/sane
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
||||||
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps
|
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps
|
||||||
rm -f %{buildroot}%{_bindir}/gamma4scanimage
|
rm -f %{buildroot}%{_bindir}/gamma4scanimage
|
||||||
|
rm -f %{buildroot}%{_libdir}/sane/*.a %{buildroot}%{_libdir}/*.a
|
||||||
|
|
||||||
|
%find_lang %name
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if grep -q /usr/lib/sane /etc/ld.so.conf; then
|
|
||||||
FNAME=`mktemp /etc/ld.so.conf.XXXXXX`
|
FNAME=`mktemp /etc/ld.so.conf.XXXXXX`
|
||||||
grep -v "/usr/lib/sane" /etc/ld.so.conf > ${FNAME}
|
grep -v "%{_libdir}/sane" /etc/ld.so.conf > ${FNAME}
|
||||||
|
echo "%{_libdir}/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 "%{_libdir}/sane" /etc/ld.so.conf > ${FNAME}
|
||||||
cat ${FNAME} > /etc/ld.so.conf
|
cat ${FNAME} > /etc/ld.so.conf
|
||||||
rm -f ${FNAME}
|
rm -f ${FNAME}
|
||||||
fi
|
fi
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%triggerpostun -- sane
|
||||||
|
if ! grep -q "^%{_libdir}/sane\$" /etc/ld.so.conf; then
|
||||||
|
echo "%{_libdir}/sane" >> /etc/ld.so.conf
|
||||||
|
fi
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files -f %{name}.lang
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir /etc/sane.d
|
%dir /etc/sane.d
|
||||||
%config /etc/sane.d/*
|
%config /etc/sane.d/*
|
||||||
@ -119,7 +128,7 @@ fi
|
|||||||
%{_sbindir}/*
|
%{_sbindir}/*
|
||||||
%{_libdir}/libsane*.so.*
|
%{_libdir}/libsane*.so.*
|
||||||
%dir %{_libdir}/sane
|
%dir %{_libdir}/sane
|
||||||
%{_libdir}/sane/libsane-*.so.*
|
%{_libdir}/sane/*.so.*
|
||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
%{_datadir}/pixmaps/sane.png
|
%{_datadir}/pixmaps/sane.png
|
||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
@ -131,30 +140,33 @@ fi
|
|||||||
%{_libdir}/libsane*.la
|
%{_libdir}/libsane*.la
|
||||||
%{_libdir}/libsane*.so
|
%{_libdir}/libsane*.so
|
||||||
%{_libdir}/sane/*.la
|
%{_libdir}/sane/*.la
|
||||||
%{_libdir}/sane/libsane-*.so
|
%{_libdir}/sane/*.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Jan 2 2004 Tim Waugh <twaugh@redhat.com> 1.0.9-5.5
|
* Thu Jul 24 2003 Tim Waugh <twaugh@redhat.com> 1.0.12-4
|
||||||
- Remove %%{_libdir}/sane from ld.so.conf on upgrade.
|
- The devel package requires libieee1284-devel.
|
||||||
|
|
||||||
* Wed Dec 24 2003 Tim Waugh <twaugh@redhat.com> 1.0.9-5.4
|
* Mon Jun 16 2003 Tim Waugh <twaugh@redhat.com> 1.0.12-3
|
||||||
- Don't run ldconfig in %%{_libdir}/sane even in %%install.
|
- Use libtoolize and aclocal to fix build.
|
||||||
|
- Build requires libieee1284-devel (to fix bug #75849).
|
||||||
|
|
||||||
* Tue Dec 16 2003 Tim Waugh <twaugh@redhat.com> 1.0.9-5.3
|
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
||||||
- Put rpath tricks back in but take out ld.so.conf tampering (better fix
|
- rebuilt
|
||||||
for bug #110174).
|
|
||||||
|
|
||||||
* Thu Dec 4 2003 Tim Waugh <twaugh@redhat.com> 1.0.9-5.2.1
|
* Sun May 25 2003 Tim Waugh <twaugh@redhat.com> 1.0.12-1
|
||||||
- Rebuilt.
|
- 1.0.12.
|
||||||
|
|
||||||
* Thu Dec 4 2003 Tim Waugh <twaugh@redhat.com> 1.0.9-5.2
|
* Thu Mar 20 2003 Tim Waugh <twaugh@redhat.com> 1.0.11-1
|
||||||
- Fix rpath in backends (bug #110174).
|
- Shipped libtool is broken; use installed script instead.
|
||||||
|
- Remove files not shipped.
|
||||||
|
- Fix some /usr/lib references.
|
||||||
|
- 1.0.11.
|
||||||
|
- Drop sane-sparc, errorchk, hp101, security patches.
|
||||||
|
- Update rpath, docdir patches.
|
||||||
|
- Use %%find_lang.
|
||||||
|
|
||||||
* Thu Jul 24 2003 Tim Waugh <twaugh@redhat.com> 1.0.9-5.1.1
|
* Fri Mar 7 2003 Tim Waugh <twaugh@redhat.com>
|
||||||
- Rebuilt.
|
- sane-backends-devel requires libusb-devel (bug #85742).
|
||||||
|
|
||||||
* Thu Jul 24 2003 Tim Waugh <twaugh@redhat.com> 1.0.9-5.1
|
|
||||||
- Update plustek backend to 0.45-5 (bug #100659).
|
|
||||||
|
|
||||||
* Mon Feb 10 2003 Tim Waugh <twaugh@redhat.com> 1.0.9-5
|
* Mon Feb 10 2003 Tim Waugh <twaugh@redhat.com> 1.0.9-5
|
||||||
- Fix saned problems.
|
- Fix saned problems.
|
||||||
|
Loading…
Reference in New Issue
Block a user