%global debug_package %{nil} Name: uke-control-rust-motion-policy-check Version: 1.0.0 Release: 1%{?dist} Summary: ARM64 witness for the native Motion1 SELinux policy helper License: MIT ExclusiveArch: aarch64 Source0: %{name}-%{version}.tar.gz Source1: original-fedora-motion-policy.rpm BuildRequires: cargo-rpm-macros cargo rust crate(libc/default) BuildRequires: coreutils findutils rpm cpio bash awk grep sed binutils bzip2 BuildRequires: selinux-policy-devel nodejs checkpolicy policycoreutils make %description Validates the native Motion1 helper in a temporary Fedora SELinux store with the retained producer test and without touching host policy. %prep %autosetup sha256sum --check --strict --quiet rust-package-sources.sha256 %cargo_prep %build cargo build --offline --release %install install -D -m644 rust-package-sources.sha256 %{buildroot}%{_docdir}/%{name}/rust-package-sources.sha256 %check cargo test --offline --release binary="$PWD/target/release/uke-motion-policy" readelf -h "$binary" | grep -F AArch64 readelf -d "$binary" > motion-policy-linkage ! grep -F libstdc++ motion-policy-linkage cd reference/uke-control make -f packaging/motion.mk build/motion/selinux/uke_control_motion.cil test "$(grep -Fc 'bash "$helper"' tests/motion-policy.sh)" = 6 sed 's/bash "$helper"/"$helper"/g' tests/motion-policy.sh > tests/native-motion-policy.sh UKE_POLICY_OFFLINE_FIXTURE=1 bash tests/native-motion-policy.sh %{SOURCE1} build/motion/selinux/uke_control_motion.cil "$binary" build/motion/policy-result.txt cat build/motion/policy-result.txt %files %license LICENSE %{_docdir}/%{name}/rust-package-sources.sha256 %changelog * Mon Nov 30 2026 Uke Linux Maintainers - 1.0.0-1 - Check the original offline install and removal contract with the Rust helper.