-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnvidia-modprobe.spec
46 lines (38 loc) · 1.13 KB
/
nvidia-modprobe.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
%define _tar_end %{?extension}%{?!extension:bz2}
Name: nvidia-modprobe
Version: %{?version}%{?!version:550.54.14}
Release: 1%{?dist}
Summary: NVIDIA kernel module loader
Epoch: 3
License: GPLv2+
URL: http://www.nvidia.com/object/unix.html
ExclusiveArch: %{ix86} x86_64 aarch64
Source0: https://download.nvidia.com/XFree86/%{name}/%{name}-%{version}.tar.%{_tar_end}
Patch0: %{name}-man-page-permissions.patch
BuildRequires: gcc
BuildRequires: m4
%description
This utility is used by user-space NVIDIA driver components to make sure the
NVIDIA kernel modules are loaded and that the NVIDIA character device files are
present.
%prep
%autosetup -p1
# Remove additional CFLAGS added when enabling DEBUG
sed -i '/+= -O0 -g/d' utils.mk
%build
export CFLAGS="%{optflags}"
export LDFLAGS="%{?__global_ldflags}"
%make_build \
DEBUG=1 \
NV_VERBOSE=1 \
PREFIX=%{_prefix} \
STRIP_CMD=true
%install
%make_install \
NV_VERBOSE=1 \
PREFIX=%{_prefix} \
STRIP_CMD=true
%files
%license COPYING
%attr(4755, root, root) %{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*