|
|
@ -36,31 +36,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
Name: xorg-x11-drv-nvidia
|
|
|
|
Name: xorg-x11-drv-nvidia
|
|
|
|
Epoch: 3
|
|
|
|
Epoch: 3
|
|
|
|
Version: 390.48
|
|
|
|
Version: 396.24
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: NVIDIA's proprietary display driver for NVIDIA graphic cards
|
|
|
|
Summary: NVIDIA's proprietary display driver for NVIDIA graphic cards
|
|
|
|
|
|
|
|
|
|
|
|
License: Redistributable, no modification permitted
|
|
|
|
License: Redistributable, no modification permitted
|
|
|
|
URL: http://www.nvidia.com/
|
|
|
|
URL: http://www.nvidia.com/
|
|
|
|
Source0: https://download.nvidia.com/XFree86/Linux-x86/%{version}/NVIDIA-Linux-x86-%{version}.run
|
|
|
|
Source0: https://download.nvidia.com/XFree86/Linux-x86_64/%{version}/NVIDIA-Linux-x86_64-%{version}.run
|
|
|
|
Source1: https://download.nvidia.com/XFree86/Linux-x86_64/%{version}/NVIDIA-Linux-x86_64-%{version}.run
|
|
|
|
|
|
|
|
Source2: https://download.nvidia.com/XFree86/Linux-32bit-ARM/%{version}/NVIDIA-Linux-armv7l-gnueabihf-%{version}.run
|
|
|
|
Source2: 99-nvidia.conf
|
|
|
|
|
|
|
|
Source3: 00-avoid-glamor.conf
|
|
|
|
Source4: 99-nvidia.conf
|
|
|
|
Source4: blacklist-nouveau.conf
|
|
|
|
Source5: 00-avoid-glamor.conf
|
|
|
|
Source5: alternate-install-present
|
|
|
|
Source6: blacklist-nouveau.conf
|
|
|
|
Source6: nvidia.conf
|
|
|
|
Source7: alternate-install-present
|
|
|
|
Source7: 60-nvidia.rules
|
|
|
|
Source10: nvidia.conf
|
|
|
|
Source8: xorg-x11-drv-nvidia.metainfo.xml
|
|
|
|
Source11: 60-nvidia.rules
|
|
|
|
Source9: parse-readme.py
|
|
|
|
Source12: xorg-x11-drv-nvidia.metainfo.xml
|
|
|
|
Source10: 60-nvidia-uvm.rules
|
|
|
|
Source13: parse-readme.py
|
|
|
|
Source11: nvidia-uvm.conf
|
|
|
|
Source14: 60-nvidia-uvm.rules
|
|
|
|
Source12: 99-nvidia-dracut.conf
|
|
|
|
Source15: nvidia-uvm.conf
|
|
|
|
Source13: 10-nvidia.rules
|
|
|
|
Source16: 99-nvidia-dracut.conf
|
|
|
|
Source14: nvidia-fallback.service
|
|
|
|
Source20: 10-nvidia.rules
|
|
|
|
|
|
|
|
Source21: nvidia-fallback.service
|
|
|
|
ExclusiveArch: x86_64
|
|
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: i686 x86_64 armv7hl
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} > 6 || 0%{?fedora}
|
|
|
|
%if 0%{?rhel} > 6 || 0%{?fedora}
|
|
|
|
Buildrequires: systemd
|
|
|
|
Buildrequires: systemd
|
|
|
@ -145,9 +143,7 @@ Requires: nvidia-persistenced%{?_isa} = %{version}
|
|
|
|
%if 0%{?fedora}
|
|
|
|
%if 0%{?fedora}
|
|
|
|
Suggests: nvidia-modprobe%{?_isa} = %{version}
|
|
|
|
Suggests: nvidia-modprobe%{?_isa} = %{version}
|
|
|
|
# Boolean dependencies are only fedora
|
|
|
|
# Boolean dependencies are only fedora
|
|
|
|
%ifarch x86_64
|
|
|
|
|
|
|
|
Requires: (%{name}-cuda-libs(x86-32) = %{?epoch}:%{version}-%{release} if libGL(x86-32))
|
|
|
|
Requires: (%{name}-cuda-libs(x86-32) = %{?epoch}:%{version}-%{release} if libGL(x86-32))
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
Requires: nvidia-modprobe%{?_isa} = %{version}
|
|
|
|
Requires: nvidia-modprobe%{?_isa} = %{version}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
@ -191,13 +187,9 @@ Requires: mesa-libEGL%{?_isa} >= 13.0.3-3
|
|
|
|
Requires: mesa-libGL%{?_isa} >= 13.0.3-3
|
|
|
|
Requires: mesa-libGL%{?_isa} >= 13.0.3-3
|
|
|
|
Requires: mesa-libGLES%{?_isa} >= 13.0.3-3
|
|
|
|
Requires: mesa-libGLES%{?_isa} >= 13.0.3-3
|
|
|
|
# Boolean dependencies are only fedora
|
|
|
|
# Boolean dependencies are only fedora
|
|
|
|
%ifarch x86_64
|
|
|
|
|
|
|
|
Requires: (%{name}-libs(x86-32) = %{?epoch}:%{version}-%{release} if libGL(x86-32))
|
|
|
|
Requires: (%{name}-libs(x86-32) = %{?epoch}:%{version}-%{release} if libGL(x86-32))
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch x86_64 i686
|
|
|
|
|
|
|
|
Requires: vulkan-filesystem
|
|
|
|
Requires: vulkan-filesystem
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
%description libs
|
|
|
|
This package provides the shared libraries for %{name}.
|
|
|
|
This package provides the shared libraries for %{name}.
|
|
|
@ -205,18 +197,9 @@ This package provides the shared libraries for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -c -T
|
|
|
|
%setup -q -c -T
|
|
|
|
#Only extract the needed arch
|
|
|
|
|
|
|
|
%ifarch %{ix86}
|
|
|
|
|
|
|
|
sh %{SOURCE0} \
|
|
|
|
sh %{SOURCE0} \
|
|
|
|
%endif
|
|
|
|
--extract-only --target nvidiapkg-x86_64
|
|
|
|
%ifarch x86_64
|
|
|
|
ln -s nvidiapkg-x86_64 nvidiapkg
|
|
|
|
sh %{SOURCE1} \
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch armv7hl
|
|
|
|
|
|
|
|
sh %{SOURCE2} \
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
--extract-only --target nvidiapkg-%{_target_cpu}
|
|
|
|
|
|
|
|
ln -s nvidiapkg-%{_target_cpu} nvidiapkg
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
@ -248,6 +231,12 @@ cp -a \
|
|
|
|
libnvidia-ptxjitcompiler.so.%{version} \
|
|
|
|
libnvidia-ptxjitcompiler.so.%{version} \
|
|
|
|
%{buildroot}%{_libdir}/
|
|
|
|
%{buildroot}%{_libdir}/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cp -af \
|
|
|
|
|
|
|
|
tls/libnvidia-tls.so* \
|
|
|
|
|
|
|
|
libnvidia-compiler.so.%{version} \
|
|
|
|
|
|
|
|
libnvidia-opencl.so.%{version} \
|
|
|
|
|
|
|
|
%{buildroot}%{_libdir}/
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} < 8
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} < 8
|
|
|
|
mkdir -p %{buildroot}%{_nvidia_libdir}
|
|
|
|
mkdir -p %{buildroot}%{_nvidia_libdir}
|
|
|
|
cp -a \
|
|
|
|
cp -a \
|
|
|
@ -258,18 +247,6 @@ cp -a \
|
|
|
|
ldconfig -vn %{buildroot}%{_nvidia_libdir}/
|
|
|
|
ldconfig -vn %{buildroot}%{_nvidia_libdir}/
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# Use the correct TLS implementation for x86_64/i686, already ok on ARM
|
|
|
|
|
|
|
|
# OpenCL is only available on x86_64/i686.
|
|
|
|
|
|
|
|
%ifarch x86_64 i686
|
|
|
|
|
|
|
|
cp -af \
|
|
|
|
|
|
|
|
tls/libnvidia-tls.so* \
|
|
|
|
|
|
|
|
libnvidia-compiler.so.%{version} \
|
|
|
|
|
|
|
|
libnvidia-opencl.so.%{version} \
|
|
|
|
|
|
|
|
%{buildroot}%{_libdir}/
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
cp -af libnvidia-tls.so* %{buildroot}%{_libdir}/
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Use ldconfig for libraries with a mismatching SONAME/filename
|
|
|
|
# Use ldconfig for libraries with a mismatching SONAME/filename
|
|
|
|
ldconfig -vn %{buildroot}%{_libdir}/
|
|
|
|
ldconfig -vn %{buildroot}%{_libdir}/
|
|
|
|
|
|
|
|
|
|
|
@ -295,19 +272,17 @@ install -p -D -m 0755 libglx.so.%{version} %{buildroot}%{_nvidia_xorgdir}/libglx
|
|
|
|
ln -sf libglx.so.%{version} %{buildroot}%{_nvidia_xorgdir}/libglx.so
|
|
|
|
ln -sf libglx.so.%{version} %{buildroot}%{_nvidia_xorgdir}/libglx.so
|
|
|
|
install -D -p -m 0755 nvidia_drv.so %{buildroot}%{_libdir}/xorg/modules/drivers/nvidia_drv.so
|
|
|
|
install -D -p -m 0755 nvidia_drv.so %{buildroot}%{_libdir}/xorg/modules/drivers/nvidia_drv.so
|
|
|
|
|
|
|
|
|
|
|
|
%ifarch x86_64 i686
|
|
|
|
|
|
|
|
# OpenCL config
|
|
|
|
# OpenCL config
|
|
|
|
install -m 0755 -d %{buildroot}%{_sysconfdir}/OpenCL/vendors/
|
|
|
|
install -m 0755 -d %{buildroot}%{_sysconfdir}/OpenCL/vendors/
|
|
|
|
install -p -m 0644 nvidia.icd %{buildroot}%{_sysconfdir}/OpenCL/vendors/
|
|
|
|
install -p -m 0644 nvidia.icd %{buildroot}%{_sysconfdir}/OpenCL/vendors/
|
|
|
|
# Vulkan config
|
|
|
|
# Vulkan config
|
|
|
|
sed -i -e 's|__NV_VK_ICD__|libGLX_nvidia.so.0|' nvidia_icd.json.template
|
|
|
|
sed -i -e 's|__NV_VK_ICD__|libGLX_nvidia.so.0|' nvidia_icd.json.template
|
|
|
|
install -m 0755 -d %{buildroot}%{_datadir}/vulkan/icd.d/
|
|
|
|
install -m 0755 -d %{buildroot}%{_datadir}/vulkan/icd.d/
|
|
|
|
install -p -m 0644 nvidia_icd.json.template %{buildroot}%{_datadir}/vulkan/icd.d/nvidia_icd.%{_target_cpu}.json
|
|
|
|
install -p -m 0644 nvidia_icd.json.template %{buildroot}%{_datadir}/vulkan/icd.d/nvidia_icd.x86_64.json
|
|
|
|
%if 0%{?rhel}
|
|
|
|
%if 0%{?rhel}
|
|
|
|
# back to non-glvnd version for vulkan
|
|
|
|
# back to non-glvnd version for vulkan
|
|
|
|
sed -i -e 's|libGLX_nvidia.so.0|libGL.so.1|' %{buildroot}%{_datadir}/vulkan/icd.d/nvidia_icd.%{_target_cpu}.json
|
|
|
|
sed -i -e 's|libGLX_nvidia.so.0|libGL.so.1|' %{buildroot}%{_datadir}/vulkan/icd.d/nvidia_icd.x86_64.json
|
|
|
|
touch -r nvidia_icd.json.template %{buildroot}%{_datadir}/vulkan/icd.d/nvidia_icd.%{_target_cpu}.json
|
|
|
|
touch -r nvidia_icd.json.template %{buildroot}%{_datadir}/vulkan/icd.d/nvidia_icd.x86_64.json
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# EGL config for libglvnd
|
|
|
|
# EGL config for libglvnd
|
|
|
@ -316,21 +291,21 @@ install -p -m 0644 10_nvidia.json %{buildroot}%{_datadir}/glvnd/egl_vendor.d/10_
|
|
|
|
|
|
|
|
|
|
|
|
# Blacklist nouveau, autoload nvidia-uvm module after nvidia module
|
|
|
|
# Blacklist nouveau, autoload nvidia-uvm module after nvidia module
|
|
|
|
mkdir -p %{buildroot}%{_modprobe_d}
|
|
|
|
mkdir -p %{buildroot}%{_modprobe_d}
|
|
|
|
install -p -m 0644 %{SOURCE15} %{buildroot}%{_modprobe_d}
|
|
|
|
install -p -m 0644 %{SOURCE11} %{buildroot}%{_modprobe_d}
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} < 8
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} < 8
|
|
|
|
install -p -m 0644 %{SOURCE6} %{buildroot}%{_modprobe_d}
|
|
|
|
install -p -m 0644 %{SOURCE4} %{buildroot}%{_modprobe_d}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# UDev rules for nvidia
|
|
|
|
# UDev rules for nvidia
|
|
|
|
install -m 0755 -d %{buildroot}%{_udevrulesdir}
|
|
|
|
install -m 0755 -d %{buildroot}%{_udevrulesdir}
|
|
|
|
install -p -m 0644 %{SOURCE11} %{buildroot}%{_udevrulesdir}
|
|
|
|
install -p -m 0644 %{SOURCE7} %{buildroot}%{_udevrulesdir}
|
|
|
|
|
|
|
|
|
|
|
|
# UDev rules for nvidia-uvm
|
|
|
|
# UDev rules for nvidia-uvm
|
|
|
|
install -p -m 0644 %{SOURCE14} %{buildroot}%{_udevrulesdir}
|
|
|
|
install -p -m 0644 %{SOURCE10} %{buildroot}%{_udevrulesdir}
|
|
|
|
|
|
|
|
|
|
|
|
# dracut.conf.d file, nvidia modules must never be in the initrd
|
|
|
|
# dracut.conf.d file, nvidia modules must never be in the initrd
|
|
|
|
install -p -m 0755 -d %{buildroot}%{_dracut_conf_d}/
|
|
|
|
install -p -m 0755 -d %{buildroot}%{_dracut_conf_d}/
|
|
|
|
install -p -m 0644 %{SOURCE16} %{buildroot}%{_dracut_conf_d}/
|
|
|
|
install -p -m 0644 %{SOURCE12} %{buildroot}%{_dracut_conf_d}/
|
|
|
|
|
|
|
|
|
|
|
|
# Install binaries
|
|
|
|
# Install binaries
|
|
|
|
install -m 0755 -d %{buildroot}%{_bindir}
|
|
|
|
install -m 0755 -d %{buildroot}%{_bindir}
|
|
|
@ -348,7 +323,7 @@ install -p -m 0644 nvidia-{cuda-mps-control,smi}.1.gz \
|
|
|
|
|
|
|
|
|
|
|
|
#Alternate-install-present is checked by the nvidia .run
|
|
|
|
#Alternate-install-present is checked by the nvidia .run
|
|
|
|
mkdir -p %{buildroot}%{_alternate_dir}
|
|
|
|
mkdir -p %{buildroot}%{_alternate_dir}
|
|
|
|
install -p -m 0644 %{SOURCE7} %{buildroot}%{_alternate_dir}
|
|
|
|
install -p -m 0644 %{SOURCE5} %{buildroot}%{_alternate_dir}
|
|
|
|
|
|
|
|
|
|
|
|
#install the NVIDIA supplied application profiles
|
|
|
|
#install the NVIDIA supplied application profiles
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/nvidia
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/nvidia
|
|
|
@ -358,15 +333,15 @@ install -p -m 0644 nvidia-application-profiles-%{version}-{rc,key-documentation}
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/X11/xorg.conf.d
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/X11/xorg.conf.d
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/X11/xorg.conf.d
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/X11/xorg.conf.d
|
|
|
|
%if 0%{?fedora} >= 25 || 0%{?rhel} >= 7
|
|
|
|
%if 0%{?fedora} >= 25 || 0%{?rhel} >= 7
|
|
|
|
install -pm 0644 %{SOURCE10} %{buildroot}%{_datadir}/X11/xorg.conf.d/nvidia.conf
|
|
|
|
install -pm 0644 %{SOURCE6} %{buildroot}%{_datadir}/X11/xorg.conf.d/nvidia.conf
|
|
|
|
sed -i -e 's|@LIBDIR@|%{_libdir}|g' %{buildroot}%{_datadir}/X11/xorg.conf.d/nvidia.conf
|
|
|
|
sed -i -e 's|@LIBDIR@|%{_libdir}|g' %{buildroot}%{_datadir}/X11/xorg.conf.d/nvidia.conf
|
|
|
|
touch -r %{SOURCE10} %{buildroot}%{_datadir}/X11/xorg.conf.d/nvidia.conf
|
|
|
|
touch -r %{SOURCE6} %{buildroot}%{_datadir}/X11/xorg.conf.d/nvidia.conf
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
install -pm 0644 nvidia-drm-outputclass.conf %{buildroot}%{_datadir}/X11/xorg.conf.d/nvidia.conf
|
|
|
|
install -pm 0644 nvidia-drm-outputclass.conf %{buildroot}%{_datadir}/X11/xorg.conf.d/nvidia.conf
|
|
|
|
install -pm 0644 %{SOURCE4} %{buildroot}%{_datadir}/X11/xorg.conf.d
|
|
|
|
install -pm 0644 %{SOURCE2} %{buildroot}%{_datadir}/X11/xorg.conf.d
|
|
|
|
install -pm 0644 %{SOURCE5} %{buildroot}%{_datadir}/X11/xorg.conf.d
|
|
|
|
install -pm 0644 %{SOURCE3} %{buildroot}%{_datadir}/X11/xorg.conf.d
|
|
|
|
sed -i -e 's|@LIBDIR@|%{_libdir}|g' %{buildroot}%{_datadir}/X11/xorg.conf.d/99-nvidia.conf
|
|
|
|
sed -i -e 's|@LIBDIR@|%{_libdir}|g' %{buildroot}%{_datadir}/X11/xorg.conf.d/99-nvidia.conf
|
|
|
|
touch -r %{SOURCE4} %{buildroot}%{_datadir}/X11/xorg.conf.d/99-nvidia.conf
|
|
|
|
touch -r %{SOURCE2} %{buildroot}%{_datadir}/X11/xorg.conf.d/99-nvidia.conf
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
#Ghost Xorg nvidia.conf files
|
|
|
|
#Ghost Xorg nvidia.conf files
|
|
|
|
touch %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/00-avoid-glamor.conf
|
|
|
|
touch %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/00-avoid-glamor.conf
|
|
|
@ -378,17 +353,17 @@ mkdir -p %{buildroot}%{_sysconfdir}/nvidia
|
|
|
|
|
|
|
|
|
|
|
|
#Install the nvidia kernel modules sources archive
|
|
|
|
#Install the nvidia kernel modules sources archive
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/nvidia-kmod-%{version}
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/nvidia-kmod-%{version}
|
|
|
|
tar Jcf %{buildroot}%{_datadir}/nvidia-kmod-%{version}/nvidia-kmod-%{version}-%{_target_cpu}.tar.xz kernel
|
|
|
|
tar Jcf %{buildroot}%{_datadir}/nvidia-kmod-%{version}/nvidia-kmod-%{version}-x86_64.tar.xz kernel
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 25
|
|
|
|
%if 0%{?fedora} >= 25
|
|
|
|
# install AppData and add modalias provides
|
|
|
|
# install AppData and add modalias provides
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/appdata/
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/appdata/
|
|
|
|
install -pm 0644 %{SOURCE12} %{buildroot}%{_datadir}/appdata/
|
|
|
|
install -pm 0644 %{SOURCE8} %{buildroot}%{_datadir}/appdata/
|
|
|
|
fn=%{buildroot}%{_datadir}/appdata/xorg-x11-drv-nvidia.metainfo.xml
|
|
|
|
fn=%{buildroot}%{_datadir}/appdata/xorg-x11-drv-nvidia.metainfo.xml
|
|
|
|
%{SOURCE13} README.txt "NVIDIA GEFORCE GPUS" | xargs appstream-util add-provide ${fn} modalias
|
|
|
|
%{SOURCE9} README.txt "NVIDIA GEFORCE GPUS" | xargs appstream-util add-provide ${fn} modalias
|
|
|
|
%{SOURCE13} README.txt "NVIDIA QUADRO GPUS" | xargs appstream-util add-provide ${fn} modalias
|
|
|
|
%{SOURCE9} README.txt "NVIDIA QUADRO GPUS" | xargs appstream-util add-provide ${fn} modalias
|
|
|
|
%{SOURCE13} README.txt "NVIDIA NVS GPUS" | xargs appstream-util add-provide ${fn} modalias
|
|
|
|
%{SOURCE9} README.txt "NVIDIA NVS GPUS" | xargs appstream-util add-provide ${fn} modalias
|
|
|
|
%{SOURCE13} README.txt "NVIDIA TESLA GPUS" | xargs appstream-util add-provide ${fn} modalias
|
|
|
|
%{SOURCE9} README.txt "NVIDIA TESLA GPUS" | xargs appstream-util add-provide ${fn} modalias
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
|
|
|
install -pm 0644 nvidia-settings.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
|
|
|
install -pm 0644 nvidia-settings.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
@ -396,8 +371,8 @@ install -pm 0644 nvidia-settings.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
|
|
|
# Install nvidia-fallback
|
|
|
|
# Install nvidia-fallback
|
|
|
|
%if 0%{?rhel} > 6 || 0%{?fedora}
|
|
|
|
%if 0%{?rhel} > 6 || 0%{?fedora}
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
install -p -m 0644 %{SOURCE20} %{buildroot}%{_udevrulesdir}
|
|
|
|
install -p -m 0644 %{SOURCE13} %{buildroot}%{_udevrulesdir}
|
|
|
|
install -p -m 0644 %{SOURCE21} %{buildroot}%{_unitdir}
|
|
|
|
install -p -m 0644 %{SOURCE14} %{buildroot}%{_unitdir}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -507,7 +482,7 @@ fi ||:
|
|
|
|
|
|
|
|
|
|
|
|
%files kmodsrc
|
|
|
|
%files kmodsrc
|
|
|
|
%dir %{_datadir}/nvidia-kmod-%{version}
|
|
|
|
%dir %{_datadir}/nvidia-kmod-%{version}
|
|
|
|
%{_datadir}/nvidia-kmod-%{version}/nvidia-kmod-%{version}-%{_target_cpu}.tar.xz
|
|
|
|
%{_datadir}/nvidia-kmod-%{version}/nvidia-kmod-%{version}-x86_64.tar.xz
|
|
|
|
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
%files libs
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} < 8
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} < 8
|
|
|
@ -518,9 +493,7 @@ fi ||:
|
|
|
|
%{_nvidia_libdir}/libGL.so.%{version}
|
|
|
|
%{_nvidia_libdir}/libGL.so.%{version}
|
|
|
|
%{_nvidia_libdir}/libGLdispatch.so.0
|
|
|
|
%{_nvidia_libdir}/libGLdispatch.so.0
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%ifarch x86_64 i686
|
|
|
|
%{_datadir}/vulkan/icd.d/nvidia_icd.x86_64.json
|
|
|
|
%{_datadir}/vulkan/icd.d/nvidia_icd.%{_target_cpu}.json
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%dir %{_nvidia_libdir}
|
|
|
|
%dir %{_nvidia_libdir}
|
|
|
|
%{_libdir}/libEGL_nvidia.so.0
|
|
|
|
%{_libdir}/libEGL_nvidia.so.0
|
|
|
|
%{_libdir}/libEGL_nvidia.so.%{version}
|
|
|
|
%{_libdir}/libEGL_nvidia.so.%{version}
|
|
|
@ -552,9 +525,7 @@ fi ||:
|
|
|
|
%{_bindir}/nvidia-smi
|
|
|
|
%{_bindir}/nvidia-smi
|
|
|
|
%{_bindir}/nvidia-cuda-mps-control
|
|
|
|
%{_bindir}/nvidia-cuda-mps-control
|
|
|
|
%{_bindir}/nvidia-cuda-mps-server
|
|
|
|
%{_bindir}/nvidia-cuda-mps-server
|
|
|
|
%ifarch x86_64 i686
|
|
|
|
|
|
|
|
%config %{_sysconfdir}/OpenCL/vendors/nvidia.icd
|
|
|
|
%config %{_sysconfdir}/OpenCL/vendors/nvidia.icd
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%{_mandir}/man1/nvidia-smi.*
|
|
|
|
%{_mandir}/man1/nvidia-smi.*
|
|
|
|
%{_mandir}/man1/nvidia-cuda-mps-control.1.*
|
|
|
|
%{_mandir}/man1/nvidia-cuda-mps-control.1.*
|
|
|
|
%{_modprobe_d}/nvidia-uvm.conf
|
|
|
|
%{_modprobe_d}/nvidia-uvm.conf
|
|
|
@ -573,11 +544,9 @@ fi ||:
|
|
|
|
%{_libdir}/libnvidia-ml.so.%{version}
|
|
|
|
%{_libdir}/libnvidia-ml.so.%{version}
|
|
|
|
%{_libdir}/libnvidia-ptxjitcompiler.so.1
|
|
|
|
%{_libdir}/libnvidia-ptxjitcompiler.so.1
|
|
|
|
%{_libdir}/libnvidia-ptxjitcompiler.so.%{version}
|
|
|
|
%{_libdir}/libnvidia-ptxjitcompiler.so.%{version}
|
|
|
|
%ifarch x86_64 i686
|
|
|
|
|
|
|
|
%{_libdir}/libnvidia-compiler.so.%{version}
|
|
|
|
%{_libdir}/libnvidia-compiler.so.%{version}
|
|
|
|
%{_libdir}/libnvidia-opencl.so.1
|
|
|
|
%{_libdir}/libnvidia-opencl.so.1
|
|
|
|
%{_libdir}/libnvidia-opencl.so.%{version}
|
|
|
|
%{_libdir}/libnvidia-opencl.so.%{version}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/nvidia/
|
|
|
|
%{_includedir}/nvidia/
|
|
|
@ -585,6 +554,9 @@ fi ||:
|
|
|
|
%{_libdir}/libnvidia-encode.so
|
|
|
|
%{_libdir}/libnvidia-encode.so
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Fri May 04 2018 Leigh Scott <leigh123linux@googlemail.com> - 3:396.24-1
|
|
|
|
|
|
|
|
- Update to 396.24 release
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Apr 09 2018 Nicolas Chauvet <kwizart@gmail.com> - 3:390.48-2
|
|
|
|
* Mon Apr 09 2018 Nicolas Chauvet <kwizart@gmail.com> - 3:390.48-2
|
|
|
|
- Add icon to be used by appdata
|
|
|
|
- Add icon to be used by appdata
|
|
|
|
- Add cuda-libs(x86-32) if libGL(x86-32) is present
|
|
|
|
- Add cuda-libs(x86-32) if libGL(x86-32) is present
|
|
|
|