%global debug_package %{nil} Name: uke-control-bluetooth-address-check Version: 1.0.0 Release: 1%{?dist} Summary: ARM64 test receipt for the Rust Bluetooth address helper License: GPL-3.0-or-later AND MIT ExclusiveArch: aarch64 Source0: %{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros crate(libc/default) gcc gcc-c++ binutils pkgconfig(bluez) %description Validates the Rust Bluetooth address helper using synthetic files and a private Unix packet socket. The resulting RPM contains input digests. %prep %autosetup sha256sum --check --strict reference/SHA256SUMS %cargo_prep %build cargo build --offline --release %install sha256sum src/main.rs reference/{abi.c,src/bluetooth-address.cpp,tests/bluetooth-address.cpp,SHA256SUMS} COPYING > bluetooth-sources.sha256 install -D -m644 bluetooth-sources.sha256 %{buildroot}%{_docdir}/%{name}/bluetooth-sources.sha256 %check %{__cc} %{build_cflags} -std=c17 -Wall -Wextra -Werror reference/abi.c %{build_ldflags} -o bluetooth-abi ./bluetooth-abi %{__cxx} %{build_cxxflags} -std=c++20 -UNDEBUG -Wall -Wextra -Werror -Wno-unused-function \ reference/tests/bluetooth-address.cpp %{build_ldflags} -o bluetooth-reference ./bluetooth-reference cargo test --offline --release -- --nocapture readelf -h target/release/uke-bluetooth-address | grep -E 'Machine:.*AArch64' readelf -d target/release/uke-bluetooth-address > bluetooth-linkage.txt if grep -F 'libstdc++' bluetooth-linkage.txt; then exit 1; fi %files %license COPYING %{_docdir}/%{name}/bluetooth-sources.sha256 %changelog * Mon Nov 30 2026 Uke Linux Maintainers - 1.0.0-1 - Verify Bluetooth mount admission, HCI framing and helper behavior on ARM64.