From 02d74a925a8a32c982ff6b664e856f81645445ee Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 25 Jul 2003 02:38:23 +0000 Subject: fix libsmbclientr symlink (patch by Alex Duggan for bug #247) (This used to be commit 67f3a26c26c3e88f3764bb1c34e94c1f6cbc58c0) --- packaging/RedHat/samba.spec.tmpl | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/packaging/RedHat/samba.spec.tmpl b/packaging/RedHat/samba.spec.tmpl index 4c5a480a27..43a9a503b3 100644 --- a/packaging/RedHat/samba.spec.tmpl +++ b/packaging/RedHat/samba.spec.tmpl @@ -7,7 +7,7 @@ Group: Networking Source: http://download.samba.org/samba/ftp/samba-%{version}.tar.bz2 Packager: Gerald Carter [Samba-Team] Requires: pam >= 0.72 kernel >= 2.2.1 glibc >= 2.1.2 -Prereq: chkconfig fileutils +Prereq: chkconfig fileutils /sbin/ldconfig Provides: samba = %{version} Obsoletes: samba-common, samba-client, samba-swat BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -147,20 +147,6 @@ install -m 755 source/bin/libsmbclient.so $RPM_BUILD_ROOT%{prefix}/lib/ install -m 755 source/bin/libsmbclient.a $RPM_BUILD_ROOT%{prefix}/lib/ install -m 644 source/include/libsmbclient.h $RPM_BUILD_ROOT%{prefix}/include/ -# Install SWAT helper files -#for i in swat/help/*.html docs/htmldocs/*.html -#do -# install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/help -#done -#for i in swat/images/*.gif -#do -# install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/images -#done -#for i in swat/include/*.html -#do -# install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/include -#done - # Install the miscellany install -m755 swat/README $RPM_BUILD_ROOT%{prefix}/share/swat/README install -m755 packaging/RedHat/smbprint $RPM_BUILD_ROOT%{prefix}/bin @@ -287,11 +273,8 @@ else rm -f /etc/samba/samba.stack fi -# Create winbind nss client symlink - -if [ -e /lib/libnss_winbind.so ]; then - ln -sf /lib/libnss_winbind.so /lib/libnss_winbind.so.2 -fi +## call ldconfig to create the version symlink for libsmbclient.so +/sbin/ldconfig %preun if [ $1 = 0 ] ; then @@ -366,6 +349,8 @@ if [ $1 = 0 ] ; then fi fi +/sbin/ldconfig + %files %defattr(-,root,root) %doc README COPYING Manifest Read-Manifest-Now -- cgit