diff --git a/backport-0001-Fix-for-issue-169-glew-cmake-project-requires-a-c-co.patch b/backport-0001-Fix-for-issue-169-glew-cmake-project-requires-a-c-co.patch new file mode 100644 index 0000000..841d625 --- /dev/null +++ b/backport-0001-Fix-for-issue-169-glew-cmake-project-requires-a-c-co.patch @@ -0,0 +1,26 @@ +From f5f69b25eb3495775aef94f443487a4295c0a57e Mon Sep 17 00:00:00 2001 +From: Olli Kallioinen +Date: Fri, 29 Dec 2017 16:54:53 +0200 +Subject: [PATCH] Fix for issue #169 (glew cmake project requires a c++ + compiler) + +--- + build/cmake/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/build/cmake/CMakeLists.txt b/build/cmake/CMakeLists.txt +index 5081e0f..d724e10 100644 +--- a/build/cmake/CMakeLists.txt ++++ b/build/cmake/CMakeLists.txt +@@ -2,7 +2,7 @@ if ( NOT DEFINED CMAKE_BUILD_TYPE ) + set( CMAKE_BUILD_TYPE Release CACHE STRING "Build type" ) + endif () + +-project (glew) ++project (glew C) + + cmake_minimum_required (VERSION 2.8.12) + +-- +2.37.3.windows.1 + diff --git a/glew.spec b/glew.spec index df1fb09..779776e 100644 --- a/glew.spec +++ b/glew.spec @@ -1,6 +1,6 @@ Name: glew Version: 2.1.0 -Release: 7 +Release: 8 Summary: The OpenGL Extension Wrangler Library License: BSD-3-Clause and MIT URL: http://glew.sourceforge.net @@ -14,6 +14,7 @@ Obsoletes: libGLEW < %{version}-%{release} Patch6000: backport-0001-Include-description-of-glew-in-README.md.patch Patch6001: backport-0001-Fixed-compilation-with-current-mesa-versions.patch +Patch6002: backport-0001-Fix-for-issue-169-glew-cmake-project-requires-a-c-co.patch %description OpenGL Extension Wrangler Library (GLEW) is a cross-platform @@ -64,6 +65,9 @@ chmod 0755 $RPM_BUILD_ROOT%{_libdir}/*.so* %doc doc/* %changelog +* Sat Jan 7 2023 mengwenhua - 2.1.0-8 +- glew cmake project requires a c++ compiler + * Fri Jan 6 2023 mengwenhua - 2.1.0-7 - Fixed compilation with current mesa versions.