%global debug_package %{nil} Name: uke-control-ddc-config-check Version: 1.0.0 Release: 1%{?dist} Summary: ARM64 test receipt for the Rust PowerDevil DDC helper License: MIT ExclusiveArch: aarch64 Source0: %{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros crate(libc/default) binutils coreutils grep sed %description Checks DDC settings generation against the original offline topology and administrator configuration fixtures. Ships only test input digests. %prep %autosetup %cargo_prep %build cargo build --offline --release %install sha256sum src/main.rs reference/src/uke-ddc-config reference/tests/ddc-config.sh LICENSE > ddc-config-sources.sha256 install -D -m644 ddc-config-sources.sha256 %{buildroot}%{_docdir}/%{name}/ddc-config-sources.sha256 %check sh reference/tests/ddc-config.sh binary="$PWD/target/release/uke-ddc-config" test "$(grep -c '^run_helper() ' reference/tests/ddc-config.sh)" = 1 sed '/^run_helper() /c\run_helper() { "$UKE_DDC_CONFIG" "$sysfs"; }' reference/tests/ddc-config.sh > installed-contract.sh UKE_DDC_CONFIG="$binary" sh installed-contract.sh printf 'Rust DDC binary passed the unchanged topology and precedence assertions\n' cargo test --offline --release -- --nocapture readelf -h "$binary" | grep -E 'Machine:.*AArch64' readelf -d "$binary" > ddc-config-linkage.txt if grep -F 'libstdc++' ddc-config-linkage.txt; then exit 1; fi %files %license LICENSE %{_docdir}/%{name}/ddc-config-sources.sha256 %changelog * Mon Nov 30 2026 Uke Linux Maintainers - 1.0.0-1 - Verify original PowerDevil DDC behavior with the Rust helper.