Name: linux-sgx Version: 2.11 Release: 4 Summary: Intel(R) Software Guard Extensions for Linux* OS ExclusiveArch: x86_64 License: BSD-3-Clause URL: https://github.com/intel/linux-sgx Source0: https://github.com/intel/linux-sgx/archive/sgx_%{version}.tar.gz Source1: https://github.com/intel/SGXDataCenterAttestationPrimitives/archive/DCAP_1.8.tar.gz Source2: https://github.com/llvm-mirror/openmp/archive/svn-tags/RELEASE_801.zip Source3: https://github.com/oneapi-src/oneDNN/archive/v1.1.1.tar.gz Source4: https://github.com/intel/ipp-crypto/archive/ipp-crypto_2019_update5.zip Source5: https://download.01.org/intel-sgx/sgx-linux/2.11/optimized_libs_2.11.tar.gz Source6: https://download.01.org/intel-sgx/sgx-linux/2.11/prebuilt_ae_2.11.tar.gz Source7: https://github.com/intel/intel-sgx-ssl/archive/lin_2.10_1.1.1g.zip Source8: https://www.openssl.org/source/old/1.1.1/openssl-1.1.1g.tar.gz Source9: https://download.01.org/intel-sgx/sgx-dcap/1.8/linux/prebuilt_dcap_1.8.tar.gz Patch0: 0001-fix-error-for-openeuler-building.patch Patch1: 0001-fix-building-error-for-systemd.patch BuildRequires: gcc protobuf-devel libtool ocaml-ocamlbuild openssl-devel cmake python3-unversioned-command curl-devel createrepo_c Requires: glibc %description Intel(R) Software Guard Extensions (Intel(R) SGX) is an Intel technology for application developers seeking to protect select code and data from disclosure or modification. %define debug_package %{nil} %package sdk Summary: Development files for linux sgx Requires: glibc tar make Provides: libsgx_urts_sim.so()(64bit) %description sdk %{summary}. %package_help %prep %setup -q -b 0 -n linux-sgx-sgx_2.11 %setup -q -D -a 1 -n linux-sgx-sgx_2.11/external/dcap_source %setup -q -D -a 2 -n linux-sgx-sgx_2.11/external/openmp/openmp_code %setup -q -D -a 3 -n linux-sgx-sgx_2.11/external/dnnl/dnnl %setup -q -D -a 4 -n linux-sgx-sgx_2.11/external/ippcp_internal/ipp-crypto/ %setup -q -D -a 5 -n linux-sgx-sgx_2.11 %setup -q -D -a 6 -n linux-sgx-sgx_2.11 %patch0 -p1 %patch1 -p1 %build cp %{SOURCE7} %{SOURCE8} %{SOURCE9} ./ pushd external/dcap_source/ mv SGXDataCenterAttestationPrimitives-DCAP_1.8/* SGXDataCenterAttestationPrimitives-DCAP_1.8/.[^.]* . rmdir SGXDataCenterAttestationPrimitives-DCAP_1.8 popd pushd external/openmp/openmp_code mv openmp-svn-tags-RELEASE_801/* . rmdir openmp-svn-tags-RELEASE_801 popd pushd external/dnnl/dnnl mv oneDNN-1.1.1/* oneDNN-1.1.1/.[^.]* . rmdir oneDNN-1.1.1 popd pushd external/ippcp_internal/ipp-crypto mv ipp-crypto-ipp-crypto_2019_update5/* ipp-crypto-ipp-crypto_2019_update5/.[^.]* . rmdir ipp-crypto-ipp-crypto_2019_update5 popd make preparation make sdk_install_pkg_no_mitigation linux/installer/bin/sgx_linux_x64_sdk_2.11.100.2.bin --prefix=./ source ./sgxsdk/environment make rpm_local_repo cp linux/installer/rpm/sgx_rpm_local_repo/*.rpm %_rpmdir/x86_64 %install install -D ./linux/installer/bin/sgx_linux_x64_sdk_2.11.100.2.bin $RPM_BUILD_ROOT/opt/sgx_linux_x64_sdk_2.11.100.2.bin %pre %post sdk /opt/sgx_linux_x64_sdk_2.11.100.2.bin -prefix=/opt/intel/ source /opt/intel/sgxsdk/environment rm -rf /opt/sgx_linux_x64_sdk_2.11.100.2.bin %files sdk /opt/sgx_linux_x64_sdk_2.11.100.2.bin %changelog * Sat Feb 20 2021 chenmaodong - 2.11-4 - add new symbol in Provides item * Sat Feb 20 2021 chenmaodong - 2.11-3 - fix license error in spec * Mon Jan 18 2021 chenmaodong - 2.11-2 - fix arm building error * Thu Dec 29 2020 chenmaodong - 2.11-1 - init