From bddaaa25ff74fab56d1fec370334ae5cc62239bb Mon Sep 17 00:00:00 2001 From: whzhe Date: Sun, 7 Feb 2021 09:42:04 +0800 Subject: [PATCH] fix compile error of secgear --- secGear.spec | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/secGear.spec b/secGear.spec index 6595006..305c250 100644 --- a/secGear.spec +++ b/secGear.spec @@ -1,6 +1,6 @@ Name: secGear Version: v0.1.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: secGear is an SDK to develop confidential computing apps based on hardware enclave features ExclusiveArch: x86_64 @@ -9,7 +9,7 @@ License: Mulan PSL v2 URL: https://gitee.com/openeuler-src/secGear Source0: %{name}-%{version}.tar.gz -BuildRequires: gcc python3 automake autoconf libtool gcc-g++ +BuildRequires: gcc python3 automake autoconf libtool BUildRequires: glibc glibc-devel %ifarch x86_64 BUildRequires: linux-sgx-driver linux-sgx-sdk libsgx-launch libsgx-urts @@ -66,14 +66,16 @@ install -pm 644 inc/host_inc/gp/*.h %{buildroot}/%{_includedir}/secGear/host_inc install -pm 644 inc/enclave_inc/*.h %{buildroot}/%{_includedir}/secGear/enclave_inc install -pm 644 inc/enclave_inc/gp/*.h %{buildroot}/%{_includedir}/secGear/enclave_inc/gp %endif - +rm %{buildroot}/home* -rf %files %defattr(-,root,root) -%{_libdir}/libsecgear_tee.a -%{_libdir}/libsecgear.so +%{_lib}/libsecgear_tee.a +%{_lib}/libsecgear.so +%{_lib}/libsecgearisim.so %ifarch x86_64 -%{_libdir}/libsgx_0.so +%{_lib}/libsgx_0.so +%{_lib}/libsgxsim_0.so %else #The itrustee OS is not released %endif @@ -83,6 +85,9 @@ install -pm 644 inc/enclave_inc/gp/*.h %{buildroot}/%{_includedir}/secGear/encla %{_includedir}/secGear/* %changelog +* Sun Feb 7 2021 wanghongzhe - v0.1.0-2 +- DESC:fix compile error of secgear + * Wed Feb 3 2021 wanghongzhe - v0.1.0-1 - DESC:init secGear.tar.gz -- Gitee