Accepting request 1160039 from multimedia:libs
OBS-URL: https://build.opensuse.org/request/show/1160039 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/glew?expand=0&rev=47
This commit is contained in:
commit
2365ca5723
17
glew-2.2.0-mesa-24.patch
Normal file
17
glew-2.2.0-mesa-24.patch
Normal 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
|
12
glew.changes
12
glew.changes
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user