fix library symlinks

This commit is contained in:
Petr Lautrbach 2013-02-01 19:10:54 +01:00
parent e0f851f3e1
commit bf17bc4131

View File

@ -8,7 +8,7 @@
Summary: The Cyrus SASL library Summary: The Cyrus SASL library
Name: cyrus-sasl Name: cyrus-sasl
Version: 2.1.26 Version: 2.1.26
Release: 3%{?dist} Release: 4%{?dist}
License: BSD with advertising License: BSD with advertising
Group: System Environment/Libraries Group: System Environment/Libraries
# Source0 originally comes from ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/; # Source0 originally comes from ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/;
@ -326,9 +326,16 @@ install -m755 -d $RPM_BUILD_ROOT/%{_plugindir2}
./libtool --tag=CC --mode=install \ ./libtool --tag=CC --mode=install \
install -m755 lib/sasl2-shared-mechlist $RPM_BUILD_ROOT/%{_sbindir}/ install -m755 lib/sasl2-shared-mechlist $RPM_BUILD_ROOT/%{_sbindir}/
# temporary provide copy of system libsasl2 and plugins # temporary provide copy of system libsasl2 and plugins, remove this after necessary rebuilds
install %{_libdir}/libsasl*.so.* $RPM_BUILD_ROOT/%{_libdir} install %{_libdir}/libsasl2.so.2.*.* $RPM_BUILD_ROOT/%{_libdir}
install %{_plugindir2}/*anonymous*.so* %{_plugindir2}/*sasldb*.so* $RPM_BUILD_ROOT/%{_plugindir2} cd $RPM_BUILD_ROOT/%{_libdir}
ln -s libsasl2.so.2.*.* $RPM_BUILD_ROOT/%{_libdir}/libsasl2.so.2
cd -
install %{_plugindir2}/libanonymous.so.2.*.* %{_plugindir2}/libsasldb.so.2.*.* $RPM_BUILD_ROOT/%{_plugindir2}
cd $RPM_BUILD_ROOT/%{_plugindir2}
ln -s libanonymous.so.2.*.* $RPM_BUILD_ROOT/%{_plugindir2}/libanonymous.so.2
ln -s libsasldb.so.2.*.* $RPM_BUILD_ROOT/%{_plugindir2}/libsasldb.so.2
cd -
# Remove unpackaged files from the buildroot. # Remove unpackaged files from the buildroot.
rm -f $RPM_BUILD_ROOT%{_libdir}/sasl2/libotp.* rm -f $RPM_BUILD_ROOT%{_libdir}/sasl2/libotp.*
@ -433,6 +440,9 @@ getent passwd %{username} >/dev/null || useradd -r -g %{username} -d %{homedir}
%{_sbindir}/sasl2-shared-mechlist %{_sbindir}/sasl2-shared-mechlist
%changelog %changelog
* Fri Feb 01 2013 Petr Lautrbach <plautrba@redhat.com> 2.1.26-4
- fix library symlinks
* Thu Jan 31 2013 Rex Dieter <rdieter@fedoraproject.org> 2.1.26-3 * Thu Jan 31 2013 Rex Dieter <rdieter@fedoraproject.org> 2.1.26-3
- actually apply size_t patch (#906519) - actually apply size_t patch (#906519)