%global debug_package %{nil} %define major_version 6.1.0 %define release_version 1 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 BuildRequires: qt6-qtsvg-devel BuildRequires: qt6-qtdeclarative-devel BuildRequires: openssl-devel #BuildRequires: ffmpeg-static-free BuildRequires: libavutil-free-devel BuildRequires: libavcodec-free-devel BuildRequires: libavformat-free-devel BuildRequires: libswscale-free-devel 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 Requires: qt6-qtbase #Requires: ffmpeg-static-free Requires: libavutil-free-devel Requires: libavcodec-free-devel Requires: libavformat-free-devel Requires: libswscale-free-devel Requires: SDL2_moonlight Requires: SDL2_ttf-static Requires: libva Requires: libvdpau Requires: opus Requires: openssl Requires: SDL2_moonlight Requires: SDL2_ttf-static Requires: (pulseaudio or pipewire-pulseaudio) Requires: alsa-lib Requires: libdrm %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 %build qmake6 PREFIX=%{buildroot}/usr CONFIG+="disable-wayland disable-libdrm disable-libva disable-libvdpau" moonlight-qt.pro make release %install %make_install find %{buildroot} -type f | awk -F %{buildroot} '{print $2}' > %{_builddir}/%{name}/moonlight-qt.txt %files -f moonlight-qt.txt %changelog %{autochangelog}