diff --git a/linux-sgx.spec b/linux-sgx.spec index bde9a04..e7069d0 100644 --- a/linux-sgx.spec +++ b/linux-sgx.spec @@ -37,8 +37,10 @@ # unreasonable burden fighting the build system for enclave pieces. %global with_aesm 0 +%global with_pccsadmin 0 %if 0%{?fedora} %global with_aesm 1 +%global with_pccsadmin 1 %endif %global with_sysusers_scripts 0 @@ -963,6 +965,7 @@ rmdir %{buildroot}/root/opt/intel/sgx-aesm-service ############################################################ # Host PCCS admin tool +%if %{with_pccsadmin} %__install -d %{buildroot}%{_datadir}/pccsadmin cp external/dcap_source/tools/PccsAdminTool/pccsadmin.py %{buildroot}%{_datadir}/pccsadmin/pccsadmin.py cp -a external/dcap_source/tools/PccsAdminTool/lib %{buildroot}%{_datadir}/pccsadmin/lib @@ -973,7 +976,7 @@ cat > %{buildroot}%{_bindir}/pccsadmin <