fix relative path of libsofthsm2.so to ensure file exists
This commit is contained in:
parent
565fff549d
commit
cde2a468c5
12
softhsm.spec
12
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<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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user