!9 fix relative path of libsofthsm2.so to ensure file exists

From: @panxh_purple
Reviewed-by: @zhujianwei001
Signed-off-by: @zhujianwei001
This commit is contained in:
openeuler-ci-bot 2020-12-29 14:16:04 +08:00 committed by Gitee
commit c9f239db17

View File

@ -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<panxiaohe@huawei.com> 2.6.1-2
- fix relative path of libsofthsm2.so to ensure file exists
* Fri Jul 24 2020 linwei<linwei54@huawei.com> 2.6.1-1
- update softhsm to 2.6.1