chore: Update cuda-gcc (#4458) (#4462)

* chore: Spec changes needed for update



* Update update.rhai



* Update cuda-gcc.spec



* Maybe just let the Rhai take care of this



* Update cuda-gcc.spec



* Update update.rhai



* Update cuda-gcc.spec



* Update update.rhai



---------


(cherry picked from commit 1382b5b37b)

Signed-off-by: Gilver <rockgrub@disroot.org>
Co-authored-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
Raboneko
2025-04-27 04:18:26 -07:00
committed by GitHub
parent 8ff3578afd
commit f72b2e7ed0
2 changed files with 12 additions and 4 deletions
+7 -3
View File
@@ -1,8 +1,12 @@
%if 0%{?fedora} < 42 || 0%{?rhel} <= 10
%global gcc_major 13
%else
%global gcc_major 14
%endif
Name: cuda-gcc
Version: 13.3.1
Release: 2%{?dist}
Release: 3%{?dist}
Summary: GNU Compiler Collection CUDA compatibility package
License: BSD
URL: http://gcc.gnu.org
@@ -29,14 +33,14 @@ cat > %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh <<EOF
export NVCC_CCBIN='g++-%{gcc_major}'
# Alternatively you can use the following:
export NVCC_PREPEND_FLAGS='-ccbin %{_bindir}/g++-%{gcc_major}'
#export NVCC_PREPEND_FLAGS='-ccbin %{_bindir}/g++-%{gcc_major}'
EOF
cat > %{buildroot}%{_sysconfdir}/profile.d/%{name}.csh <<EOF
setenv NVCC_CCBIN 'g++-%{gcc_major}'
# Alternatively you can use the following:
setenv NVCC_PREPEND_FLAGS '-ccbin %{_bindir}/g++-%{gcc_major}'
#setenv NVCC_PREPEND_FLAGS '-ccbin %{_bindir}/g++-%{gcc_major}'
EOF
%files
+5 -1
View File
@@ -1,3 +1,7 @@
import "andax/bump_extras.rhai" as bump;
rpm.version(bump::bodhi("gcc13", bump::as_bodhi_ver(labels.branch)));
if labels.branch >= "F42" {
rpm.version(bump::bodhi("gcc14", bump::as_bodhi_ver(labels.branch)));
} else {
rpm.version(bump::bodhi("gcc13", bump::as_bodhi_ver(labels.branch)));
}