Accepting request 1186153 from home:eeich:branches:X11:Drivers:Video:Redesign

- Use macro which is set during build but not when running
  `osc service run download_files` to make sure both source versions
  are visible for download. This way, only the correct source
  tarball will be included in the source package of its respective
  flavor but both can be downloaded (updated) simultaniously.

  in specfile

OBS-URL: https://build.opensuse.org/request/show/1186153
OBS-URL: https://build.opensuse.org/package/show/X11:Drivers:Video:Redesign/nvidia-open-driver-G06-signed?expand=0&rev=114
This commit is contained in:
Stefan Dirsch 2024-07-08 12:08:50 +00:00 committed by Git OBS Bridge
parent 4c31625416
commit 00b5519cd7
2 changed files with 15 additions and 4 deletions

View File

@ -1,8 +1,17 @@
-------------------------------------------------------------------
Mon Jul 8 11:29:07 UTC 2024 - Egbert Eich <eich@suse.com>
- Use macro which is set during build but not when running
`osc service run download_files` to make sure both source versions
are visible for download. This way, only the correct source
tarball will be included in the source package of its respective
flavor but both can be downloaded (updated) simultaniously.
-------------------------------------------------------------------
Fri Jul 5 08:41:55 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
- make buildservice happy; all sources need to be mentioned as such
in specfile
in specfile
-------------------------------------------------------------------
Thu Jul 4 16:29:09 UTC 2024 - Egbert Eich <eich@suse.com>

View File

@ -26,7 +26,9 @@ ExclusiveArch: do_not_build
%endif
%{bcond_without cuda}
%endif
# This is defined at build, not for 'osc service run download_files` or
# factory_auto. This both sources are seen outside of the build but only
# the matching one will be included in the srpm for the respective flavor.
%if %{undefined kernel_module_directory}
%if 0%{?suse_version} >= 1550
%define kernel_module_directory /usr/lib/modules
@ -53,8 +55,8 @@ License: GPL-2.0-only AND MIT
Group: System/Kernel
URL: https://github.com/NVIDIA/open-gpu-kernel-modules/
Source0: https://github.com/NVIDIA/open-gpu-kernel-modules/archive/refs/tags/%{version}.tar.gz#/open-gpu-kernel-modules-%{version}.tar.gz
%if %{with please_fix_factory_auto}
Source16: https://github.com/NVIDIA/open-gpu-kernel-modules/archive/refs/tags/%cuda_version}.tar.gz#/open-gpu-kernel-modules-%{cuda_version}.tar.gz
%if %{undefined linux_arch}
Source16: https://github.com/NVIDIA/open-gpu-kernel-modules/archive/refs/tags/%{cuda_version}.tar.gz#/open-gpu-kernel-modules-%{cuda_version}.tar.gz
Source17: pci_ids-supported-%{cuda_version}
Source18: pci_ids-%{cuda_version}
%endif