Accepting request 1159858 from home:sndirsch:branches:multimedia:libs

- Add patch glew-2.2.0-mesa-24.patch
  * Do not undefine APIENTRY macro if GLAPIENTRY is still defined 
    (boo#1221744)

- Install missing header file (from david.lanzendoerfer@o2s.ch)

OBS-URL: https://build.opensuse.org/request/show/1159858
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/glew?expand=0&rev=60
This commit is contained in:
Otto Hollmann 2024-03-21 08:58:56 +00:00 committed by Git OBS Bridge
parent be01e24bcd
commit 6857d3a9a2
3 changed files with 33 additions and 2 deletions

17
glew-2.2.0-mesa-24.patch Normal file
View File

@ -0,0 +1,17 @@
---
glew-2.2.0/include/GL/glew.h | 2 ++
1 file changed, 2 insertions(+)
--- glew-2.2.0/include/GL/glew.h
+++ glew-2.2.0/include/GL/glew.h 2024-03-20 12:42:28.712954164 +0000
@@ -26408,8 +26408,10 @@ GLEWAPI const GLubyte * GLEWAPIENTRY gle
#ifdef GLEW_APIENTRY_DEFINED
#undef GLEW_APIENTRY_DEFINED
+#ifndef GLAPIENTRY
#undef APIENTRY
#endif
+#endif
#ifdef GLEW_CALLBACK_DEFINED
#undef GLEW_CALLBACK_DEFINED

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Wed Mar 20 12:43:24 UTC 2024 - Dr. Werner Fink <werner@suse.de>
- Add patch glew-2.2.0-mesa-24.patch
* Do not undefine APIENTRY macro if GLAPIENTRY is still defined
(boo#1221744)
-------------------------------------------------------------------
Wed Mar 20 12:38:25 UTC 2024 - Dr. Werner Fink <werner@suse.de>
- Install missing header file (from david.lanzendoerfer@o2s.ch)
-------------------------------------------------------------------
Sat Aug 21 16:26:33 UTC 2021 - Atri Bhattacharya <badshah400@gmail.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package glew
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -29,6 +29,7 @@ URL: https://github.com/nigels-com/glew
Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tgz
Source1: baselibs.conf
Source2: %{name}.rpmlintrc
Patch0: glew-2.2.0-mesa-24.patch
BuildRequires: pkgconfig
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(gl)
@ -73,13 +74,14 @@ supported on the target platform. OpenGL core and extension
functionality is exposed in a single header file.
%prep
%autosetup
%autosetup -p1
%build
%make_build POPT="%{optflags} -fPIE -pie" GLEW_DEST=%{_prefix} LIBDIR=%{_libdir} LDFLAGS.EXTRA= STRIP=
%install
make DESTDIR=%{buildroot} GLEW_DEST=%{_prefix} LIBDIR=%{_libdir} PKGDIR=%{_libdir}/pkgconfig install.all
install -m 0644 include/GL/eglew.h "%{buildroot}/%{_includedir}/GL/"
chmod +x %{buildroot}%{_libdir}/*.so.*
rm %{buildroot}%{_libdir}/*.a