diff --git a/sane-backends.spec b/sane-backends.spec index 8f6d700..6971ee3 100644 --- a/sane-backends.spec +++ b/sane-backends.spec @@ -1,7 +1,7 @@ Summary: Scanner access software. Name: sane-backends Version: 1.0.9 -Release: 5.4 +Release: 5.5 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 @@ -99,7 +99,14 @@ rm -f %{buildroot}%{_bindir}/gamma4scanimage %clean rm -rf %{buildroot} -%post -p /sbin/ldconfig +%post +if grep -q /usr/lib/sane /etc/ld.so.conf; 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 +/sbin/ldconfig %postun -p /sbin/ldconfig @@ -127,6 +134,9 @@ rm -rf %{buildroot} %{_libdir}/sane/libsane-*.so %changelog +* Fri Jan 2 2004 Tim Waugh 1.0.9-5.5 +- Remove %%{_libdir}/sane from ld.so.conf on upgrade. + * Wed Dec 24 2003 Tim Waugh 1.0.9-5.4 - Don't run ldconfig in %%{_libdir}/sane even in %%install.