%global debug_package %{nil} Name: uke-control-nfc-tag-check Version: 1.0.0 Release: 1%{?dist} Summary: ARM64 Rust FM19511 client and kernel ABI checks License: MIT AND (GPL-2.0-only WITH Linux-syscall-note) ExclusiveArch: aarch64 Source0: %{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros crate(libc/default) crate(serde_json/default) crate(serde_json/preserve_order) BuildRequires: kernel-headers gcc binutils jq %description Qualifies the Rust read-only FM19511 client using the signed kernel UAPI and fake providers. The RPM holds an ARM64 test receipt. %prep %autosetup printf '%%s %%s\n' "$(jq -er .sha256 uapi/uapi-source.json)" uapi/fm19511.h | sha256sum --check --strict %cargo_prep %build cargo build --offline --release %install sha256sum src/main.rs uapi/{fm19511.h,uapi-source.json,check.c} > nfc-sources.sha256 install -D -m644 nfc-sources.sha256 %{buildroot}%{_docdir}/%{name}/nfc-sources.sha256 %check %{__cc} %{build_cflags} -std=c17 -Wall -Wextra -Werror uapi/check.c %{build_ldflags} -o fm19511-uapi-check ./fm19511-uapi-check cargo test --offline --release -- --nocapture binary=target/release/uke-nfc-tag "$binary" --help | grep -F 'Read-only FM19511 Type 2 tag client' for arg in 'read 0xffff 2' 'read 0 0' 'wait 61' 'write 0 1'; do if "$binary" $arg > invalid.stdout 2> invalid.stderr; then exit 1; else test "$?" = 2; fi test ! -s invalid.stdout done if "$binary" read 0xffff 2 > invalid.stdout 2> invalid.stderr; then exit 1; else test "$?" = 2; fi grep -F 'without address wrap' invalid.stderr readelf -h "$binary" > nfc-rust.elf readelf -d "$binary" >> nfc-rust.elf grep -F 'AArch64' nfc-rust.elf if grep -F 'libstdc++' nfc-rust.elf; then exit 1; fi %files %license LICENSE LICENSES/* %{_docdir}/%{name}/nfc-sources.sha256 %changelog * Mon Nov 30 2026 Uke Linux Maintainers - 1.0.0-1 - Verify the Rust read-only NFC CLI, ABI and polling behavior with fixtures.