commit ecdea98b967d411c192f3dad57cf6390473f0649
Author: Simone Caronni <negativo17(a)gmail.com>
Date: Mon Feb 27 14:53:31 2017 +0100
Do not install OutputClass configuration file on anything but Fedora 24 and RHEL 7.
Fixes build on RHEL 6.
xorg-x11-drv-nvidia.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/xorg-x11-drv-nvidia.spec b/xorg-x11-drv-nvidia.spec
index 9a07809..cdc1a77 100644
--- a/xorg-x11-drv-nvidia.spec
+++ b/xorg-x11-drv-nvidia.spec
@@ -364,7 +364,7 @@ install -pm 0644 %{SOURCE10}
$RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d/nvidia.c
sed -i -e 's|@LIBDIR@|%{_libdir}|g'
$RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d/nvidia.conf
touch -r %{SOURCE10} $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d/nvidia.conf
%endif
-%if 0%{?fedora} <= 24
+%if 0%{?rhel} == 7 || 0%{?fedora} == 24
mkdir -p $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d
install -pm 0644 %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d/nvidia.conf
%endif
Show replies by date