From 8240051f4da292fb1fc4a2391957b8e2182d508d Mon Sep 17 00:00:00 2001 From: metcya Date: Sun, 4 Jan 2026 23:04:04 -0600 Subject: [PATCH] fixness --- anda/apps/sunshine/anda.hcl | 1 + anda/apps/sunshine/fix-test-cxxflags.patch | 6 +++--- anda/apps/sunshine/sunshine.spec | 13 ++++++++++--- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/anda/apps/sunshine/anda.hcl b/anda/apps/sunshine/anda.hcl index d217ce1d09..d93d30b2cf 100644 --- a/anda/apps/sunshine/anda.hcl +++ b/anda/apps/sunshine/anda.hcl @@ -1,5 +1,6 @@ project pkg { rpm { spec = "sunshine.spec" + extra_repos = ["https://repos.fyralabs.com/terrarawhide-nvidia"] } } diff --git a/anda/apps/sunshine/fix-test-cxxflags.patch b/anda/apps/sunshine/fix-test-cxxflags.patch index ce12cf1c6e..db7a31b899 100644 --- a/anda/apps/sunshine/fix-test-cxxflags.patch +++ b/anda/apps/sunshine/fix-test-cxxflags.patch @@ -1,5 +1,5 @@ diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt -index 9a570fd3..676334d1 100644 +index 5a4ecd7f..b78a436f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -16,8 +16,8 @@ include_directories("${GTEST_SOURCE_DIR}/googletest/include" "${GTEST_SOURCE_DIR @@ -11,5 +11,5 @@ index 9a570fd3..676334d1 100644 +set(CMAKE_CXX_FLAGS "-fprofile-arcs -ftest-coverage -ggdb -O0 -fPIE") +set(CMAKE_C_FLAGS "-fprofile-arcs -ftest-coverage -ggdb -O0 -fPIE") - # Find the correct libgcov library path matching the gcc compiler version - # This ensures the test executable links against the same libgcov version used during compilation + # if windows + if (WIN32) diff --git a/anda/apps/sunshine/sunshine.spec b/anda/apps/sunshine/sunshine.spec index 169919de27..d6817e5348 100644 --- a/anda/apps/sunshine/sunshine.spec +++ b/anda/apps/sunshine/sunshine.spec @@ -1,3 +1,5 @@ +%bcond_without cuda + Name: sunshine Version: 2025.924.154138 Release: 1%{?dist} @@ -36,6 +38,10 @@ BuildRequires: pkgconfig(numa) BuildRequires: doxygen BuildRequires: nodejs-npm +%if %{with cuda} +BuildRequires: cuda +%endif + %description Sunshine is a self-hosted game stream host for Moonlight. Offering low-latency, cloud gaming server capabilities with support for AMD, Intel, and Nvidia GPUs @@ -45,10 +51,11 @@ provided to allow configuration, and client pairing, from your favorite web browser. Pair from the local server or any mobile device. %prep -%git_clone https://github.com/LizardByte/Sunshine.git +%git_clone https://github.com/LizardByte/Sunshine.git v%{version} +%autopatch -p1 %build -%cmake +%cmake -DSUNSHINE_ENABLE_CUDA=%{?with_cuda:ON:OFF} %cmake_build %install @@ -57,6 +64,6 @@ browser. Pair from the local server or any mobile device. %files %changelog -* Sun Jan 04 2026 metcya - {version} +* Sun Jan 04 2026 metcya - 2025.924.154138-1 - Initial package