## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.19.0 %bcond check 1 # https://github.com/omarroth/doubletake %global goipath doubletake %global forgeurl https://github.com/omarroth/doubletake Version: 0.5.0 %gometa -L -f %global common_description %{expand: doubletake is an AirPlay screen mirroring sender for Linux. It streams the desktop to an Apple TV or another AirPlay receiver, capturing the screen through PipeWire and xdg-desktop-portal on Wayland or directly on X11, and encoding it with GStreamer using NVENC, VA-API, OpenH264, x264 or x265.} Name: doubletake Release: %autorelease Summary: AirPlay screen mirroring sender for Linux # Generated by go-vendor-tools License: BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND LGPL-3.0-or-later AND MIT URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml # Ship and install a systemd user unit for the daemon # https://github.com/omarroth/doubletake/pull/79 Patch: 0001-Ship-a-systemd-user-unit-for-the-daemon.patch BuildRequires: go-vendor-tools BuildRequires: make BuildRequires: systemd-rpm-macros # doubletake runs gst-launch-1.0 and gst-inspect-1.0 to build its pipelines. Requires: gstreamer1 # videoconvert, videoscale, videorate, audioconvert, audioresample Requires: gstreamer1-plugins-base # pulsesrc, ximagesrc, rtph264pay, rtph265pay Requires: gstreamer1-plugins-good # h264parse and h265parse, plus the VA-API and NVENC encoders Requires: gstreamer1-plugins-bad-free # pactl selects the default audio sink for capture Requires: pulseaudio-utils # Wayland screen and audio capture Recommends: pipewire-gstreamer Recommends: xdg-desktop-portal # Software H.264 encoder for systems without VA-API or NVENC Recommends: gstreamer1-plugin-openh264 # x264enc and x265enc are available from RPM Fusion Suggests: gstreamer1-plugins-ugly Suggests: gstreamer1-plugins-bad-freeworld %description %{common_description} %package plasma-applet Summary: KDE Plasma system tray applet for doubletake BuildArch: noarch Requires: %{name} = %{version}-%{release} Requires: plasma-workspace %description plasma-applet A KDE Plasma 6 system tray applet that controls a running doubletake daemon through doubletake-ctl. %prep %goprep -p1 tar -xf %{S:1} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build # The Go macros pass -X /version= to the linker, which # rejects an import path without a dot such as doubletake. doubletake has no # version variable for the flag to set, so drop it. %global currentgoldflags %{nil} %global gomodulesmode GO111MODULE=on for cmd in doubletake doubletake-ctl doubletake-test-receiver; do %gobuild -o %{gobuilddir}/bin/$cmd %{goipath}/cmd/$cmd done %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ install -m 0755 -vd %{buildroot}%{_mandir}/man1 install -m 0644 -vp man/man1/*.1 %{buildroot}%{_mandir}/man1/ %{__make} install-systemd PREFIX=%{_prefix} SYSTEMDUSERDIR=%{buildroot}%{_userunitdir} install -m 0755 -vd %{buildroot}%{_datadir}/plasma/plasmoids/org.doubletake.plasmoid cp -vpr plasmoid/metadata.json plasmoid/contents \ %{buildroot}%{_datadir}/plasma/plasmoids/org.doubletake.plasmoid/ %check %go_vendor_license_check -c %{S:2} %if %{with check} %gotest ./... %endif %post %systemd_user_post doubletake.service %preun %systemd_user_preun doubletake.service %files -f %{go_vendor_license_filelist} %doc README.md %{_bindir}/doubletake %{_bindir}/doubletake-ctl %{_bindir}/doubletake-test-receiver %{_mandir}/man1/doubletake.1* %{_mandir}/man1/doubletake-ctl.1* %{_mandir}/man1/doubletake-test-receiver.1* %{_userunitdir}/doubletake.service %files plasma-applet %doc plasmoid/README.md %{_datadir}/plasma/plasmoids/org.doubletake.plasmoid/ %changelog ## START: Generated by rpmautospec * Wed Nov 04 2026 Dawid Wróbel - 0.5.0-4 - Use the upstream systemd user unit * Wed Nov 04 2026 Dawid Wróbel - 0.5.0-3 - Install python3-specfile for the vendor archive in Copr * Wed Nov 04 2026 Dawid Wróbel - 0.5.0-2 - Build with vendored dependencies * Wed Nov 04 2026 Dawid Wróbel - 0.5.0-1 - Initial package ## END: Generated by rpmautospec