%global debug_package %{nil} Name: uke-control-hardware-policy-check Version: 1.0.0 Release: 1%{?dist} Summary: ARM64 test receipt for the Rust CPU and DSC policy helper License: MIT ExclusiveArch: aarch64 Source0: %{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros crate(libc/default) binutils bash coreutils findutils sed grep %description Validates the CPU restore journal and DSC preference policy against synthetic CPU controls and the signed-source shell reference. This RPM contains test source checksums. %prep %autosetup %cargo_prep %build cargo build --offline --release %install sha256sum Cargo.toml src/main.rs reference/{packaging/hardware-policy,tests/hardware-sleep-policy.sh} LICENSE > hardware-policy-sources.sha256 install -D -m644 hardware-policy-sources.sha256 %{buildroot}%{_docdir}/%{name}/hardware-policy-sources.sha256 %check bash reference/tests/hardware-sleep-policy.sh reference/packaging printf 'Signed-source CPU suspend and DSC policy fixtures passed\n' cargo test --offline --release -- --nocapture binary=target/release/uke-hardware-policy if "$binary" cpu-offline --force > refused.out 2> refused.err; then exit 1; else test "$?" = 64; fi test ! -s refused.out grep -Fx 'Invalid hardware policy command' refused.err readelf -h "$binary" | grep -E 'Machine:.*AArch64' readelf -d "$binary" > hardware-policy-linkage.txt if grep -F 'libstdc++' hardware-policy-linkage.txt; then exit 1; fi %files %license LICENSE %{_docdir}/%{name}/hardware-policy-sources.sha256 %changelog * Mon Nov 30 2026 Uke Linux Maintainers - 1.0.0-1 - Verify CPU lifecycle and DSC preferences with synthetic inputs on AArch64.