%global debug_package %{nil} Name: proximity-lock Version: 0.15.1 Release: 1%{?dist} Summary: Lock the session when the paired iPhone leaves Bluetooth range License: MIT Source0: %{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros >= 26 BuildRequires: gcc BuildRequires: pkgconfig(dbus-1) BuildRequires: systemd-rpm-macros Requires: bluez Requires: systemd %description Passive Bluetooth LE scan for the paired iPhone; locks the session once its signal stays weak or silent for a minute. Never unlocks. The phone is the paired device BlueZ calls a phone, which needs the bond to hold its LE identity key; thresholds and lock command go in ~/.config/proximity-lock/config. Not enabled by default. %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 proximity-lock %install install -Dpsm0755 target/rpm/proximity-lock %{buildroot}%{_bindir}/proximity-lock install -Dm644 crates/proximity-lock/proximity-lock.service %{buildroot}%{_userunitdir}/proximity-lock.service %check %{__cargo} test %{__cargo_common_opts} --profile rpm --no-fail-fast -p proximity-lock -p rapport %post %systemd_user_post proximity-lock.service %preun %systemd_user_preun proximity-lock.service %postun %systemd_user_postun_with_restart proximity-lock.service %files %license LICENSE %{_bindir}/proximity-lock %{_userunitdir}/proximity-lock.service %changelog * Wed Nov 18 2026 Lachlan Marie - 0.15.1-1 - Read adverts from property signals - Restart BLE discovery when it stops * Mon Nov 09 2026 Lachlan Marie - 0.15.0-1 - Split from apple-extras