# SPDX-License-Identifier: GPL-3.0-or-later # Fedora / COPR spec. Sources from scripts/dist.sh (vendored crates: offline build). # The upstream version in SemVer spelling; Version is its RPM spelling (a prerelease # such as 0.2.0-alpha.1 becomes 0.2.0~alpha.1). scripts/release_check.py binds both to # the tag, and Packit rewrites Version the same way. %global upstream_version 0.1.1 Name: transom Version: 0.1.1 Release: 1%{?dist} Summary: Sharp remote desktops over RDP # App GPL-3.0-or-later; the bundled transom-view libraries Apache-2.0; vendored crates # under various permissive licences (build-aux/packaging/RUST-CRATE-LICENSES.txt). License: GPL-3.0-or-later AND Apache-2.0 AND MIT AND (MIT OR Apache-2.0) URL: https://github.com/jm2/transom Source0: transom-0.1.1.tar.gz Source1: %{name}-%{upstream_version}-vendor.tar.xz BuildRequires: cargo >= 1.98 BuildRequires: rust >= 1.98 BuildRequires: clang-devel # FreeRDP 3.33.1 or later: older releases have known security problems a server can # exploit. The library dependencies RPM finds itself (libfreerdp3.so.3, ...) don't # say which release, so the runtime floor is explicit too; Fedora's FreeRDP packages # carry epoch 2. BuildRequires: pkgconfig(freerdp3) >= 3.33.1 BuildRequires: pkgconfig(freerdp-client3) >= 3.33.1 BuildRequires: pkgconfig(winpr3) >= 3.33.1 Requires: freerdp-libs%{?_isa} >= 2:3.33.1 Requires: libwinpr%{?_isa} >= 2:3.33.1 # Zero-copy H.264 (VA-API through libavcodec). Fedora's libavcodec-free has no native # H.264 decoder, so this engages only with a full libavcodec (e.g. RPM Fusion's # libavcodec-freeworld, same soname); otherwise FreeRDP decodes in software. BuildRequires: pkgconfig(libavcodec) BuildRequires: pkgconfig(libavutil) BuildRequires: pkgconfig(gtk4) >= 4.16 BuildRequires: pkgconfig(libadwaita-1) >= 1.6 BuildRequires: pkgconfig(libsecret-1) BuildRequires: desktop-file-utils BuildRequires: libappstream-glib %description Transom connects to Windows and GNOME computers using the Remote Desktop Protocol, rendering remote sessions pixel for pixel at 100%%, 200%% and fractional scales. %prep %autosetup -n transom-0.1.1 tar -xJf %{SOURCE1} mkdir -p .cargo cat > .cargo/config.toml <