Skip to content

Commit

Permalink
glew: Update to 2.2.0 (#10871)
Browse files Browse the repository at this point in the history
Co-authored-by: dj_palli <[email protected]>
  • Loading branch information
durgajagadeesh and dj_palli authored Feb 6, 2025
1 parent de058f8 commit d83cde4
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 6 deletions.
13 changes: 13 additions & 0 deletions SPECS-EXTENDED/glew/glew-2.2.0-gcc12-cplusplus.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff -up glew-2.2.0/include/GL/glew.h~ glew-2.2.0/include/GL/glew.h
--- glew-2.2.0/include/GL/glew.h~ 2020-03-15 12:53:59.000000000 +0100
+++ glew-2.2.0/include/GL/glew.h 2022-02-22 23:17:58.889834158 +0100
@@ -220,7 +220,8 @@ typedef _W64 int ptrdiff_t;
*/

#if defined(__APPLE__) || defined(__linux__)
-# if defined(__cplusplus)
+/* GCC12 errors out when including <cstdint> with __cplusplus < 201103L */
+# if defined(__cplusplus) && __cplusplus >= 201103L
# include <cstddef>
# include <cstdint>
# else
2 changes: 1 addition & 1 deletion SPECS-EXTENDED/glew/glew.signatures.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Signatures": {
"glew-2.1.0.tgz": "04de91e7e6763039bc11940095cd9c7f880baba82196a7765f727ac05a993c95"
"glew-2.2.0.tgz": "d4fc82893cfb00109578d0a1a2337fb8ca335b3ceccf97b97e5cc7f08e4353e1"
}
}
15 changes: 12 additions & 3 deletions SPECS-EXTENDED/glew/glew.spec
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
Name: glew
Version: 2.1.0
Release: 7%{?dist}
Version: 2.2.0
Release: 1%{?dist}
Summary: The OpenGL Extension Wrangler Library
License: BSD and MIT
Vendor: Microsoft Corporation
Distribution: Azure Linux
URL: http://glew.sourceforge.net
URL: https://glew.sourceforge.net

Source0: https://sourceforge.net/projects/glew/files/glew/%{version}/glew-%{version}.tgz
Patch0: glew-2.1.0-install.patch
Patch1: glew-2.2.0-gcc12-cplusplus.patch

BuildRequires: gcc
BuildRequires: libGLU-devel
BuildRequires: make


%description
The OpenGL Extension Wrangler Library (GLEW) is a cross-platform C/C++
Expand Down Expand Up @@ -74,6 +78,11 @@ chmod 0755 $RPM_BUILD_ROOT%{_libdir}/*.so*
%doc doc/*

%changelog
* Tue Oct 29 2024 Durga Jagadeesh Palli <[email protected]> - 2.2.0-1
- Update to 2.2.0.
- change http URL to https
- License verified

* Thu Jun 17 2021 Thomas Crain <[email protected]> - 2.1.0-7
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
- Remove redhat-specific config.guess seeding
Expand Down
4 changes: 2 additions & 2 deletions cgmanifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4340,8 +4340,8 @@
"type": "other",
"other": {
"name": "glew",
"version": "2.1.0",
"downloadUrl": "https://sourceforge.net/projects/glew/files/glew/2.1.0/glew-2.1.0.tgz"
"version": "2.2.0",
"downloadUrl": "https://sourceforge.net/projects/glew/files/glew/2.2.0/glew-2.2.0.tgz"
}
}
},
Expand Down

0 comments on commit d83cde4

Please sign in to comment.