!29 修改sgx-pck-id-retrieval-tool升级规则

From: @hzero1996
Reviewed-by: @blue0613
Signed-off-by: @blue0613
This commit is contained in:
openeuler-ci-bot 2021-11-27 09:41:45 +00:00 committed by Gitee
commit a4bb451c58

View File

@ -1,6 +1,6 @@
Name: linux-sgx
Version: 2.11.100
Release: 9
Release: 10
Summary: Intel(R) Software Guard Extensions for Linux* OS
ExclusiveArch: x86_64
License: BSD-3-Clause
@ -732,7 +732,7 @@ fi
################################################################################
# Install the SGX_PCK_ID_RETRIEVE_TOOL
ln -s /opt/intel/sgx-pck-id-retrieval-tool/PCKIDRetrievalTool /usr/local/bin/PCKIDRetrievalTool
ln -sf /opt/intel/sgx-pck-id-retrieval-tool/PCKIDRetrievalTool /usr/local/bin/PCKIDRetrievalTool
retval=$?
if test $retval -ne 0; then
@ -821,7 +821,9 @@ echo -e "Uninstallation succeed!"
%postun -n sgx-pck-id-retrieval-tool
# Removing SGX_PCK_ID_RETRIEVE_TOOL soft link file
rm -f /usr/local/bin/PCKIDRetrievalTool
if [ "$1" = "0" ]; then
rm -f /usr/local/bin/PCKIDRetrievalTool
fi
echo -e "Uninstallation succeed!"
@ -918,6 +920,9 @@ fi
%files -n sgx-ra-service -f %{TOOLS_INSTALLER_RPM_DIR}/sgx-ra-service/build/list-sgx-ra-service
%changelog
* Sat Nov 27 2021 wangcheng <wangcheng156@huawei.com> -2.11.100-10
- change the post and postun script of sgx-pck-id-retrieval-tool
* Sat Sep 9 2021 wangcheng <wangcheng156@huawei.com> -2.11.100-9
- rebuild sgxsdk install package