expect: Install lib at the right location and remove RPATH.

This commit is contained in:
Michael Tremer 2012-03-02 14:55:40 +01:00
parent d0550ef794
commit a3f7adb774
1 changed files with 11 additions and 1 deletions

View File

@ -5,7 +5,7 @@
name = expect
version = 5.45
release = 1
release = 2
thisapp = %{name}%{version}
groups = Development/Languages
@ -26,6 +26,7 @@ build
requires
autoconf
automake
chrpath
tcl-devel
end
@ -48,6 +49,15 @@ build
end
install_cmds
# Install lib to right location.
mkdir -pv %{BUILDROOT}%{libdir}
mv -v %{BUILDROOT}/%{libdir}/tcl*/expect%{version}/libexpect%{version}.so \
%{BUILDROOT}%{libdir}
ln -svf libexpect%{version}.so %{BUILDROOT}%{libdir}/libexpect.so
# Remove rpath.
chrpath --delete %{BUILDROOT}%{libdir}/libexpect%{version}.so
# remove cryptdir/decryptdir, as Linux has no crypt command
rm -f %{BUILDROOT}/usr/bin/{cryptdir,decryptdir}
rm -f %{BUILDROOT}/usr/share/man1/{cryptdir,decryptdir}.1*