Name: uke-gbos-pkvm-probe Version: 0.1.0 Release: 1%{?dist} Summary: AArch64 KVM and Android protected VM capability probe License: MIT Source0: probe-googlebookos-pkvm.cpp ExclusiveArch: aarch64 BuildRequires: gcc-c++ BuildRequires: glibc-static BuildRequires: kernel-headers %global debug_package %{nil} %description Reports native AArch64 protected VM creation, the Android pVM firmware INFO ioctl, and availability of the vhost-vsock device in the running kernel. %prep %setup -q -c -T cp -p %{SOURCE0} . %build %{__cc} %{build_cxxflags} -std=c++17 -x c++ -static -fno-exceptions -fno-rtti \ -Wall -Wextra -Werror -o %{name} probe-googlebookos-pkvm.cpp %install install -Dpm755 %{name} %{buildroot}%{_libexecdir}/%{name} %check readelf -h %{name} | grep -Eq 'Machine:[[:space:]]+AArch64' ! readelf -l %{name} | grep -q 'Requesting program interpreter' %files %{_libexecdir}/%{name}