%global debug_package %{nil} Name: findmy-beacon Version: 0.15.0 Release: 1%{?dist} Summary: Find My offline-finding beacon for Linux License: MIT Source0: %{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros >= 26 BuildRequires: gcc BuildRequires: systemd-rpm-macros Requires: bluez # findmy-locate stays a python client on the PyPI findmy package Requires: python3 Requires: python3-findmy %description Advertises a rotating Find My key over Bluetooth so Apple devices nearby relay this machine's location, and findmy-locate queries those reports. %prep %autosetup -n %{name}-%{version} %cargo_prep -N # build online: the crates are not packaged for Fedora sed -i 's/^offline = true$//' .cargo/config.toml %build %{__cargo} build %{__cargo_common_opts} --profile rpm -p findmy-beacon %install install -Dpsm0755 target/rpm/findmy-beacon %{buildroot}%{_bindir}/findmy-beacon install -Dm755 crates/findmy-beacon/findmy-locate %{buildroot}%{_bindir}/findmy-locate install -Dm644 crates/findmy-beacon/findmy-beacon.service %{buildroot}%{_unitdir}/findmy-beacon.service %check %{__cargo} test %{__cargo_common_opts} --profile rpm --no-fail-fast -p findmy-beacon %post %systemd_post findmy-beacon.service %preun %systemd_preun findmy-beacon.service %postun %systemd_postun_with_restart findmy-beacon.service %files %license LICENSE %doc crates/findmy-beacon/README.md %{_bindir}/findmy-beacon %{_bindir}/findmy-locate %{_unitdir}/findmy-beacon.service %changelog * Mon Nov 09 2026 Lachlan Marie - 0.15.0-1 - Split from apple-extras