From 120e247f134e38a16c9178abe71e38002d11add1 Mon Sep 17 00:00:00 2001 From: panxiaohe Date: Fri, 25 Dec 2020 16:29:57 +0800 Subject: [PATCH] fix relative path of libsofthsm2.so to ensure file exists --- softhsm.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/softhsm.spec b/softhsm.spec index ba93696..41d6a63 100644 --- a/softhsm.spec +++ b/softhsm.spec @@ -1,6 +1,6 @@ Name: softhsm Version: 2.6.1 -Release: 1 +Release: 2 Summary: Software version of a PKCS#11 Hardware Security Module License: BSD URL: http://www.opendnssec.org/ @@ -52,9 +52,10 @@ cp src/lib/*.h %{buildroot}%{_includedir}/softhsm mkdir -p %{buildroot}/%{_sharedstatedir}/softhsm/tokens mkdir -p %{buildroot}/%{_libdir}/softhsm/ -cd %{buildroot}/%{_libdir} -ln -sf ./pkcs11/libsofthsm2.so ./softhsm/libsofthsm.so -ln -sf ./pkcs11/libsofthsm2.so %{buildroot}/%{_libdir}/libsofthsm2.so +ln -s ../pkcs11/libsofthsm2.so %{buildroot}/%{_libdir}/softhsm/libsofthsm.so +# Link libsofthsm2.so to /usr/lib64 because NSS needs it to +# be in the standard library search path. +( cd %{buildroot}/%{_libdir} ; ln -s pkcs11/libsofthsm2.so) rm %{buildroot}/%{_sysconfdir}/softhsm2.conf.sample rm -f %{buildroot}/%{_libdir}/pkcs11/*a @@ -96,6 +97,9 @@ if [ -f /var/softhsm/slot0.db ]; then fi %changelog +* Fri Dec 25 2020 panxiaohe 2.6.1-2 +- fix relative path of libsofthsm2.so to ensure file exists + * Thu Aug 27 2020 linwei 2.6.1-1 - update softhsm to 2.6.1 -- Gitee