%global debug_package %{nil} %define major_version 6.1.0 %define release_version 11 Name: moonlight-qt Version: %{major_version} Release: %{release_version} Summary: Open source PC client for NVIDIA GameStream and Sunshine License: GPL-3.0 URL: https://github.com/moonlight-stream/moonlight-qt Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz # Tegra NVV4L2 decoder hints, and GLX since Tegra EGL windows on X11 never show Source1: com.moonlight_stream.Moonlight.desktop Patch0: 0001-openssl4-set-certificate-subject.patch Patch1: 0002-openssl4-use-ASN1-accessors.patch Patch2: 0003-ffmpeg9-supported-pixel-formats.patch Patch3: 0004-ffmpeg9-vulkan-queue-families.patch BuildRequires: qt6-qtsvg-devel BuildRequires: qt6-qtdeclarative-devel BuildRequires: openssl-devel #BuildRequires: ffmpeg-static-free %if 0%{?fedora} >= 45 BuildRequires: libavutil-free-devel >= 1:9.0.2 BuildRequires: libavcodec-free-devel >= 1:9.0.2 BuildRequires: libavformat-free-devel >= 1:9.0.2 BuildRequires: libswscale-free-devel >= 1:9.0.2 %else BuildRequires: libavutil-free-devel >= 1:8.1.3 BuildRequires: libavcodec-free-devel >= 1:8.1.3 BuildRequires: libavformat-free-devel >= 1:8.1.3 BuildRequires: libswscale-free-devel >= 1:8.1.3 %endif BuildRequires: SDL2_moonlight BuildRequires: SDL2_ttf-static BuildRequires: libva-devel BuildRequires: libvdpau-devel BuildRequires: opus-devel BuildRequires: pulseaudio-libs-devel BuildRequires: alsa-lib-devel BuildRequires: libdrm-devel BuildRequires: libplacebo-devel BuildRequires: gcc-c++ BuildRequires: make BuildRequires: git %description Moonlight PC is an open source PC client for NVIDIA GameStream and Sunshine. %prep %setup -q -n %{name}-%{version} # add git info to retrieve submodules git clone --bare --depth=1 --single-branch --branch v%{version} %{url} .git git init git reset --hard HEAD # skip libs since they are not needed in linux git -c submodule."libs".update=none submodule update --init --recursive --depth=1 --single-branch %autopatch -p1 %build qmake6 PREFIX=%{_prefix} CONFIG+="disable-wayland disable-libdrm disable-libva disable-libvdpau glslow" moonlight-qt.pro %make_build release %install %make_install INSTALL_ROOT=%{buildroot} install -Dpm 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/com.moonlight_stream.Moonlight.desktop find %{buildroot} -type f | awk -F %{buildroot} '{print $2}' > %{_builddir}/%{name}-%{version}/moonlight-qt.txt %files -f moonlight-qt.txt %changelog %{autochangelog}