%global debug_package %{nil} Name: uke-control-power-profile-check Version: 1.0.0 Release: 1%{?dist} Summary: ARM64 test receipt for the Rust native power-profile handoff License: MIT ExclusiveArch: aarch64 Source0: %{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros crate(libc/default) crate(serde/default) crate(serde/derive) BuildRequires: crate(serde_json/default) crate(serde_json/preserve_order) crate(serde_json/float_roundtrip) BuildRequires: gcc gcc-c++ binutils pkgconfig(libsystemd) BuildRequires: /usr/bin/dbus-daemon /usr/bin/dbus-run-session %description Validates the native profile helper on ARM64 with a synthetic sysfs tree and an isolated systemd-manager D-Bus fixture. Ships only test input digests. %prep %autosetup %cargo_prep %build cargo build --offline --release %install find src tests reference -type f -print0 | LC_ALL=C sort -z | xargs -0 sha256sum > profile-sources.sha256 install -D -m644 profile-sources.sha256 %{buildroot}%{_docdir}/%{name}/profile-sources.sha256 %check %{__cxx} %{build_cxxflags} -std=c++17 -UNDEBUG -Wall -Wextra -Werror -pthread \ reference/tests/native-profile-ready.cpp %{build_ldflags} $(pkg-config --cflags --libs libsystemd) -o profile-reference bash reference/tests/native-profile-ready.sh ./profile-reference %{__cc} %{build_cflags} -std=gnu17 -UNDEBUG -Wall -Wextra -Werror \ tests/power-profile-ready-fixture.c %{build_ldflags} $(pkg-config --cflags --libs libsystemd) -o profile-fixture cargo test --offline --release --lib admits_only_named_ready_native_profiles -- --nocapture UKE_PROFILE_FIXTURE="$PWD/profile-fixture" timeout 25s dbus-run-session -- \ cargo test --offline --release --lib profile_refresh_preserves_unit_admission_and_error_semantics -- --ignored --nocapture binary=target/release/uke-native-power-profile-ready if "$binary" --help > invalid.stdout 2> invalid.stderr; then exit 1; else test "$?" = 1; fi test ! -s invalid.stdout grep -Fx 'Native profile handoff: This helper accepts no arguments' invalid.stderr readelf -h "$binary" | grep -E 'Machine:.*AArch64' readelf -d "$binary" > profile-linkage.txt if grep -F 'libstdc++' profile-linkage.txt; then exit 1; fi %files %license LICENSE reference/LICENSE %{_docdir}/%{name}/profile-sources.sha256 %changelog * Mon Nov 30 2026 Uke Linux Maintainers - 1.0.0-1 - Verify native profile readiness and the existing service-manager contract.