From 3f37ff0e26a3909380a6761116c1a493055fac8e Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Thu, 16 Feb 2017 09:49:22 +0100 Subject: [PATCH] Avoid xorg dir symlink --- xorg-x11-drv-nvidia.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xorg-x11-drv-nvidia.spec b/xorg-x11-drv-nvidia.spec index daa63d5..6f7885b 100644 --- a/xorg-x11-drv-nvidia.spec +++ b/xorg-x11-drv-nvidia.spec @@ -327,8 +327,10 @@ desktop-file-install --vendor "" \ %endif nvidia-settings.desktop +%if 0%{?rhel} < 8 || 0%{?fedora} <= 24 #Workaround for self made xorg.conf using a Files section. ln -fs ../../%{_nvidia_serie}/xorg $RPM_BUILD_ROOT%{_libdir}/xorg/modules/%{_nvidia_serie}-%{version} +%endif %if 0%{?rhel} > 6 || 0%{?fedora} <= 24 #Workaround for cuda availability - rfbz#2916 @@ -526,7 +528,9 @@ fi ||: %dir %{_nvidia_xorgdir} %{_nvidia_xorgdir}/*.so* %{_libdir}/xorg/modules/drivers/nvidia_drv.so +%if 0%{?rhel} < 8 || 0%{?fedora} <= 24 %{_libdir}/xorg/modules/%{_nvidia_serie}-%{version} +%endif # It's time that nvidia-settings used gtk3 %ifarch %{arm} %{_nvidia_libdir}/libnvidia-gtk2.so*