# Conditional build:
%bcond_without tests # build with tests
#
-%define snap 20160513
-%define commit 4678ca9dacfec7a084dbc69bbe568bdad6889f1b
+%define snap 20161029
+%define commit e19e68d4313617b8fe8bb68578d2de51507e603f
Summary: Khronos reference front-end for GLSL and ESSL
Name: glslang
Version: 3.0.s%{snap}
-Release: 2
+Release: 1
License: BSD-like
Group: Applications/Graphics
Source0: https://github.com/KhronosGroup/glslang/archive/%{commit}/%{name}-%{version}.tar.gz
-# Source0-md5: 071445912a8d0f8a533046f0f3b35127
+# Source0-md5: 1d7dbf2fd8b2446258984eebccc34b65
Patch0: runtests.patch
-Patch1: isinf.patch
URL: https://github.com/KhronosGroup/glslang
BuildRequires: cmake
BuildRequires: bison
%prep
%setup -qn %{name}-%{commit}
%patch0 -p1
-%patch1 -p1
%build
install -d build
+++ /dev/null
-diff -dur -x '*~' glslang-4678ca9dacfec7a084dbc69bbe568bdad6889f1b.orig/glslang/MachineIndependent/intermOut.cpp glslang-4678ca9dacfec7a084dbc69bbe568bdad6889f1b/glslang/MachineIndependent/intermOut.cpp
---- glslang-4678ca9dacfec7a084dbc69bbe568bdad6889f1b.orig/glslang/MachineIndependent/intermOut.cpp 2016-05-13 17:33:42.000000000 +0200
-+++ glslang-4678ca9dacfec7a084dbc69bbe568bdad6889f1b/glslang/MachineIndependent/intermOut.cpp 2016-07-14 14:56:03.000000000 +0200
-@@ -49,6 +49,8 @@
- #ifdef _MSC_VER
- return _fpclass(x) == _FPCLASS_PINF;
-+#elif defined isinf
-+ return isinf(x) && (x >= 0);
- #elif defined __ANDROID__ || defined __linux__ || __MINGW32__ || __MINGW64__
- return std::isinf(x) && (x >= 0);
- #else
- return isinf(x) && (x >= 0);