Name: uke-ukectl-rust-source-check Version: 2.18.0 Release: 1%{?dist} Summary: Compile and verify the Uke Control Rust capacity check License: MIT AND (MIT OR Apache-2.0) Source0: ukectl-rust-capacity.tar.xz BuildRequires: cargo-rpm-macros BuildRequires: crate(libc/default) BuildRequires: pkgconfig(ext2fs) pkgconfig(mount) BuildRequires: e2fsprogs binutils %description Source qualification and a receipt for the ukectl Rust migration. %prep %setup -q -n ukectl %cargo_prep %build %set_build_flags cargo build --offline --release --target-dir target %check set -o pipefail cargo test --offline --target-dir target readelf -d target/release/ukectl | tee linkage.txt grep -Fq 'libext2fs.so.' linkage.txt grep -Fq 'libmount.so.' linkage.txt if grep -Eq 'libuke-control|libstdc[+][+]' linkage.txt; then exit 1; fi test "$(id -u)" != 0 result=0 output=$(target/release/ukectl verify-root-capacity 2>&1) || result=$? test "$result" = 1 test "$output" = 'uke-control: Root privileges required for capacity verification' printf 'PASS: Rust capacity tests, native shared libraries, and unprivileged refusal\n' > result.txt install -Dm644 result.txt %{buildroot}%{_datadir}/%{name}/result.txt %files %{_datadir}/%{name}/result.txt %changelog * Sun Nov 29 2026 Uke Linux - 2.18.0-1 - Verify the Rust implementation of the root capacity check.