%global debug_package %{nil} Name: universal-clipboard Version: 0.15.3 Release: 1%{?dist} Summary: Apple Universal Clipboard on Linux: paste what a nearby iPhone or Mac copied 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: avahi Requires: wl-clipboard %description Watches for the Bluetooth LE Handoff advert a device on the same Apple account sends when its clipboard changes, then fetches the clipboard over Apple's Rapport companion link and puts it on the Wayland clipboard. Clipboards over about 10 KB arrive on a TLS stream the sender publishes as _continuity._tcp. Text and images go on the clipboard; a copied photo or file is fetched over the stream's second coder and saved to ~/Downloads, with a single image put on the clipboard as an image and anything else as its path. Receive only. Needs the Rapport identity of an Apple device on the account in ~/.config/universal-clipboard/ (or the copy instant-hotspot already has) and, for large clipboards, the Apple ID certificate in ~/.local/share/opendrop/keys/. %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 universal-clipboard %install install -Dpsm0755 target/rpm/universal-clipboard %{buildroot}%{_bindir}/universal-clipboard install -Dm644 crates/universal-clipboard/universal-clipboard.service %{buildroot}%{_userunitdir}/universal-clipboard.service install -Dm644 crates/universal-clipboard/90-universal-clipboard.preset %{buildroot}%{_userpresetdir}/90-universal-clipboard.preset %check %{__cargo} test %{__cargo_common_opts} --profile rpm --no-fail-fast -p universal-clipboard -p rapport %post %systemd_user_post universal-clipboard.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 universal-clipboard.service && systemctl --user -M $uid@ -q is-active graphical-session.target && systemctl --user -M $uid@ --no-block start universal-clipboard.service || : done fi %preun %systemd_user_preun universal-clipboard.service %postun %systemd_user_postun_with_restart universal-clipboard.service %files %license LICENSE %doc crates/universal-clipboard/README.md %{_bindir}/universal-clipboard %{_userunitdir}/universal-clipboard.service %{_userpresetdir}/90-universal-clipboard.preset %changelog * Wed Nov 18 2026 Lachlan Marie - 0.15.3-1 - Start services on first install - Enable by preset - Skip start without Rapport identity * Wed Nov 18 2026 Lachlan Marie - 0.15.2-1 - rapport: shared config dir and random helpers - Drop getrandom, aes deps * Wed Nov 18 2026 Lachlan Marie - 0.15.1-1 - Pinned Handoff + Nearby Info advert - 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