Skip to content

Commit

Permalink
Add nvidia-kmod-headers package, with /usr/src/nvidia-${version} for …
Browse files Browse the repository at this point in the history
…precompiled streams

  - same contents as kmod-nvidia-latest-dkms package
  - installed using /src modularity profile

Signed-off-by: Kevin Mittman <kmittman@nvidia.com>
  • Loading branch information
kmittman committed Apr 3, 2021
1 parent f5efffa commit 78dad16
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions dkms-nvidia.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%global dkms_name nvidia

Name: kmod-%{dkms_name}-latest-dkms
Version: 430.14
Version: %{?version}%{?!version:430.14}
Release: 1%{?dist}
Summary: NVIDIA display driver kernel module
Epoch: 3
Expand All @@ -26,6 +26,14 @@ This package provides the proprietary Nvidia kernel driver modules.
The modules are rebuilt through the DKMS system when a new kernel or modules
become available.

%package -n nvidia-kmod-headers
Summary: NVIDIA header files for precompiled streams
AutoReq: 0
Conflicts: kmod-nvidia-latest-dkms

%description -n nvidia-kmod-headers
NVIDIA header files for precompiled streams

%prep
%ifarch x86_64
%setup -q -n %{dkms_name}-kmod-%{version}-x86_64
Expand Down Expand Up @@ -61,10 +69,16 @@ dkms install -m %{dkms_name} -v %{version} -q --force || :
# Remove all versions from DKMS registry
dkms remove -m %{dkms_name} -v %{version} -q --all || :

%files
%files -n kmod-%{dkms_name}-latest-dkms
%{_usrsrc}/%{dkms_name}-%{version}

%files -n nvidia-kmod-headers
%{_usrsrc}/%{dkms_name}-%{version}

%changelog
* Tue Mar 23 2021 Kevin Mittman <kmittman@nvidia.com> - 3:460.00-1
- Add nvidia-kmod-headers package.

* Sat May 18 2019 Simone Caronni <negativo17@gmail.com> - 3:430.14-1
- Update to 430.14.

Expand Down

0 comments on commit 78dad16

Please sign in to comment.