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
This commit is contained in:
Takashi Iwai 2021-08-05 06:45:17 +00:00 committed by Git OBS Bridge
parent bd9b223af0
commit c5fa080ccc
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sat Jul 31 21:16:00 UTC 2021 - Atri Bhattacharya <badshah400@gmail.com>
- 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 <aloisio@gmx.com> Mon Apr 27 17:15:03 UTC 2020 - Luigi Baldoni <aloisio@gmx.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package glew # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 Source1: baselibs.conf
Source2: %{name}.rpmlintrc Source2: %{name}.rpmlintrc
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(xext)
@ -58,6 +59,7 @@ functionality is exposed in a single header file.
Summary: Development files for glew Summary: Development files for glew
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libGLEW%{so_ver} = %{version} Requires: libGLEW%{so_ver} = %{version}
Requires: pkgconfig(egl)
Requires: pkgconfig(x11) Requires: pkgconfig(x11)
Requires: pkgconfig(xproto) Requires: pkgconfig(xproto)
# Don't require GLU, because there is GLEW_NO_GLU option # Don't require GLU, because there is GLEW_NO_GLU option
@ -74,10 +76,10 @@ functionality is exposed in a single header file.
%autosetup %autosetup
%build %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 %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.* chmod +x %{buildroot}%{_libdir}/*.so.*
rm %{buildroot}%{_libdir}/*.a rm %{buildroot}%{_libdir}/*.a