%global debug_package %{nil} Name: uke-control-charge-records-check Version: 1.2.0 Release: 1%{?dist} Summary: ARM64 receipt for the Uke charge state record parser License: MIT ExclusiveArch: aarch64 Source0: %{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros cargo rust gcc-c++ coreutils %description Checks the existing charge, protection and adapter metadata records against the currently published C++ source. Both implementations use synthetic inputs. %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 ulimit -c 0 g++ -std=c++20 -O2 -UNDEBUG -Wall -Wextra -Werror reference/tests/charge-control.cpp reference/src/battery/control.cpp -o charge-control-reference ./charge-control-reference echo 'Published synthetic charge control contract 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.2.0-1 - Check charge lease records, borrowed ownership and readback gates.