From 079ea99963aae4a3734547ab32da6374e27dab9c Mon Sep 17 00:00:00 2001 From: Jan Synacek Date: Mon, 24 Mar 2014 11:40:32 +0100 Subject: [PATCH] re-symlink unversioned libraries, so ldconfig is not confused Resolves: #1028557 --- openldap.spec | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/openldap.spec b/openldap.spec index 67470d5..75a3a1e 100644 --- a/openldap.spec +++ b/openldap.spec @@ -5,7 +5,7 @@ Name: openldap Version: 2.4.39 -Release: 4%{?dist} +Release: 5%{?dist} Summary: LDAP support libraries Group: System Environment/Daemons License: OpenLDAP @@ -324,6 +324,16 @@ rm -f %{buildroot}%{_sbindir}/slap{acl,add,auth,cat,dn,index,passwd,test,schema} rm -f %{buildroot}%{_libdir}/slap{acl,add,auth,cat,dn,index,passwd,test,schema} for X in acl add auth cat dn index passwd test schema; do ln -s slapd %{buildroot}%{_sbindir}/slap$X ; done +# re-symlink unversioned libraries, so ldconfig is not confused +pushd %{buildroot}%{_libdir} +v=%{version} +version=$(echo ${v%.[0-9]*}) +for lib in liblber libldap libldap_r libslapi; do + rm -f ${lib}.so + ln -s ${lib}-${version}.so.2 ${lib}.so +done +popd + # tweak permissions on the libraries to make sure they're correct chmod 0755 %{buildroot}%{_libdir}/lib*.so* chmod 0644 %{buildroot}%{_libdir}/lib*.*a @@ -567,6 +577,9 @@ exit 0 %{_mandir}/man3/* %changelog +* Mon Mar 24 2014 Jan Synáček - 2.4.39-5 +- re-symlink unversioned libraries, so ldconfig is not confused (#1028557) + * Tue Mar 4 2014 Jan Synáček - 2.4.39-4 - don't automatically convert slapd.conf to slapd-config