%global debug_package %{nil} Name: uke-control-install-profile-policy-check Version: 1.3.0 Release: 1%{?dist} Summary: ARM64 receipt for the complete Rust Uke installation profile License: MIT ExclusiveArch: aarch64 Source0: %{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros cargo rust crate(libc/default) gcc gcc-c++ coreutils kernel-headers %description Checks the exact C++ root policy and Rust root mount, partition and persistent-profile decoding with synthetic inputs and no device access. %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 g++ -std=c++20 -O2 -UNDEBUG -Wall -Wextra -Werror -Ireference/src \ reference/tests/installation-policy.cpp -o installation-policy-reference ./installation-policy-reference g++ -std=c++20 -O2 -UNDEBUG -Wall -Wextra -Werror -Wno-unused-function reference/tests/install-profile.cpp -o install-profile-reference ./install-profile-reference g++ -std=c++20 -O2 -UNDEBUG -Wall -Wextra -Werror reference/tests/rtc-counter-offset.cpp -o rtc-counter-reference ./rtc-counter-reference g++ -std=c++20 -O2 -UNDEBUG -Wall -Wextra -Werror reference/tests/rtc-clock.cpp -o rtc-clock-reference ./rtc-clock-reference cargo test --offline --release --lib install_profile:: -- --nocapture %{__cc} %{build_cflags} -std=gnu17 -Wall -Wextra -Werror \ tests/install-profile-btrfs-abi.c %{build_ldflags} -o btrfs-abi-reference ./btrfs-abi-reference %{__cc} %{build_cflags} -std=gnu17 -Wall -Wextra -Werror tests/install-profile-rtc-abi.c %{build_ldflags} -o rtc-abi-reference ./rtc-abi-reference cargo build --offline --release --bin uke-install-profile ldd target/release/uke-install-profile > linkage if grep -Fq libstdc++ linkage; then exit 1; fi status=0 target/release/uke-install-profile > command.out 2>&1 || status=$? test $status -eq 1 grep "^uke-install-profile: Usage: uke-install-profile initialize|reconcile|status|check|grow|clock-save|clock-save-required|clock-restore|clock-counter-check|rtc-sync|rtc-check$" command.out status=0 target/release/uke-install-profile rtc-write > command.out 2>&1 || status=$? test $status -eq 1 grep -Fx "uke-install-profile: Unknown profile operation" command.out echo "Normal Rust installer entry checked without storage, system clock or RTC access" %files %license LICENSE-MIT %{_docdir}/%{name}/rust-package-sources.sha256 %changelog * Mon Nov 30 2026 Uke Linux Maintainers - 1.3.0-1 - Check secure RTC policy, Linux ABI and the guarded normal command entry.