diff --git a/nvidia-open-driver-G06-signed.spec b/nvidia-open-driver-G06-signed.spec index 911e8b8..deeb2e9 100644 --- a/nvidia-open-driver-G06-signed.spec +++ b/nvidia-open-driver-G06-signed.spec @@ -1,5 +1,5 @@ # -# spec file +# spec file for package nvidia-open-driver-G06-signed # # Copyright (c) 2024 SUSE LLC # @@ -51,9 +51,16 @@ Summary: NVIDIA open kernel module driver for GeForce RTX 2000 series and License: GPL-2.0-only AND MIT Group: System/Kernel URL: https://github.com/NVIDIA/open-gpu-kernel-modules/ +%if %{with cuda} +Source0: https://github.com/NVIDIA/open-gpu-kernel-modules/archive/refs/tags/%{cuda_driver_version}.tar.gz#/open-gpu-kernel-modules-%{cuda_driver_version}.tar.gz +Source2: pci_ids-supported-%{cuda_driver_version} +Source9: pci_ids-%{cuda_driver_version} +%else Source0: https://github.com/NVIDIA/open-gpu-kernel-modules/archive/refs/tags/%{version}.tar.gz#/open-gpu-kernel-modules-%{version}.tar.gz -Source1: my-find-supplements Source2: pci_ids-%{version} +Source9: pci_ids-supported-%{version} +%endif +Source1: my-find-supplements Source3: kmp-filelist Source4: kmp-post.sh Source5: kmp-postun.sh @@ -67,14 +74,10 @@ Source8: json-to-pci-id-list.py # sh tmp/cuda_$CUDA_VER_$DRIVER_VER_linux.run --extract=$(pwd)/tmp # sh tmp/NVIDIA-Linux-$ARCH-$DRIVER_VER.run -x # ./json-to-pci-id-list.py --skiplegacy --kernelopen tmp/NVIDIA-Linux-$ARCH-$DRIVER_VER/supported-gpus/supported-gpus.json pci_ids-supported-$DRIVER_VER -Source9: pci_ids-supported-%{version} Source10: pci_ids-supported Source11: pesign-copy-sources Source12: pesign-spec-macros Source14: group-source-files.pl -Source15: pci_ids-supported-%{cuda_driver_version} -Source16: pci_ids-%{cuda_driver_version} -Source17: https://github.com/NVIDIA/open-gpu-kernel-modules/archive/refs/tags/%{cuda_driver_version}.tar.gz#/open-gpu-kernel-modules-%{cuda_driver_version}.tar.gz Patch0: persistent-nvidia-id-string.patch BuildRequires: %{kernel_module_package_buildreqs} BuildRequires: fdupes