Skip to content

Commit

Permalink
build(copr): fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Dec 17, 2024
1 parent e062484 commit 05dd22c
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions packaging/linux/fedora/Sunshine.spec
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ BuildRequires: which
BuildRequires: xorg-x11-server-Xvfb

# Conditional BuildRequires for cuda-gcc based on Fedora version
%if 0%{?fedora} >= 40
%if 0%{?fedora} > 39
# this package conflicts with gcc on f39
BuildRequires: cuda-gcc-c++
%endif
Expand Down Expand Up @@ -95,14 +95,12 @@ fedora_version=%{fedora}
cuda_supported_architectures=("x86_64" "aarch64")

# set cuda_version based on Fedora version
# these are the same right now, but leave this structure to make it easier to set different versions
if [ "$fedora_version" == 39 ]; then
cuda_version="12.6.2"
cuda_build="560.35.03"
else
cuda_version="12.6.2"
cuda_build="560.35.03"
fi
case "$fedora_version" in
*)
cuda_version="12.6.3"
cuda_build="560.35.05"
;;
esac

# prepare CMAKE args
cmake_args=(
Expand Down

0 comments on commit 05dd22c

Please sign in to comment.