%global debug_package %{nil} Name: uke-control-qt-rust-application-check Version: 1.0.0 Release: 1%{?dist} Summary: Native Qt application profile checks on ARM64 License: MIT ExclusiveArch: aarch64 Source0: %{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros cargo rust crate(libc/default) BuildRequires: crate(sha2/default) >= 0.11 BuildRequires: crate(serde_json/float_roundtrip) crate(serde_json/preserve_order) BuildRequires: binutils coreutils grep jq %description Checks application identity, profile readback and local review hints with synthetic data. Tests do not alter live application scopes. %prep %autosetup sha256sum --check --strict --quiet rust-package-sources.sha256 %cargo_prep %build cargo build --offline --release --bin application-control %install install -D -m644 rust-package-sources.sha256 %{buildroot}%{_docdir}/%{name}/rust-package-sources.sha256 %check cargo test --offline --release application::tests binary=target/release/application-control readelf -h "$binary" | grep -F AArch64 readelf -d "$binary" > linkage ! grep -E 'libQt6|libstdc\+\+' linkage test "$(id -u)" != 0 result=0 "$binary" ../../system.slice unused unused normal > refusal.json || result=$? test "$result" -eq 69 jq -e '.schema=="org.uke.qt.application-control.v1" and .error=="settings_changed" and .persistent==false' refusal.json %files %license LICENSE %{_docdir}/%{name}/rust-package-sources.sha256 %changelog * Wed Dec 02 2026 Uke Linux Maintainers - 1.0.0-1 - Verify reviewed application identity and runtime quota readback contracts.