commit 0293d8c6a2968d79c0e01f45a5dcaef34f861bec
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Sun Mar 25 10:37:31 2018 +0100
Add conditionals, RHEL has no Suggests
xorg-x11-drv-nvidia.spec | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/xorg-x11-drv-nvidia.spec b/xorg-x11-drv-nvidia.spec
index 9064d80..6e8bbb1 100644
--- a/xorg-x11-drv-nvidia.spec
+++ b/xorg-x11-drv-nvidia.spec
@@ -86,7 +86,11 @@ Requires(postun): ldconfig
Requires(post): grubby
Requires: which
Requires: nvidia-settings%{?_isa} = %{version}
+%if 0%{?fedora}
Suggests: nvidia-xconfig%{?_isa} = %{version}
+%else
+Requires: nvidia-xconfig%{?_isa} = %{version}
+%endif
Requires: %{_nvidia_serie}-kmod >= %{?epoch}:%{version}
Requires: %{name}-libs%{?_isa} = %{?epoch}:%{version}-%{release}
@@ -140,7 +144,11 @@ Summary: CUDA driver for %{name}
Requires: %{_nvidia_serie}-kmod >= %{?epoch}:%{version}
Requires: %{name}-cuda-libs%{?_isa} = %{?epoch}:%{version}-%{release}
Requires: nvidia-persistenced%{?_isa} = %{version}
+%if 0%{?fedora}
Suggests: nvidia-modprobe%{?_isa} = %{version}
+%else
+Requires: nvidia-modprobe%{?_isa} = %{version}
+%endif
Requires: ocl-icd%{?_isa}
Requires: opencl-filesystem
Show replies by date