From 701eef859d1236814c55e0128522f4e1e6cd50c5 Mon Sep 17 00:00:00 2001 From: Simone Caronni Date: Tue, 4 Apr 2017 13:26:15 +0200 Subject: [PATCH] Fix build on RHEL 6 --- libglvnd.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/libglvnd.spec b/libglvnd.spec index 5792fe0..c372478 100644 --- a/libglvnd.spec +++ b/libglvnd.spec @@ -33,6 +33,10 @@ BuildRequires: pkgconfig(xext) #https://github.com/NVIDIA/libglvnd/issues/93 BuildRequires: xorg-x11-server-Xvfb +%if 0%{?rhel} == 6 +BuildRequires: autoconf268 +%endif + %{?_without_mesa_glvnd_default: %global __provides_exclude ^(libGL\\.so.*|libEGL\\.so.*|libGLES*\\.so.*)$ %global __requires_exclude ^(libGL\\.so.*|libEGL\\.so.*|libGLES*\\.so.*)$ @@ -118,8 +122,13 @@ libGL and libGLX are the common dispatch interface for the GLX API. %prep -%autosetup -p1 -n %{name}-%{?commit0}%{?!commit0:%{version}} +%setup -n %{name}-%{?commit0}%{?!commit0:%{version}} +%patch1 -p1 +%if 0%{?rhel} == 6 +autoreconf268 -vif +%else autoreconf -vif +%endif %build