diff --git a/nvidia-open-driver-G06-signed.changes b/nvidia-open-driver-G06-signed.changes index bd06315..6eea7fa 100644 --- a/nvidia-open-driver-G06-signed.changes +++ b/nvidia-open-driver-G06-signed.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Feb 3 14:27:28 UTC 2025 - Stefan Dirsch + +- fixed build against openSUSE:Factory by defining %_builddir + if needed (boo#1236746) + ------------------------------------------------------------------- Mon Feb 3 13:42:45 UTC 2025 - Stefan Dirsch diff --git a/nvidia-open-driver-G06-signed.spec b/nvidia-open-driver-G06-signed.spec index 0488882..cddb8a2 100644 --- a/nvidia-open-driver-G06-signed.spec +++ b/nvidia-open-driver-G06-signed.spec @@ -102,6 +102,10 @@ ExclusiveArch: x86_64 aarch64 %if 0%{!?kmp_template_name:1} %define kmp_template_name /usr/lib/rpm/kernel-module-subpackage %endif +%if 0%{!?_builddir:1} +%define _builddir /home/abuild/rpmbuild/BUILD +%endif + %(cat %kmp_template_name > %_builddir/nvidia-kmp-template) %(echo "%triggerin -p /bin/bash -n %%{-n*}-kmp-%1 -- nvidia-common-G06 = %{version}" >> %_builddir/nvidia-kmp-template) %(cat %_sourcedir/kmp-trigger.sh >> %_builddir/nvidia-kmp-template)