SHA256
1
0
forked from pool/SDL3

Update to 3.1.3

Co-authored-by: Michael Pujos <bobbie424242@noreply.src.opensuse.org>
Co-committed-by: Michael Pujos <bobbie424242@noreply.src.opensuse.org>
This commit is contained in:
Michael Pujos 2024-10-06 00:16:49 +02:00 committed by Jan Engelhardt
parent 7ff1c7ddfc
commit 5edf788e64
5 changed files with 30 additions and 8 deletions

View File

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

BIN
SDL3-3.1.3.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Sat Oct 5 21:04:22 UTC 2024 - Michael Pujos <pujos.michael@gmail.com>
- Update to preview release 3.1.3
-------------------------------------------------------------------
Mon Aug 19 21:05:37 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Add gcc14.patch
-------------------------------------------------------------------
Wed May 1 19:06:37 UTC 2024 - Jan Engelhardt <jengelh@inai.de>

View File

@ -19,7 +19,7 @@
%define sle_version 0
Name: SDL3
%define lname libSDL3-0
Version: 3.1.2
Version: 3.1.3
Release: 0
Summary: Simple DirectMedia Layer Library
License: Zlib
@ -28,8 +28,9 @@ URL: https://libsdl.org/
#Git-Clone: https://github.com/libsdl-org/SDL
#Source: https://libsdl.org/release/%name-%version.tar.gz
#Source2: https://libsdl.org/release/%name-%version.tar.gz.sig
Source: https://github.com/libsdl-org/SDL/releases/download/prerelease-%version/%name-%version.tar.xz
Source: https://github.com/libsdl-org/SDL/releases/download/preview-%version/%name-%version.tar.xz
Source3: %name.keyring
Patch1: gcc14.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libdecor-devel
@ -128,7 +129,7 @@ SDL3 C API.
-DSDL_X11_SHARED:BOOL=OFF -DSDL_WAYLAND_SHARED:BOOL=OFF \
-DSDL_KMSDRM_SHARED:BOOL=OFF \
-DSDL_STATIC:BOOL=OFF -DSDL_STATIC_PIC:BOOL=ON -DSDL_RPATH:BOOL=OFF \
-DSDL_TEST_LIBRARY:BOOL=OFF
-DSDL_TEST_LIBRARY:BOOL=OFF -DSDL_DISABLE_INSTALL_DOCS:BOOL=OFF
%cmake_build
@ -148,7 +149,7 @@ rm -Rf "%buildroot/%_datadir/licenses" # we use %%license
%_libdir/pkgconfig/sdl3.pc
%_libdir/cmake/SDL3/
%changelog
%files devel-doc
%_mandir/man3/*.3*
%changelog

11
gcc14.patch Normal file
View File

@ -0,0 +1,11 @@
--- SDL3-3.1.3.orig/src/camera/pipewire/SDL_camera_pipewire.c 2024-10-05 20:41:45.901850659 +0200
+++ SDL3-3.1.3/src/camera/pipewire/SDL_camera_pipewire.c 2024-10-05 20:46:44.515609068 +0200
@@ -79,7 +79,7 @@
static void (*PIPEWIRE_pw_context_destroy)(struct pw_context *);
static struct pw_core *(*PIPEWIRE_pw_context_connect)(struct pw_context *, struct pw_properties *, size_t);
static void (*PIPEWIRE_pw_proxy_add_object_listener)(struct pw_proxy *, struct spa_hook *, const void *, void *);
-static void (*PIPEWIRE_pw_proxy_add_listener)(struct pw_proxy *, struct spa_hook *, const void *, void *);
+static void (*PIPEWIRE_pw_proxy_add_listener)(struct pw_proxy *, struct spa_hook *, const struct pw_proxy_events *, void *);
static void *(*PIPEWIRE_pw_proxy_get_user_data)(struct pw_proxy *);
static void (*PIPEWIRE_pw_proxy_destroy)(struct pw_proxy *);
static int (*PIPEWIRE_pw_core_disconnect)(struct pw_core *);