Fix build on RHEL 6

This commit is contained in:
Simone Caronni 2017-04-04 13:26:15 +02:00
parent ef4f602bb8
commit 701eef859d

View File

@ -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