diff --git a/softhsm.spec b/softhsm.spec index ba9369620e7b609c308bd3a77668e0551e1183f8..41d6a6356ad48ff9af7b12589674a9aa043bac84 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