diff --git a/softhsm.spec b/softhsm.spec index 95fbf58d6b3b7cebaa91616ddc6d4383c6a8e5c2..5762e7aa416d1e33791dac5bccc431cdb21143bd 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 + * Fri Jul 24 2020 linwei 2.6.1-1 - update softhsm to 2.6.1