File nvidia-userspace-meta-G06.spec of Package nvidia-userspace-meta-G06

#
# spec file for package nvidia-userspace-meta-G06
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#

%define current_version 580.82.07
%define insync_version 580.82.07

Name:           nvidia-userspace-meta-G06
Version:        %{current_version}
Release:        0
Summary:        Meta package to autoselect NVIDIA userspace packages
License:        MIT
URL:            https://build.opensuse.org/package/show/X11:XOrg/nvidia-userspace-meta-G06
Source0:        json-to-pci-id-list.py
Source1:        supported-gpus-%{insync_version}.json
Source2:        supported-gpus.json.LICENSE
Source3:        supported-gpus-%{current_version}.json
BuildRequires:  python3
# autoselect NVIDIA's userspace packages
Requires:       nvidia-compute-utils-G06 = %{current_version}
Requires:       (nvidia-video-G06 = %{current_version} if libglvnd)
# autoselect this meta package if an appropriate kernel driver has
# already been autoselected
Supplements:    nvidia-driver-G06-kmp-default = %{current_version}
Supplements:    nvidia-open-driver-G06-signed-kmp = %{current_version}
BuildArch:      noarch

%description
Meta package to autoselect NVIDIA userspace packages

%package -n nvidia-drivers-insync-latest
Version:        %{insync_version}
Summary:        Meta package to select proprietary/open nvidia drivers in sync
Requires:       nvidia-userspace-meta-G06 = %{insync_version}

%description -n nvidia-drivers-insync-latest
Meta package to select proprietary/open nvidia drivers in sync. This is needed
when using --no-recommends for installation and will select a driver version,
which is available as proprietary and open driver.

%package -n nvidia-open-driver-G06-signed-kmp-meta
Version:        %{insync_version}
Summary:        Meta package to select open nvidia driver in sync
# On TW there is only one driver version available
# The matching nvidia-userspace-meta-G06 will be autoselected by Supplements
%if 0%{?suse_version} > 1600
Requires:       nvidia-open-driver-G06-signed-kmp
%else
Requires:       nvidia-open-driver-G06-signed-kmp = %{insync_version}
Conflicts:      nvidia-open-signed-kmp            > %{insync_version}
Requires:       nvidia-userspace-meta-G06 = %{insync_version}
%endif
Supplements:    (kernel-default and nvidia-open-driver-G06-signed-kmp-meta)
%{expand:%(python3 %{S:0} --flavor default --open %{S:1})}
Supplements:    packageand(kernel-default:nvidia-open-driver-G06-signed-kmp-meta)
%ifarch aarch64
Supplements:    (kernel-64kb and nvidia-open-driver-G06-signed-kmp-meta)
%{expand:%(python3 %{S:0} --flavor 64kb --open %{S:1})}
Supplements:    packageand(kernel-64kb:nvidia-open-driver-G06-signed-kmp-meta)
%endif
%if 0%{?suse_version} > 1600
Supplements:    (kernel-longterm and nvidia-open-driver-G06-signed-kmp-meta)
%{expand:%(python3 %{S:0} --flavor longterm --open %{S:1})}
Supplements:    packageand(kernel-longterm:nvidia-open-driver-G06-signed-kmp-meta)
%endif


%description -n nvidia-open-driver-G06-signed-kmp-meta
Meta package to select open nvidia driver in sync, i.e. trigger
installation of nvidia-open-driver-G06-signed-kmp. Hardware
supplements moved to this meta package. Also require
nvidia-userspace-meta-G06 in sync in case where --no-recommends
is being used.

%package -n nvidia-driver-G06-kmp-meta
Version:        %{current_version}
Summary:        Meta package to select proprietary nvidia driver
Requires:       nvidia-driver-G06-kmp = %{current_version}
Requires:       nvidia-userspace-meta-G06 = %{current_version}
Supplements:    (kernel-default and nvidia-driver-G06-kmp-meta)
%{expand:%(python3 %{S:0} --flavor default --closed %{S:1})}
Supplements:    packageand(kernel-default:nvidia-driver-G06-kmp-meta)
%ifarch aarch64
Supplements:    (kernel-64kb and nvidia-driver-G06-kmp-meta)
%{expand:%(python3 %{S:0} --flavor 64kb --closed %{S:1})}
Supplements:    packageand(kernel-64kb:nvidia-driver-G06-kmp-meta)
%endif
%if 0%{?suse_version} > 1600
Supplements:    (kernel-longterm and nvidia-driver-G06-kmp-meta)
%{expand:%(python3 %{S:0} --flavor longterm --closed %{S:3})}
Supplements:    packageand(kernel-longterm:nvidia-driver-G06-kmp-meta)
%endif

%description -n nvidia-driver-G06-kmp-meta
Meta package to select proprietary nvidia driver, i.e. trigger
installation of nvidia-driver-G06-kmp. Also require
nvidia-userspace-meta-G06 in case where --no-recommends is being
used.

%prep

%build

%install

%check

%files

%files -n nvidia-drivers-insync-latest

%files -n nvidia-open-driver-G06-signed-kmp-meta

%files -n nvidia-driver-G06-kmp-meta

%changelog
openSUSE Build Service is sponsored by