%global debug_package %{nil} Name: instant-hotspot Version: 0.15.7 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 * Wed Nov 18 2026 Lachlan Marie - 0.15.7-1 - Scan Wi-Fi and ask the phone on resume * Wed Nov 18 2026 Lachlan Marie - 0.15.6-1 - rapport: shared config dir and random helpers - Drop getrandom dep * Wed Nov 18 2026 Lachlan Marie - 0.15.5-1 - Restart BLE discovery when it stops * Tue Nov 17 2026 Lachlan Marie - 0.15.4-1 - Ask for the 2.4 GHz hotspot * Sun Nov 15 2026 Lachlan Marie - 0.15.3-1 - Don't preempt an in-progress Wi-Fi association - Back off when the hotspot AP will not come up * Wed Nov 11 2026 Lachlan Marie - 0.15.2-1 - Pause awdld only for the join * Mon Nov 09 2026 Lachlan Marie - 0.15.1-1 - Back off only when the phone is absent * Mon Nov 09 2026 Lachlan Marie - 0.15.0-1 - Split from apple-extras