From: Michael Tremer Date: Fri, 2 Mar 2012 13:55:40 +0000 (+0100) Subject: expect: Install lib at the right location and remove RPATH. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3f7adb774a5787ccc2f2ea3cd9bdda62b0772c4;p=ipfire-3.x.git expect: Install lib at the right location and remove RPATH. --- diff --git a/expect/expect.nm b/expect/expect.nm index 59b4871e3..0c098a379 100644 --- a/expect/expect.nm +++ b/expect/expect.nm @@ -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*