summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-07-25 02:38:23 +0000
committerGerald Carter <jerry@samba.org>2003-07-25 02:38:23 +0000
commit02d74a925a8a32c982ff6b664e856f81645445ee (patch)
tree6436478b66ab8850486e291e089629d9862166fe
parent5373c58212a0f6d357871e4966bce8c7aab9b866 (diff)
downloadsamba-02d74a925a8a32c982ff6b664e856f81645445ee.tar.gz
samba-02d74a925a8a32c982ff6b664e856f81645445ee.tar.bz2
samba-02d74a925a8a32c982ff6b664e856f81645445ee.zip
fix libsmbclientr symlink (patch by Alex Duggan for bug #247)
(This used to be commit 67f3a26c26c3e88f3764bb1c34e94c1f6cbc58c0)
-rw-r--r--packaging/RedHat/samba.spec.tmpl25
1 files 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] <jerry@samba.org>
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