%global debug_package %{nil} Name: uke-control-motion-core-check Version: 1.0.0 Release: 1%{?dist} Summary: ARM64 test receipt for Rust Motion1 sample and ownership code License: MIT ExclusiveArch: aarch64 Source0: %{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros crate(libc/default) crate(serde/default) crate(serde/derive) BuildRequires: crate(serde_json/default) crate(serde_json/preserve_order) crate(serde_json/float_roundtrip) BuildRequires: gcc-c++ binutils coreutils %description Validates the Motion1 sample, IIO ownership transaction and on-disk journal using synthetic inputs and the signed-source C++ references. %prep %autosetup %cargo_prep %build cargo test --offline --release --lib --no-run %install sha256sum Cargo.toml src/{lib.rs,state.rs,motion/*.rs} reference/{src/*.hpp,tests/*.cpp} LICENSE > motion-core-sources.sha256 install -D -m644 motion-core-sources.sha256 %{buildroot}%{_docdir}/%{name}/motion-core-sources.sha256 %check for name in sample ownership journal; do %{__cxx} %{build_cxxflags} -std=c++20 -UNDEBUG -Wall -Wextra -Werror \ -Ireference/src "reference/tests/motion-$name.cpp" %{build_ldflags} -o "motion-legacy-$name" "./motion-legacy-$name" done cargo test --offline --release --lib motion::tests -- --nocapture for test in target/release/deps/uke_motion_core-*; do if test -x "$test"; then readelf -h "$test" | grep -E 'Machine:.*AArch64' readelf -d "$test" > motion-rust-linkage.txt if grep -F libstdc++ motion-rust-linkage.txt; then exit 1; fi fi done test -s motion-rust-linkage.txt %files %license LICENSE %{_docdir}/%{name}/motion-core-sources.sha256 %changelog * Mon Nov 30 2026 Uke Linux Maintainers - 1.0.0-1 - Verify Motion1 sample decoding, generation fences and the IIO recovery journal.