From 16bbe3d46f4b180ae370dba27eb6b8ace0e9d5f4161b60864c87536da0575e97 Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Mon, 3 Feb 2025 14:30:22 +0000 Subject: [PATCH] - fixed build against openSUSE:Factory by defining %_builddir if needed (boo#1236746) OBS-URL: https://build.opensuse.org/package/show/X11:Drivers:Video:Redesign/nvidia-open-driver-G06-signed?expand=0&rev=185 --- nvidia-open-driver-G06-signed.changes | 6 ++++++ nvidia-open-driver-G06-signed.spec | 4 ++++ 2 files changed, 10 insertions(+) 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)