Files
packages/anda/system/nvidia/dkms-nvidia/dkms-nvidia.spec
T
Gilver caf9c9fb45 feat: Update NVIDIA packages for 590 (#8460) (#8505)
* feat: Update NVIDIA packages for 590

* shfdjhdfhjkd

* shfdjhdfhjkd

* AAAAAA

* ????

* Oh.

* chore: Double check source files

* AHA

* More stuff

* sadhdfjkhdfhjk

* ?

* Try and update this properly

* Okay what is happening

* ?

* A

* A

* A

* FINALLY

(cherry picked from commit dd32fe9421)

Signed-off-by: GildedRoach <GildedRoach@users.noreply.github.com>
2025-12-19 13:19:43 -06:00

59 lines
1.8 KiB
RPMSpec

## NVIDIA DKMS package, based on the work of Negativo17 with tweaks for Terra.
%global debug_package %{nil}
%global modulename nvidia
Name: dkms-%{modulename}
Version: 590.48.01
Release: 2%?dist
Summary: NVIDIA display driver kernel module
Epoch: 3
License: NVIDIA License
URL: https://www.nvidia.com/object/unix.html
Source0: https://github.com/NVIDIA/open-gpu-kernel-modules/archive/%{version}/open-gpu-kernel-modules-%{version}.tar.gz
Source1: %{name}.conf
BuildRequires: sed
Provides: %{modulename}-kmod = %{?epoch:%{epoch}:}%{version}
Requires: %{modulename}-kmod-common = %{?epoch:%{epoch}:}%{version}
Requires: dkms
Requires: gcc-c++
Conflicts: akmod-nvidia
# Unlike most DKMS packages, this package is NOT noarch!
ExclusiveArch: x86_64 aarch64
Provides: %{name}-open = %{?epoch:%{epoch}:}%{version}
Obsoletes: %{name}-open < %{?epoch:%{epoch}:}%{version}
%description
This package provides the NVIDIA kernel driver modules.
%prep
%autosetup -p1 -n open-gpu-kernel-modules-%{version}
cp -f %{SOURCE1} dkms.conf
sed -i -e 's/__VERSION_STRING/%{version}/g' dkms.conf
%build
%install
# Create empty tree:
mkdir -p %{buildroot}%{_usrsrc}/%{modulename}-%{version}/
cp -fr * %{buildroot}%{_usrsrc}/%{modulename}-%{version}/
rm -f %{buildroot}%{_usrsrc}/%{modulename}-%{version}/*/dkms.conf
%post
dkms add -m %{modulename} -v %{version} -q --rpm_safe_upgrade || :
# Rebuild and make available for the currently running kernel:
dkms build -m %{modulename} -v %{version} -q --force
dkms install -m %{modulename} -v %{version} -q --force
%preun
# Remove all versions from DKMS registry:
dkms remove -m %{modulename} -v %{version} -q --all --rpm_safe_upgrade || :
%files
%{_usrsrc}/%{modulename}-%{version}
%changelog
%autochangelog