diff options
author | Michael Adam <obnox@samba.org> | 2008-05-23 15:12:01 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-08-13 11:54:03 +0200 |
commit | 14c0f896b387e450f4513e4a82f20e0427cca559 (patch) | |
tree | 5e932b987d161a257a341b934b36d47c4d50e802 /packaging | |
parent | e3d29de0445cedf0456390b5c4f70a8c604d9e86 (diff) | |
download | samba-14c0f896b387e450f4513e4a82f20e0427cca559.tar.gz samba-14c0f896b387e450f4513e4a82f20e0427cca559.tar.bz2 samba-14c0f896b387e450f4513e4a82f20e0427cca559.zip |
packaging(RHEL-CTDB): fix placement and link direction of new shared libs
libwbclient, libtalloc, libtdb, and libnetapi are now installed
into /usr/lib{,64} by their SONAME. The symlink is made from
the .so files to point to the SONAME files (e.g., libtdb.so.1).
Michael
(This used to be commit d18287b6284597878bc3683f16f001b949857e54)
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/RHEL-CTDB/samba.spec | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/packaging/RHEL-CTDB/samba.spec b/packaging/RHEL-CTDB/samba.spec index 4dea6d7854..49784bec31 100644 --- a/packaging/RHEL-CTDB/samba.spec +++ b/packaging/RHEL-CTDB/samba.spec @@ -273,11 +273,29 @@ ln -s /%{_libdir}/libsmbsharemodes.so $RPM_BUILD_ROOT%{_libdir}/libsmbsharemodes # Install pam_smbpass.so install -m755 source/bin/pam_smbpass.so $RPM_BUILD_ROOT/%{_libarch}/security/pam_smbpass.so +# Put the shared libraries to their SONAME under /usr/lib{,64} +# and create the proper .so symlinks # -ln -s %{_libdir}/samba/libwbclient.so $RPM_BUILD_ROOT/%{_libdir}/libwbclient.so.0 -ln -s %{_libdir}/samba/libtalloc.so $RPM_BUILD_ROOT/%{_libdir}/libtalloc.so.1 -ln -s %{_libdir}/samba/libtdb.so $RPM_BUILD_ROOT/%{_libdir}/libtdb.so.0 -ln -s %{_libdir}/samba/libnetapi.so $RPM_BUILD_ROOT/%{_libdir}/libnetapi.so.0 +# libwbclient +rm -f $RPM_BUILD_ROOT%{_libdir}/samba/libwbclient.so* +install -m 755 source/bin/libwbclient.so \ + $RPM_BUILD_ROOT%{_libdir}/libwbclient.so.0 +ln -s libwbclient.so.0 $RPM_BUILD_ROOT%{_libdir}/libwbclient.so +# libtalloc +rm -f $RPM_BUILD_ROOT%{_libdir}/samba/libtalloc.so* +install -m 755 source/bin/libtalloc.so \ + $RPM_BUILD_ROOT%{_libdir}/libtalloc.so.1 +ln -s libtalloc.so.1 $RPM_BUILD_ROOT%{_libdir}/libtalloc.so +# libtdb +rm -f $RPM_BUILD_ROOT%{_libdir}/samba/libtdb.so* +install -m 755 source/bin/libtdb.so \ + $RPM_BUILD_ROOT%{_libdir}/libtdb.so.1 +ln -s libtdb.so.1 $RPM_BUILD_ROOT%{_libdir}/libtdb.so +# libnetapi +rm -f $RPM_BUILD_ROOT%{_libdir}/samba/libnetapi.so* +install -m 755 source/bin/libnetapi.so \ + $RPM_BUILD_ROOT%{_libdir}/libnetapi.so.0 +ln -s libnetapi.so.0 $RPM_BUILD_ROOT%{_libdir}/libnetapi.so ## cleanup /bin/rm -rf $RPM_BUILD_ROOT/usr/lib*/samba/security @@ -507,13 +525,9 @@ exit 0 %{_includedir}/wbclient.h %{_includedir}/talloc.h %{_includedir}/tdb.h -%{_libdir}/samba/libnetapi.so* %{_libdir}/libnetapi.so* -%{_libdir}/samba/libtalloc.so* %{_libdir}/libtalloc.so* -%{_libdir}/samba/libtdb.so* %{_libdir}/libtdb.so* -%{_libdir}/samba/libwbclient.so* %{_libdir}/libwbclient.so* %{_sbindir}/winbind |