%global orangepi_build_ref next Name: hciattach-opi Version: 1.0 Release: 1.git%{?dist} Summary: hciattach_opi helper for UWE5622 Bluetooth License: GPL-2.0-only URL: https://github.com/orangepi-xunlong/orangepi-build Source0: %{url}/archive/refs/heads/%{orangepi_build_ref}.tar.gz BuildArch: aarch64 AutoReqProv: no BuildRequires: make gcc %description ARM64 hciattach_opi helper used by sprd-bluetooth for UWE5622 Bluetooth. %prep %autosetup -n orangepi-build-%{orangepi_build_ref} -N %build make -C external/cache/sources/hcitools hciattach_opi %install install -Dm 0755 external/cache/sources/hcitools/output/hciattach_opi %{buildroot}/usr/bin/hciattach_opi %files /usr/bin/hciattach_opi %changelog %autochangelog