%global debug_package %{nil} Name: uke-control-motion-iio-check Version: 1.0.1 Release: 1%{?dist} Summary: ARM64 test receipt for the Rust Motion1 IIO backend 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 jq %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 --message-format=json > rust-test-build.json %install sha256sum Cargo.toml src/{lib.rs,state.rs,motion/*.rs} reference/{src/*.hpp,src/motion-iio.cpp,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 cargo test --offline --release --lib motion::iio::tests -- --nocapture binary=$(jq -ers '[.[] | select(.reason == "compiler-artifact" and .target.kind == ["lib"] and .profile.test and .executable != null).executable] | unique | if length == 1 then .[0] else error("Expected one Motion test executable") end' rust-test-build.json) test -x "$binary" readelf -h "$binary" | grep -E 'Machine:.*AArch64' readelf -d "$binary" > motion-rust-linkage.txt if grep -F libstdc++ motion-rust-linkage.txt; then exit 1; fi %files %license LICENSE %{_docdir}/%{name}/motion-core-sources.sha256 %changelog * Mon Nov 30 2026 Uke Linux Maintainers - 1.0.1-1 - Read the test executable path from Fedora Cargo artifacts. * Mon Nov 30 2026 Uke Linux Maintainers - 1.0.0-1 - Verify Motion1 sample decoding, generation fences and the IIO recovery journal.