From c5fa080ccc4d4f5006ab6b9cdecbe5fd364095cda2ddaaee0c4e41928ab0808b Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Thu, 5 Aug 2021 06:45:17 +0000 Subject: [PATCH] Accepting request 909622 from home:badshah400:boo1188519 Build with EGL support now that wxWidgets does so (since version 3.1.5), otherwise wxWidgets 3.1.x widgets that make use of glew crash (see for example, boo#1188519); add BuildRequires: pkgconfig(egl) as well as the same Requires for devel package. OBS-URL: https://build.opensuse.org/request/show/909622 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/glew?expand=0&rev=58 --- glew.changes | 8 ++++++++ glew.spec | 8 +++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/glew.changes b/glew.changes index 76ad272..1174697 100644 --- a/glew.changes +++ b/glew.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Sat Jul 31 21:16:00 UTC 2021 - Atri Bhattacharya + +- Build with EGL support now that wxWidgets does so (since version + 3.1.5), otherwise wxWidgets 3.1.x widgets that make use of glew + crash (see for example, boo#1188519); add BuildRequires: + pkgconfig(egl) as well as the same Requires for devel package. + ------------------------------------------------------------------- Mon Apr 27 17:15:03 UTC 2020 - Luigi Baldoni diff --git a/glew.spec b/glew.spec index 809b7b3..0c1942c 100644 --- a/glew.spec +++ b/glew.spec @@ -1,7 +1,7 @@ # # spec file for package glew # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -30,6 +30,7 @@ Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tgz Source1: baselibs.conf Source2: %{name}.rpmlintrc BuildRequires: pkgconfig +BuildRequires: pkgconfig(egl) BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xext) @@ -58,6 +59,7 @@ functionality is exposed in a single header file. Summary: Development files for glew Group: Development/Libraries/C and C++ Requires: libGLEW%{so_ver} = %{version} +Requires: pkgconfig(egl) Requires: pkgconfig(x11) Requires: pkgconfig(xproto) # Don't require GLU, because there is GLEW_NO_GLU option @@ -74,10 +76,10 @@ functionality is exposed in a single header file. %autosetup %build -%make_build POPT="%{optflags} -fPIE -pie" GLEW_DEST=%{_prefix} LIBDIR=%{_libdir} LDFLAGS.EXTRA= STRIP= +%make_build POPT="%{optflags} -fPIE -pie" GLEW_DEST=%{_prefix} LIBDIR=%{_libdir} SYSTEM=linux-egl LDFLAGS.EXTRA= STRIP= %install -make DESTDIR=%{buildroot} GLEW_DEST=%{_prefix} LIBDIR=%{_libdir} PKGDIR=%{_libdir}/pkgconfig install.all +make DESTDIR=%{buildroot} GLEW_DEST=%{_prefix} SYSTEM=linux-egl LIBDIR=%{_libdir} PKGDIR=%{_libdir}/pkgconfig install.all chmod +x %{buildroot}%{_libdir}/*.so.* rm %{buildroot}%{_libdir}/*.a