%global debug_package %{nil} Name: airdrop-rs Version: 0.17.0 Release: 1%{?dist} Summary: AWDL and AirDrop for Linux License: GPL-3.0-or-later Source0: %{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros >= 26 BuildRequires: gcc BuildRequires: pkgconfig(dbus-1) BuildRequires: systemd-rpm-macros %description AWDL daemon, AirDrop client and Contacts-Only AirDrop, built from one crate. This package itself installs nothing. %package -n awdld Summary: Apple Wireless Direct Link daemon License: GPL-3.0-or-later Requires: iproute %description -n awdld Host-side AWDL: drives the brcmfmac AWDL iovars, runs the master election and keeps the channel sequence in sync with nearby Apple devices, which is what AirDrop and other peer-to-peer Apple services run over. %package -n opendrop Summary: AirDrop client and receiver License: GPL-3.0-or-later Requires: awdld = %{version}-%{release} Recommends: libnotify Recommends: xdg-utils Obsoletes: python3-opendrop < 0.14.1 %description -n opendrop Sends and receives AirDrop transfers over AWDL. Translated to Rust from the GPLv3 python opendrop, which this obsoletes. The user service receives; see airdrop-contacts to be recognised by Contacts-Only peers. %package -n airdrop-contacts Summary: AirDrop to Contacts-Only Apple devices License: GPL-3.0-or-later Requires: opendrop = %{version}-%{release} Requires: awdld = %{version}-%{release} Requires: bluez Requires: iproute Requires: polkit %description -n airdrop-contacts Makes this machine recognisable to Apple devices set to Contacts Only, which otherwise refuse transfers: a Bluetooth LE advert carries the Apple ID hashes from an Apple ID validation record, so the receiver resolves them to a contact and starts its AirDrop server. airdrop-send then transfers over AWDL, adding the static awdl0 neighbours that AWDL neighbour discovery never resolves. Peers come and go with the AWDL availability window, so a send may need several tries; -t with a peer's link-local address skips mDNS discovery, which multicast loss makes unreliable, and -c re-initialises AWDL first. Apple ID material goes in /etc/airdrop-contacts/ and never in the package. %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 airdrop-rs %install install -Dpsm0755 target/rpm/awdld %{buildroot}%{_bindir}/awdld install -Dm644 crates/airdrop-rs/awdld.service %{buildroot}%{_unitdir}/awdld.service install -Dm644 crates/airdrop-rs/90-awdld.preset %{buildroot}%{_presetdir}/90-awdld.preset install -Dm644 crates/airdrop-rs/90-awdld.conf %{buildroot}%{_sysctldir}/90-awdld.conf install -Dm644 crates/airdrop-rs/90-awdl-unmanaged.conf %{buildroot}%{_prefix}/lib/NetworkManager/conf.d/90-awdl-unmanaged.conf install -Dm644 crates/airdrop-rs/brcmfmac-awdl.conf %{buildroot}%{_modprobedir}/brcmfmac-awdl.conf install -Dm644 crates/airdrop-rs/awdld-resume.service %{buildroot}%{_unitdir}/awdld-resume.service for t in suspend hibernate hybrid-sleep suspend-then-hibernate; do install -d %{buildroot}%{_unitdir}/$t.target.wants; ln -s ../awdld-resume.service %{buildroot}%{_unitdir}/$t.target.wants/; done install -Dpsm0755 target/rpm/opendrop %{buildroot}%{_bindir}/opendrop install -Dm644 crates/airdrop-rs/opendrop-receive.service %{buildroot}%{_userunitdir}/opendrop-receive.service install -Dm644 crates/airdrop-rs/90-opendrop.preset %{buildroot}%{_userpresetdir}/90-opendrop.preset install -Dpsm0755 target/rpm/airdrop-send %{buildroot}%{_bindir}/airdrop-send install -Dpsm0755 target/rpm/airdrop-ble %{buildroot}%{_libexecdir}/airdrop-contacts/airdrop-ble install -Dpsm0755 target/rpm/airdrop-privhelper %{buildroot}%{_libexecdir}/airdrop-contacts/airdrop-privhelper install -Dm644 crates/airdrop-rs/airdrop-ble.service %{buildroot}%{_unitdir}/airdrop-ble.service install -Dm644 crates/airdrop-rs/90-airdrop-contacts.preset %{buildroot}%{_presetdir}/90-airdrop-contacts.preset install -Dm644 crates/airdrop-rs/49-airdrop-contacts.rules %{buildroot}%{_datadir}/polkit-1/rules.d/49-airdrop-contacts.rules install -Dm644 crates/airdrop-rs/airdrop-contacts.conf %{buildroot}%{_sysconfdir}/airdrop-contacts.conf install -Dm644 crates/airdrop-rs/opendrop-model.conf %{buildroot}%{_userunitdir}/opendrop-receive.service.d/10-airdrop-contacts.conf %check %{__cargo} test %{__cargo_common_opts} --profile rpm --no-fail-fast -p airdrop-rs %post -n awdld %systemd_post awdld.service if [ $1 -eq 1 ] && systemctl -q is-enabled awdld.service; then systemctl --no-block start awdld.service || :; fi %preun -n awdld %systemd_preun awdld.service %postun -n awdld %systemd_postun_with_restart awdld.service %files -n awdld %license crates/airdrop-rs/LICENSE %doc crates/airdrop-rs/README.md %{_bindir}/awdld %{_unitdir}/awdld.service %{_presetdir}/90-awdld.preset %{_sysctldir}/90-awdld.conf %{_prefix}/lib/NetworkManager/conf.d/90-awdl-unmanaged.conf %{_modprobedir}/brcmfmac-awdl.conf %{_unitdir}/awdld-resume.service %{_unitdir}/suspend.target.wants/awdld-resume.service %{_unitdir}/hibernate.target.wants/awdld-resume.service %{_unitdir}/hybrid-sleep.target.wants/awdld-resume.service %{_unitdir}/suspend-then-hibernate.target.wants/awdld-resume.service %post -n opendrop %systemd_user_post opendrop-receive.service if [ $1 -eq 1 ]; then for uid in $(systemctl list-units 'user@*' --legend=no | sed -n -r 's/.*user@([0-9]+)\.service.*/\1/p'); do systemctl --user -M $uid@ -q is-enabled opendrop-receive.service && systemctl --user -M $uid@ -q is-active default.target && systemctl --user -M $uid@ --no-block start opendrop-receive.service || : done fi %preun -n opendrop %systemd_user_preun opendrop-receive.service %postun -n opendrop %systemd_user_postun_with_restart opendrop-receive.service %files -n opendrop %license crates/airdrop-rs/LICENSE %{_bindir}/opendrop %{_userunitdir}/opendrop-receive.service %{_userpresetdir}/90-opendrop.preset %post -n airdrop-contacts %systemd_post airdrop-ble.service if [ $1 -eq 1 ] && systemctl -q is-enabled airdrop-ble.service; then systemctl --no-block start airdrop-ble.service || :; fi %preun -n airdrop-contacts %systemd_preun airdrop-ble.service %postun -n airdrop-contacts %systemd_postun_with_restart airdrop-ble.service %files -n airdrop-contacts %license crates/airdrop-rs/LICENSE %config(noreplace) %{_sysconfdir}/airdrop-contacts.conf %{_bindir}/airdrop-send %dir %{_libexecdir}/airdrop-contacts %{_libexecdir}/airdrop-contacts/airdrop-ble %{_libexecdir}/airdrop-contacts/airdrop-privhelper %{_unitdir}/airdrop-ble.service %{_presetdir}/90-airdrop-contacts.preset %{_datadir}/polkit-1/rules.d/49-airdrop-contacts.rules %dir %{_userunitdir}/opendrop-receive.service.d %{_userunitdir}/opendrop-receive.service.d/10-airdrop-contacts.conf %changelog * Fri Nov 20 2026 Lachlan Marie - 0.17.0-1 - Service params before AirDrop records (iPhone discovery) - Advertise AirDrop SRV record - Cycle AWDL in place on stale anchor * Wed Nov 18 2026 Lachlan Marie - 0.16.5-1 - Start services on first install * Wed Nov 18 2026 Lachlan Marie - 0.16.4-1 - Drop serde, serde_json - Discovery report: tab-separated - One MAC reader, shared hex helpers * Sun Nov 15 2026 Lachlan Marie - 0.16.3-1 - awdld: keep the current AWDL parent unless a markedly stronger one appears - awdld: AWDLD_AFTXMODE knob for 2.4GHz PSF-tx calibration * Sun Nov 15 2026 Lachlan Marie - 0.16.2-1 - awdld: hold awdl0 only while Wi-Fi is associated - awdld: release the radio on link loss * Thu Nov 12 2026 Lachlan Marie - 0.16.1-1 - mDNS: fix unicast socket bind on 5353 - awdld: sparse chan seq when the driver supports it - awdld: master channel stays 6 - awdld: debounce infra moves - awdld: no anchor without a fw clock pair - awdld: refresh off by default - Allow mDNS legacy replies out of awdl0 * Thu Nov 12 2026 Lachlan Marie - 0.16.0-1 - awdld: chan seq on the infra channel - awdld: anchor on the fw AW clock - awdld: anchor off the master channel - awdld: sticky parent - awdld: stale check 8 AWs, two strikes - awdld: fix datapath TLV offsets - awdld: re-init in process - Disable brcmfmac P2P - mDNS: unicast socket on own address * Wed Nov 11 2026 Lachlan Marie - 0.15.2-1 - airdrop-send --list: exit when stdout closes - Filter own receiver by service id and address - -t accepts [address]:port - Names printed without tabs * Wed Nov 11 2026 Lachlan Marie - 0.15.1-1 - awdld: add static neighbour per new peer - Drop airdrop-neigh * Mon Nov 09 2026 Lachlan Marie - 0.15.0-1 - Split from apple-extras