SHA256
1
0
forked from pool/SDL2

24 Commits

Author SHA256 Message Date
4f7f76b1f5 Sync changes to SLFO-1.2 branch 2025-08-20 08:57:14 +02:00
7b5f76b3a5 Accepting request 1245149 from games
- Add patch from upstream to fix building with pipewire-1.3.82.
  * 0001-pipewire-Ensure-that-the-correct-struct-is-used-for.patch

OBS-URL: https://build.opensuse.org/request/show/1245149
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/SDL2?expand=0&rev=75
2025-02-12 20:30:57 +00:00
OBS User unknown
c151c7f442 [info=23c0f4611466b257de34f40caa0cf00d77b78e5d61b06097e954881153de21ac]
OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=198
2025-02-11 18:15:20 +00:00
dab78d2ddd Accepting request 1244399 from games
- Update to release 2.32.0

OBS-URL: https://build.opensuse.org/request/show/1244399
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/SDL2?expand=0&rev=74
2025-02-10 16:22:41 +00:00
OBS User unknown
4a7b77ce07 [info=7ce81cc65fe0f49d4d8af92b8d1b7ece39a35641d85f16bd9fbcaa72b4bf9900]
OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=197
2025-02-08 20:04:17 +00:00
52ec16249b Accepting request 1242218 from games
- Update to release 2.30.12

OBS-URL: https://build.opensuse.org/request/show/1242218
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/SDL2?expand=0&rev=73
2025-02-04 17:09:33 +00:00
OBS User unknown
900518a88b [info=8df920576a77b141d9499ec2065f9907028bf9411287ad8215275911cdac1a04]
OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=196
2025-02-02 12:20:09 +00:00
7d82e76f16 Accepting request 1234536 from games
- Update to release 2.30.11

OBS-URL: https://build.opensuse.org/request/show/1234536
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/SDL2?expand=0&rev=72
2025-01-06 15:04:50 +00:00
OBS User unknown
1985a0cb95 [info=0402002616bf030075bbf84d8124f7683ce9e0f10eb798b34945f8bfdf1b5465]
OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=195
2025-01-02 09:58:26 +00:00
a738a6bd7d Accepting request 1230038 from games
- Update to release 2.30.10

OBS-URL: https://build.opensuse.org/request/show/1230038
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/SDL2?expand=0&rev=71
2024-12-13 21:31:01 +00:00
OBS User unknown
2351e3b987 [info=32be8f98b48028d7d838c57ff8aae4d59794e16d240016d9cfe5a6112f14c81a]
OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=194
2024-12-09 12:48:17 +00:00
d9096f51c5 Accepting request 1220191 from games
- Update to release 2.30.9

OBS-URL: https://build.opensuse.org/request/show/1220191
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/SDL2?expand=0&rev=70
2024-11-03 06:17:10 +00:00
OBS User unknown
ff01e122b7 [info=9557b9a4358e2fc6712d313a581e3a1c3d3bc11df613f2f4391d4ae5b5872bfd]
OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=193
2024-11-02 11:47:56 +00:00
9605d49920 Accepting request 1205021 from games
- Update to release 2.30.8

OBS-URL: https://build.opensuse.org/request/show/1205021
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/SDL2?expand=0&rev=69
2024-10-02 19:31:57 +00:00
OBS User unknown
c078891be6 [info=6c64f8591f79b6b4fdd9ce73ad2f4530d6aca63a11757e3086c9d1890e8d6bb9]
OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=192
2024-10-01 23:29:10 +00:00
d3e9da2c48 Accepting request 1198600 from games
- Update to release 2.30.7

OBS-URL: https://build.opensuse.org/request/show/1198600
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/SDL2?expand=0&rev=68
2024-09-05 13:46:11 +00:00
OBS User unknown
4e203e98db [info=24c6ba383f86ecade811a7da4514216bb2b3a2e1eabffcede45fa4e683a8de5d]
OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=191
2024-09-03 23:57:57 +00:00
970a14c8de Accepting request 1197426 from games
- Don't build with fcitx support

OBS-URL: https://build.opensuse.org/request/show/1197426
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/SDL2?expand=0&rev=67
2024-08-30 11:29:18 +00:00
OBS User unknown
5e0dc6e3cc [info=6cf087f53a0538c2096fc56bb068ba3f818a2f9027fcda1b82ff7a1b4a5137d9]
OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=190
2024-08-29 09:29:38 +00:00
865ed0dbee Accepting request 1194251 from games
- Update to release 2.30.6

OBS-URL: https://build.opensuse.org/request/show/1194251
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/SDL2?expand=0&rev=66
2024-08-17 10:40:48 +00:00
OBS User unknown
783168c3e6 [info=c2e6b65d02c849f35c5f1966e48a2013c66d2fdcd6add96f0c3cad0b554b8c9c]
OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=189
2024-08-16 09:02:01 +00:00
9bee9c0209 [info=e6f4d93d59c74c04ff7ff7226e89fffa485bc260838bffb7a89112f783b32f36]
OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=188
2024-07-10 08:33:18 +00:00
9241d3816c Accepting request 1181406 from games
- Update to release 2.30.4

OBS-URL: https://build.opensuse.org/request/show/1181406
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/SDL2?expand=0&rev=65
2024-06-18 20:50:41 +00:00
47d815b7ca - Update to release 2.30.4
OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=186
2024-06-18 07:33:06 +00:00
8 changed files with 61 additions and 160 deletions

BIN
SDL2-2.30.7.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

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

Binary file not shown.

BIN
SDL2-2.32.10.tar.gz (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

View File

@@ -1,120 +1,3 @@
-------------------------------------------------------------------
Mon Sep 1 22:07:50 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 2.32.10
* Report the correct device audio format when using Pipewire.
* Support the "ambient" value for SDL_HINT_AUDIO_CATEGORY on
iOS.
* Improved thumbstick range for Nintendo Switch Pro Controllers.
* Fixed loading user calibration for Nintendo Switch Pro
Controllers.
- Add alsa-sig.patch to cure a build failure
-------------------------------------------------------------------
Thu Jun 5 19:28:29 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Reduce the SDL2 package to produce just the binary, for rare
cases when sdl2_compat is unable to do something. Place the
library in /usr/lib64/SDL2 so it can be selectively chosen via
LD_LIBRARY_PATH and does not interfere with sdl2_compat.
-------------------------------------------------------------------
Tue Jun 3 08:01:33 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 2.32.8
* Fixed a rare crash in SDL_WaitEvent()
* Fixed swapped red/blue channels when updating a YUV texture
on OpenGL ES 2.0
-------------------------------------------------------------------
Mon Mar 31 20:18:00 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 2.32.4
* Fixed detecting PlayStation controller sensors on Linux when
HIDAPI is not being used
* Fixed crash enumerating some input devices
- Delete 0001-pipewire-Ensure-that-the-correct-struct-is-used-for.patch
(merged)
-------------------------------------------------------------------
Wed Mar 12 16:16:23 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Remove SDL2-devel requiring pkgconfig(xproto/x11), because X11
is an optional dependency (e.g. in favor of Wayland).
-------------------------------------------------------------------
Sun Mar 2 09:46:27 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 2.32.2
* Fixed flushing audio forever in some cases when recording
PulseAudio on Linux.
* Added SDL_HINT_JOYSTICK_HAPTIC_AXES to specify how many haptic
axes a device has.
-------------------------------------------------------------------
Tue Feb 11 09:14:51 UTC 2025 - Antonio Larrosa <alarrosa@suse.com>
- Add patch from upstream to fix building with pipewire-1.3.82.
* 0001-pipewire-Ensure-that-the-correct-struct-is-used-for.patch
-------------------------------------------------------------------
Sat Feb 8 20:01:16 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 2.32.0
* Allow destroying a window and its renderer in either order
* Added cursor-shape-v1 protocol support on Wayland
* Improved event processing latency when gamepad/sensor is open
* Fixed conditional effect playback on Moza Racing devices
* Fixed input for Thrustmaster PlayStation wheels when
hid-tmff2 is installed
-------------------------------------------------------------------
Sun Feb 2 12:18:26 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 2.30.12
* Added support for the 8BitDo Ultimate 2C Wireless in
Bluetooth mode
* Fixed Steam Deck controller not being visible to games
running on Proton 9 and older
* Fixed a crash when hot-plugging keyboards and mice on Linux
-------------------------------------------------------------------
Thu Jan 2 09:55:58 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 2.30.11
* Fixed a crash if the controller product name is NULL
* Corrected CoreAudio surround sound channel layouts
-------------------------------------------------------------------
Sun Dec 8 23:43:33 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Update to release 2.30.10
* Improved the performance of whole surface fill operations
* Fixed an assertion when connecting/disconnecting over RDP
* Added support for mouse wheel and extended buttons on PS Vita
* Fixed a rare crash on KMSDRM
-------------------------------------------------------------------
Sat Nov 2 11:45:47 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Update to release 2.30.9
* Fixed flicker when entering/exiting fullscreen or moving the
window between scaled and non-scaled displays under Wayland.
-------------------------------------------------------------------
Tue Oct 1 23:24:41 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Update to release 2.30.8
* Fixed a crash in XInput code at startup
* Fixed flooding the OS with I/O when a PS4/PS5 controller is
disconnected
* Added SDL_VIDEO_DOUBLE_BUFFER support to the Wayland backend
* SDL_WINDOWEVENT_EXPOSED is sent appropriately when using
Wayland
* Fixed hang at startup in audio code when the application has
large stack usage on Linux
* Fixed initializing KMSDRM on older Linux systems
-------------------------------------------------------------------
Tue Sep 3 23:59:48 UTC 2024 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package SDL2
#
# Copyright (c) 2025 SUSE LLC and contributors
# 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
@@ -16,8 +16,10 @@
#
%define sle_version 0
Name: SDL2
Version: 2.32.10
%define lname libSDL2-2_0-0
Version: 2.30.7
Release: 0
Summary: Simple DirectMedia Layer Library
License: Zlib
@@ -27,8 +29,8 @@ URL: https://libsdl.org/
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: alsa-sig.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libdecor-devel
@@ -65,20 +67,44 @@ BuildRequires: pkgconfig(xkbcommon)
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(xscrnsaver)
BuildRequires: pkgconfig(xxf86vm)
%define __global_provides_exclude_from %_libdir/SDL2
%description
This is the "Simple DirectMedia Layer" library. It provides a generic
API for access to audio, keyboard, mouse, and display framebuffer
across multiple platforms.
This package is provided for corner cases when sdl2_compat is
insufficient. To use original SDL2, exercise with the
LD_LIBRARY_PATH="%_libdir/SDL2" mechanism.
%package -n %lname
Summary: Simple DirectMedia Layer Library
Group: System/Libraries
Provides: SDL2 = %version-%release
%description -n %lname
This is the "Simple DirectMedia Layer" library. It provides a generic
API for access to audio, keyboard, mouse, and display framebuffer
across multiple platforms.
SDL2 uses dlopen, so if you experience problems under X11, check
again that libXrandr2 and libXi6 are in fact installed.
%package devel
Summary: SDL2 Library Developer Files
Group: Development/Libraries/X11
Requires: %lname = %version-%release
Requires: c_compiler
Requires: pkgconfig
Requires: pkgconfig(gl)
Requires: pkgconfig(glesv1_cm)
Requires: pkgconfig(glesv2)
Requires: pkgconfig(glu)
Requires: pkgconfig(x11)
Requires: pkgconfig(xproto)
Obsoletes: libSDL2-devel < %version-%release
Provides: libSDL2-devel = %version-%release
%description devel
This package contains files needed for development with the SDL2
library.
%prep
%autosetup -p1
perl -i -pe 's{\r\n}{\n}g' *.txt README.md
@@ -97,14 +123,25 @@ perl -i -pe 's{\r\n}{\n}g' *.txt README.md
%install
%make_install
b="%buildroot"
mkdir -pv "$b/%_libdir/SDL2"
mv -v "$b/%_libdir"/libSDL2-2.0.so.* "$b/%_libdir/SDL2/"
rm -Rf "$b/%_bindir" "$b/%_datadir" "$b/%_includedir" "$b/%_libdir/pkgconfig" \
"$b/%_libdir"/lib* "$b/%_libdir/cmake"
rm -f "%buildroot/%_libdir"/*.la
rm -fv "%buildroot/%_libdir/libSDL2.a"
%files
%ldconfig_scriptlets -n %lname
%files -n %lname
%license LICENSE.txt
%_libdir/SDL2/
%doc README.md README-SDL.txt
%_libdir/libSDL2-2*.so.*
%files devel
%doc WhatsNew.txt
%_bindir/sdl2-config
%_libdir/libSDL2.so
%_includedir/SDL2/
%_datadir/aclocal/sdl2.m4
%_libdir/pkgconfig/sdl2.pc
%_libdir/cmake/SDL2/
%_libdir/libSDL2main.a
%_libdir/libSDL2_test.a
%changelog

View File

@@ -1,26 +0,0 @@
From 05c9b16183743925e59a489c4348141c8a050603 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <sezeroz@gmail.com>
Date: Tue, 2 Sep 2025 17:02:28 +0300
Subject: [PATCH] alsa: fix signature of snd_pcm_info_free
Reference issue: https://github.com/libsdl-org/SDL/issues/13845.
---
src/audio/alsa/SDL_alsa_audio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/audio/alsa/SDL_alsa_audio.c b/src/audio/alsa/SDL_alsa_audio.c
index 8f3a49c81..7af711411 100644
--- a/src/audio/alsa/SDL_alsa_audio.c
+++ b/src/audio/alsa/SDL_alsa_audio.c
@@ -88,7 +88,7 @@ static const char *(*ALSA_snd_pcm_info_get_name)(const snd_pcm_info_t *);
static int (*ALSA_snd_pcm_info_get_card)(const snd_pcm_info_t *);
static int (*ALSA_snd_card_get_name)(int, char **);
static int (*ALSA_snd_pcm_info_malloc)(snd_pcm_info_t **);
-static int (*ALSA_snd_pcm_info_free)(snd_pcm_info_t *);
+static void (*ALSA_snd_pcm_info_free)(snd_pcm_info_t *);
#ifdef SND_CHMAP_API_VERSION
static snd_pcm_chmap_t *(*ALSA_snd_pcm_get_chmap)(snd_pcm_t *);
static int (*ALSA_snd_pcm_chmap_print)(const snd_pcm_chmap_t *map, size_t maxlen, char *buf);
--
2.51.0

7
baselibs.conf Normal file
View File

@@ -0,0 +1,7 @@
libSDL2-2_0-0
provides "SDL2-<targettype> = <version>"
SDL2-devel
obsoletes "libSDL2-devel-<targettype>"
provides "libSDL2-devel-<targettype> = <version>"
requires -libSDL2-<targettype>
requires "libSDL2-2_0-0-<targettype> = <version>"