From f90b3df937d43a5e3c71c8ed1eed214a0761b6cd17fbc022efa730d05c4e3e30 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 22 Nov 2022 01:58:25 +0000 Subject: [PATCH] - Update to release 2.26 OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=141 --- SDL2-2.24.2.tar.gz | 3 --- SDL2-2.24.2.tar.gz.sig | Bin 95 -> 0 bytes SDL2-2.26.0.tar.gz | 3 +++ SDL2-2.26.0.tar.gz.sig | Bin 0 -> 95 bytes SDL2.changes | 24 ++++++++++++++++++++++++ SDL2.spec | 16 +++++++--------- sdl2-khronos.patch | 19 ------------------- sdl2-symvers.patch | 31 ++++++++++++++++++++++--------- 8 files changed, 56 insertions(+), 40 deletions(-) delete mode 100644 SDL2-2.24.2.tar.gz delete mode 100644 SDL2-2.24.2.tar.gz.sig create mode 100644 SDL2-2.26.0.tar.gz create mode 100644 SDL2-2.26.0.tar.gz.sig delete mode 100644 sdl2-khronos.patch diff --git a/SDL2-2.24.2.tar.gz b/SDL2-2.24.2.tar.gz deleted file mode 100644 index 6995ca3..0000000 --- a/SDL2-2.24.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b35ef0a802b09d90ed3add0dcac0e95820804202914f5bb7b0feb710f1a1329f -size 7525041 diff --git a/SDL2-2.24.2.tar.gz.sig b/SDL2-2.24.2.tar.gz.sig deleted file mode 100644 index 7d0243edeea62e13dc1a7f986d1b34e4149b45e4ede50c0781788a6407c22fcd..0000000000000000000000000000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 95 zcmeB(WnmCxVvrS6WD(U!j%^5DT3>$gL7TzS$>qz-te>$mB`1m-GjMSVz(iI?G0d}k v-CoHX|ETrTv1ef_yCvnLJZrrf<_gXGu>70bEt&eK{%V`wm9YQuIe8WUV^t?$ diff --git a/SDL2-2.26.0.tar.gz b/SDL2-2.26.0.tar.gz new file mode 100644 index 0000000..49dbeca --- /dev/null +++ b/SDL2-2.26.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8000d7169febce93c84b6bdf376631f8179132fd69f7015d4dadb8b9c2bdb295 +size 8085459 diff --git a/SDL2-2.26.0.tar.gz.sig b/SDL2-2.26.0.tar.gz.sig new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..aacbe4e1e1e4031cbef6e483496f91bc6b5321e8e0b5851b4f13f02739947a2d GIT binary patch literal 95 zcmeB(WnmCxVvrS6WD(U!j%^5DT3>$gL7TzS$>qz-te>$mCD({uVBq2ufQek6#xOs* vbG}^Gqr4nV{-Yh+^gcwZPW@}ouwe10|5m5E6=%OaSXR<}XxWn|6)6`1sirC% literal 0 HcmV?d00001 diff --git a/SDL2.changes b/SDL2.changes index 07205da..bb2c477 100644 --- a/SDL2.changes +++ b/SDL2.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Tue Nov 22 01:03:38 UTC 2022 - Jan Engelhardt + +- 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 diff --git a/SDL2.spec b/SDL2.spec index 49ea1bc..150352a 100644 --- a/SDL2.spec +++ b/SDL2.spec @@ -19,24 +19,22 @@ %define sle_version 0 Name: SDL2 %define lname libSDL2-2_0-0 -Version: 2.24.2 +Version: 2.26.0 Release: 0 Summary: Simple DirectMedia Layer Library License: Zlib Group: Development/Libraries/X11 -URL: http://libsdl.org/ +URL: https://libsdl.org/ #Git-Clone: https://github.com/libsdl-org/SDL -#DL-URL: http://libsdl.org/download-2.0.php -Source: http://libsdl.org/release/%name-%version.tar.gz -Source2: http://libsdl.org/release/%name-%version.tar.gz.sig +Source: https://libsdl.org/release/%name-%version.tar.gz +Source2: https://libsdl.org/release/%name-%version.tar.gz.sig Source3: %name.keyring Source4: baselibs.conf Patch1: sdl2-symvers.patch -Patch2: sdl2-khronos.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkg-config -BuildRequires: pkgconfig(alsa) >= 0.9.0 +BuildRequires: pkgconfig(alsa) >= 1.0.11 BuildRequires: pkgconfig(dbus-1) %if !0%{?sle_version} BuildRequires: pkgconfig(fcitx) @@ -50,8 +48,8 @@ BuildRequires: pkgconfig(glu) BuildRequires: pkgconfig(ibus-1.0) BuildRequires: pkgconfig(ice) # KMS/DRM driver needs libdrm and libgbm -BuildRequires: pkgconfig(gbm) >= 9.0.0 -BuildRequires: pkgconfig(libdrm) >= 2.4.46 +BuildRequires: pkgconfig(gbm) >= 11.1.0 +BuildRequires: pkgconfig(libdrm) >= 2.4.82 BuildRequires: pkgconfig(libpulse-simple) >= 0.9 BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(tslib) diff --git a/sdl2-khronos.patch b/sdl2-khronos.patch deleted file mode 100644 index c484bc9..0000000 --- a/sdl2-khronos.patch +++ /dev/null @@ -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 -+typedef khronos_ssize_t GLsizeiptr; -+typedef khronos_intptr_t GLintptr; - #endif - #define GL_BUFFER_SIZE 0x8764 - #define GL_BUFFER_USAGE 0x8765 diff --git a/sdl2-symvers.patch b/sdl2-symvers.patch index 7189dc6..fa5080c 100644 --- a/sdl2-symvers.patch +++ b/sdl2-symvers.patch @@ -16,14 +16,14 @@ need to keep all the individual symvers elements even for games/SDL2. --- Makefile.in | 2 - sdl2.sym | 278 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - 2 files changed, 279 insertions(+), 1 deletion(-) + sdl2.sym | 319 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 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.0.22/Makefile.in -@@ -134,7 +134,7 @@ LT_AGE = @LT_AGE@ +--- SDL2-2.26.0.orig/Makefile.in ++++ SDL2-2.26.0/Makefile.in +@@ -136,7 +136,7 @@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_RELEASE = @LT_RELEASE@ 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) -Index: SDL2-2.0.22/sdl2.sym +Index: SDL2-2.26.0/sdl2.sym =================================================================== --- /dev/null -+++ SDL2-2.0.22/sdl2.sym -@@ -0,0 +1,306 @@ ++++ SDL2-2.26.0/sdl2.sym +@@ -0,0 +1,319 @@ +SUSE_2.0.5 { +global: + SDL_DequeueAudio; @@ -343,3 +343,16 @@ Index: SDL2-2.0.22/sdl2.sym + SDL_GetPointDisplayIndex; + SDL_GetRectDisplayIndex; +} 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;