Add conditionals, RHEL has no Suggests

el9
leigh123linux 7 years ago
parent c492144df8
commit 0293d8c6a2

@ -86,7 +86,11 @@ Requires(postun): ldconfig
Requires(post): grubby Requires(post): grubby
Requires: which Requires: which
Requires: nvidia-settings%{?_isa} = %{version} Requires: nvidia-settings%{?_isa} = %{version}
%if 0%{?fedora}
Suggests: nvidia-xconfig%{?_isa} = %{version} Suggests: nvidia-xconfig%{?_isa} = %{version}
%else
Requires: nvidia-xconfig%{?_isa} = %{version}
%endif
Requires: %{_nvidia_serie}-kmod >= %{?epoch}:%{version} Requires: %{_nvidia_serie}-kmod >= %{?epoch}:%{version}
Requires: %{name}-libs%{?_isa} = %{?epoch}:%{version}-%{release} Requires: %{name}-libs%{?_isa} = %{?epoch}:%{version}-%{release}
@ -140,7 +144,11 @@ Summary: CUDA driver for %{name}
Requires: %{_nvidia_serie}-kmod >= %{?epoch}:%{version} Requires: %{_nvidia_serie}-kmod >= %{?epoch}:%{version}
Requires: %{name}-cuda-libs%{?_isa} = %{?epoch}:%{version}-%{release} Requires: %{name}-cuda-libs%{?_isa} = %{?epoch}:%{version}-%{release}
Requires: nvidia-persistenced%{?_isa} = %{version} Requires: nvidia-persistenced%{?_isa} = %{version}
%if 0%{?fedora}
Suggests: nvidia-modprobe%{?_isa} = %{version} Suggests: nvidia-modprobe%{?_isa} = %{version}
%else
Requires: nvidia-modprobe%{?_isa} = %{version}
%endif
Requires: ocl-icd%{?_isa} Requires: ocl-icd%{?_isa}
Requires: opencl-filesystem Requires: opencl-filesystem

Loading…
Cancel
Save