%global debug_package %{nil} Name: instant-hotspot Version: 0.15.0 Release: 1%{?dist} Summary: Apple Instant Hotspot client: start and join a same-account iPhone's hotspot 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: NetworkManager Requires: polkit %description Asks a nearby iPhone on the same Apple account to turn on Personal Hotspot over Rapport (BLE L2CAP), using the Rapport identity of an Apple device on that account, then joins the network with NetworkManager. The phone needs no interaction. The user unit watches NetworkManager and joins whenever the machine is offline, idling on D-Bus signals rather than polling. Credentials go in ~/.config/instant-hotspot/ (rapport_selfidentity.bin, rapport_selfidentity_gena.bin). %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 instant-hotspot %install install -Dpsm0755 target/rpm/instant-hotspot %{buildroot}%{_bindir}/instant-hotspot install -Dm644 crates/instant-hotspot/instant-hotspot.service %{buildroot}%{_userunitdir}/instant-hotspot.service install -Dm644 crates/instant-hotspot/49-instant-hotspot.rules %{buildroot}%{_datadir}/polkit-1/rules.d/49-instant-hotspot.rules %check %{__cargo} test %{__cargo_common_opts} --profile rpm --no-fail-fast -p instant-hotspot -p rapport %post %systemd_user_post instant-hotspot.service %preun %systemd_user_preun instant-hotspot.service %postun %systemd_user_postun_with_restart instant-hotspot.service %files %license LICENSE %doc crates/instant-hotspot/README.md %{_bindir}/instant-hotspot %{_userunitdir}/instant-hotspot.service %{_datadir}/polkit-1/rules.d/49-instant-hotspot.rules %changelog * Mon Nov 09 2026 Lachlan Marie - 0.15.0-1 - Split from apple-extras