diff --git a/virtCCA_sdk-v0.1.0.tar.gz b/virtCCA_sdk-v0.1.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..c81b1201dba275ffc8e000e795a9aeadff2785db Binary files /dev/null and b/virtCCA_sdk-v0.1.0.tar.gz differ diff --git a/virtCCA_sdk.spec b/virtCCA_sdk.spec new file mode 100644 index 0000000000000000000000000000000000000000..422d5ab4fc5b0623313c59d8d537080728808fdd --- /dev/null +++ b/virtCCA_sdk.spec @@ -0,0 +1,60 @@ +Name: virtCCA_sdk +Version: 0.1.0 +Release: 1 +ExclusiveArch: aarch64 +Summary: %{name} is a SDK for developing virtCCA remote attestation and key derivation. + +License: MulanPSL-2.0 +URL: https://gitee.com/openeuler/virtCCA_sdk +Source0: https://gitee.com/openeuler/virtCCA_sdk/repository/archive/virtCCA_sdk-v%{version}.tar.gz + +BuildRequires: gcc gcc-c++ glibc glibc-devel glib2-devel cmake openssl openssl-devel rpm + +Requires: openssl-libs + +%description +%{name} is a SDK for developing virtCCA remote attestation and key derivation. + +%package devel +Summary: Development files for %{name} +Requires: openssl-libs + +%description devel +%{name}-devel is a SDK for developing virtCCA remote attestation and key derivation. + +%prep +%autosetup -n %{name}-v%{version} + +%build +cd attestation/rim_ref +cmake -S . -B build +cmake --build build + +cd ../sdk +cmake -S . -B build +cmake --build build + +%install +install -d %{buildroot}/%{_bindir} +install -pm 755 attestation/rim_ref/output/gen_rim_ref %{buildroot}/%{_bindir} + +install -d %{buildroot}/%{_libdir} +install -pm 644 attestation/sdk/build/libvccaattestation.a %{buildroot}/%{_libdir} + +install -d %{buildroot}/%{_includedir} +install -pm 644 attestation/sdk/include/attestation.h %{buildroot}/%{_includedir} + +%files +%license License/LICENSE +%license License/Third_Party_Open_Source_Software_Notice.md +%defattr(-,root,root) +%{_bindir}/gen_rim_ref + +%files devel +%defattr(-,root,root) +%{_includedir}/attestation.h +%{_libdir}/libvccaattestation.a + +%changelog +* Tue May 28 2024 lishengjie - 0.1.0-1 +- DESC:init virtCCA_sdk