%global debug_package %{nil} Name: uke-control-battery-observer-policy-check Version: 1.0.0 Release: 1%{?dist} Summary: ARM64 receipt for the Uke battery observer demand and input policy License: MIT ExclusiveArch: aarch64 Source0: %{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros cargo rust gcc-c++ coreutils %description Checks the battery observer demand deadlines, exact supplier hint parsing and advisory fixed-source limits against injected inputs. The builder performs no battery, charger or power-domain operations. %prep %autosetup sha256sum --check --strict --quiet rust-package-sources.sha256 %cargo_prep %install install -D -m644 rust-package-sources.sha256 %{buildroot}%{_docdir}/%{name}/rust-package-sources.sha256 %check for test in battery-demand battery-pack-variant; do g++ -std=c++20 -O2 -UNDEBUG -Wall -Wextra -Werror "reference/tests/$test.cpp" -o "$test" "./$test" done echo 'Original battery demand and pack hint reference fixtures passed' cargo test --offline --release --lib -- --nocapture %files %license LICENSE-MIT %{_docdir}/%{name}/rust-package-sources.sha256 %changelog * Mon Nov 30 2026 Uke Linux Maintainers - 1.0.0-1 - Check the Rust battery observer demand and advisory qualification policy.