From 443155895ac057b8a4dcd54d4595fea6457f9d37 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 16 Aug 2018 16:15:05 +0200 Subject: [PATCH] Fix link creation or RPM doesn't install it --- libssh.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/libssh.spec b/libssh.spec index 6a8f0c6..129849f 100644 --- a/libssh.spec +++ b/libssh.spec @@ -1,6 +1,6 @@ Name: libssh Version: 0.8.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A library implementing the SSH protocol License: LGPLv2+ URL: http://www.libssh.org @@ -71,7 +71,12 @@ make DESTDIR=%{buildroot} install/fast -C obj pushd %{buildroot}%{_libdir} for i in libssh.so.4*; do - ln -s "${i}" "${i%libssh*}libssh_threads${i##*libssh}" + _target="${i}" + _link_name="${i%libssh*}libssh_threads${i##*libssh}" + if [ -L "${i}" ]; then + _target="$(readlink ${i})" + fi + ln -s "${_target}" "${_link_name}" done; popd @@ -98,6 +103,9 @@ popd %{_libdir}/libssh.so %changelog +* Thu Aug 16 2018 Andreas Schneider - 0.8.1-4 +- Fix link creation or RPM doesn't install it + * Wed Aug 15 2018 Andreas Schneider - 0.8.1-3 - Add missing so version for libssh_threads.so.4