SHA256
1
0
forked from jengelh/SDL2

Accepting request 1037201 from games

- Update to release 2.26

OBS-URL: https://build.opensuse.org/request/show/1037201
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/SDL2?expand=0&rev=46
This commit is contained in:
Dominique Leuenberger 2022-11-23 08:47:32 +00:00 committed by Git OBS Bridge
commit f89d9593e4
8 changed files with 56 additions and 40 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b35ef0a802b09d90ed3add0dcac0e95820804202914f5bb7b0feb710f1a1329f
size 7525041

Binary file not shown.

3
SDL2-2.26.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8000d7169febce93c84b6bdf376631f8179132fd69f7015d4dadb8b9c2bdb295
size 8085459

BIN
SDL2-2.26.0.tar.gz.sig Normal file

Binary file not shown.

View File

@ -1,3 +1,27 @@
-------------------------------------------------------------------
Tue Nov 22 01:03:38 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Update to release 2.26
* Added SDL_GetWindowSizeInPixels() to get the window size in
pixels, which may differ from the window coordinate size for
windows with high-DPI support.
* Added simulated vsync synchronization for the software
renderer.
* Added the mouse position to SDL_MouseWheelEvent.
* Added SDL_ResetHints() to reset all hints to their default
values.
* Added SDL_GetJoystickGUIDInfo() to get device information
encoded in a joystick GUID.
* Added XBOX Hints.
* Added support for PS3 and Wii controllers to the HIDAPI
driver (not enabled by default).
* Added access to the individual left and right gyro sensors of
the combined Joy-Cons controller.
* Added a microsecond timestamp to SDL_SensorEvent and
SDL_ControllerSensorEvent, when the hardware provides that
information.
- Delete sdl2-khronos.patch (merged)
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 1 14:27:40 UTC 2022 - Jan Engelhardt <jengelh@inai.de> Tue Nov 1 14:27:40 UTC 2022 - Jan Engelhardt <jengelh@inai.de>

View File

@ -19,24 +19,22 @@
%define sle_version 0 %define sle_version 0
Name: SDL2 Name: SDL2
%define lname libSDL2-2_0-0 %define lname libSDL2-2_0-0
Version: 2.24.2 Version: 2.26.0
Release: 0 Release: 0
Summary: Simple DirectMedia Layer Library Summary: Simple DirectMedia Layer Library
License: Zlib License: Zlib
Group: Development/Libraries/X11 Group: Development/Libraries/X11
URL: http://libsdl.org/ URL: https://libsdl.org/
#Git-Clone: https://github.com/libsdl-org/SDL #Git-Clone: https://github.com/libsdl-org/SDL
#DL-URL: http://libsdl.org/download-2.0.php Source: https://libsdl.org/release/%name-%version.tar.gz
Source: http://libsdl.org/release/%name-%version.tar.gz Source2: https://libsdl.org/release/%name-%version.tar.gz.sig
Source2: http://libsdl.org/release/%name-%version.tar.gz.sig
Source3: %name.keyring Source3: %name.keyring
Source4: baselibs.conf Source4: baselibs.conf
Patch1: sdl2-symvers.patch Patch1: sdl2-symvers.patch
Patch2: sdl2-khronos.patch
BuildRequires: cmake BuildRequires: cmake
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: pkg-config BuildRequires: pkg-config
BuildRequires: pkgconfig(alsa) >= 0.9.0 BuildRequires: pkgconfig(alsa) >= 1.0.11
BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(dbus-1)
%if !0%{?sle_version} %if !0%{?sle_version}
BuildRequires: pkgconfig(fcitx) BuildRequires: pkgconfig(fcitx)
@ -50,8 +48,8 @@ BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(ibus-1.0) BuildRequires: pkgconfig(ibus-1.0)
BuildRequires: pkgconfig(ice) BuildRequires: pkgconfig(ice)
# KMS/DRM driver needs libdrm and libgbm # KMS/DRM driver needs libdrm and libgbm
BuildRequires: pkgconfig(gbm) >= 9.0.0 BuildRequires: pkgconfig(gbm) >= 11.1.0
BuildRequires: pkgconfig(libdrm) >= 2.4.46 BuildRequires: pkgconfig(libdrm) >= 2.4.82
BuildRequires: pkgconfig(libpulse-simple) >= 0.9 BuildRequires: pkgconfig(libpulse-simple) >= 0.9
BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(tslib) BuildRequires: pkgconfig(tslib)

View File

@ -1,19 +0,0 @@
From: sndirsch@suse.com
Date: 2019-10-09 14:00:03+0000
References: https://bugzilla.opensuse.org/show_bug.cgi?id=1153455
diff -u -r SDL2-2.0.10.orig/include/SDL_opengl_glext.h SDL2-2.0.10/include/SDL_opengl_glext.h
--- SDL2-2.0.10.orig/include/SDL_opengl_glext.h 2019-10-09 15:30:46.237981000 +0200
+++ SDL2-2.0.10/include/SDL_opengl_glext.h 2019-10-09 15:31:37.783940000 +0200
@@ -469,8 +469,9 @@
typedef long GLsizeiptr;
typedef long GLintptr;
#else
-typedef ptrdiff_t GLsizeiptr;
-typedef ptrdiff_t GLintptr;
+#include <KHR/khrplatform.h>
+typedef khronos_ssize_t GLsizeiptr;
+typedef khronos_intptr_t GLintptr;
#endif
#define GL_BUFFER_SIZE 0x8764
#define GL_BUFFER_USAGE 0x8765

View File

@ -16,14 +16,14 @@ need to keep all the individual symvers elements even for games/SDL2.
--- ---
Makefile.in | 2 Makefile.in | 2
sdl2.sym | 278 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sdl2.sym | 319 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 279 insertions(+), 1 deletion(-) 2 files changed, 320 insertions(+), 1 deletion(-)
Index: SDL2-2.0.22/Makefile.in Index: SDL2-2.26.0/Makefile.in
=================================================================== ===================================================================
--- SDL2-2.0.22.orig/Makefile.in --- SDL2-2.26.0.orig/Makefile.in
+++ SDL2-2.0.22/Makefile.in +++ SDL2-2.26.0/Makefile.in
@@ -134,7 +134,7 @@ LT_AGE = @LT_AGE@ @@ -136,7 +136,7 @@ LT_AGE = @LT_AGE@
LT_CURRENT = @LT_CURRENT@ LT_CURRENT = @LT_CURRENT@
LT_RELEASE = @LT_RELEASE@ LT_RELEASE = @LT_RELEASE@
LT_REVISION = @LT_REVISION@ LT_REVISION = @LT_REVISION@
@ -32,11 +32,11 @@ Index: SDL2-2.0.22/Makefile.in
all: $(srcdir)/configure Makefile $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET) $(objects)/$(SDLTEST_TARGET) all: $(srcdir)/configure Makefile $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET) $(objects)/$(SDLTEST_TARGET)
Index: SDL2-2.0.22/sdl2.sym Index: SDL2-2.26.0/sdl2.sym
=================================================================== ===================================================================
--- /dev/null --- /dev/null
+++ SDL2-2.0.22/sdl2.sym +++ SDL2-2.26.0/sdl2.sym
@@ -0,0 +1,306 @@ @@ -0,0 +1,319 @@
+SUSE_2.0.5 { +SUSE_2.0.5 {
+global: +global:
+ SDL_DequeueAudio; + SDL_DequeueAudio;
@ -343,3 +343,16 @@ Index: SDL2-2.0.22/sdl2.sym
+ SDL_GetPointDisplayIndex; + SDL_GetPointDisplayIndex;
+ SDL_GetRectDisplayIndex; + SDL_GetRectDisplayIndex;
+} SUSE_2.0.22; +} SUSE_2.0.22;
+SUSE_2.26.0 {
+ SDL_SetPrimarySelectionText;
+ SDL_GetPrimarySelectionText;
+ SDL_HasPrimarySelectionText;
+ SDL_GameControllerGetSensorDataWithTimestamp;
+ SDL_ResetHints;
+ SDL_GetJoystickGUIDInfo;
+ SDL_SensorGetData;
+ SDL_SensorGetDataWithTimestamp;
+ SDL_SensorClose;
+ SDL_strcasestr;
+ SDL_GetWindowSizeInPixels;
+} SUSE_2.24.0;