%global debug_package %{nil} Name: airdrop-rs Version: 0.15.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/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-neigh %{buildroot}%{_libexecdir}/airdrop-contacts/airdrop-neigh 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/airdrop-neigh.service %{buildroot}%{_unitdir}/airdrop-neigh.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 %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 %{_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 %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 airdrop-neigh.service %preun -n airdrop-contacts %systemd_preun airdrop-ble.service airdrop-neigh.service %postun -n airdrop-contacts %systemd_postun_with_restart airdrop-ble.service airdrop-neigh.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-neigh %{_libexecdir}/airdrop-contacts/airdrop-privhelper %{_unitdir}/airdrop-ble.service %{_unitdir}/airdrop-neigh.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 * Mon Nov 09 2026 Lachlan Marie - 0.15.0-1 - Split from apple-extras