diff --git a/SDL2-2.30.1-prefer-wayland.patch b/SDL2-2.30.1-prefer-wayland.patch new file mode 100644 index 0000000000000000000000000000000000000000..6408643bb27c154dae2e45ca808159887f6834d7 --- /dev/null +++ b/SDL2-2.30.1-prefer-wayland.patch @@ -0,0 +1,19 @@ +diff -up ./src/video/SDL_video.c.prefer-wayland ./src/video/SDL_video.c +--- ./src/video/SDL_video.c.prefer-wayland 2024-03-25 11:11:50.474311044 +1000 ++++ ./src/video/SDL_video.c 2024-03-25 11:40:04.785892199 +1000 +@@ -69,12 +69,12 @@ static VideoBootStrap *bootstrap[] = { + #ifdef SDL_VIDEO_DRIVER_COCOA + &COCOA_bootstrap, + #endif +-#ifdef SDL_VIDEO_DRIVER_X11 +- &X11_bootstrap, +-#endif + #ifdef SDL_VIDEO_DRIVER_WAYLAND + &Wayland_bootstrap, + #endif ++#ifdef SDL_VIDEO_DRIVER_X11 ++ &X11_bootstrap, ++#endif + #ifdef SDL_VIDEO_DRIVER_VIVANTE + &VIVANTE_bootstrap, + #endif diff --git a/SDL2-2.30.0.tar.gz b/SDL2-2.30.11.tar.gz similarity index 49% rename from SDL2-2.30.0.tar.gz rename to SDL2-2.30.11.tar.gz index 13dbae677a829b15923aaf8ef8c2b568314b0bed..eeb15821e93438a7d7328963a2f88c20cfd98b73 100644 Binary files a/SDL2-2.30.0.tar.gz and b/SDL2-2.30.11.tar.gz differ diff --git a/SDL2.spec b/SDL2.spec index d54ef78e69f55a09b3d6695379d950c118783e8f..3cfdc4951becf55ba04cb97a3d33f8ea1e664527 100644 --- a/SDL2.spec +++ b/SDL2.spec @@ -1,12 +1,14 @@ Name: SDL2 -Version: 2.30.0 -Release: 2 +Version: 2.30.11 +Release: 1 Summary: Cross-platform multimedia library License: zlib and MIT URL: http://www.libsdl.org/ Source0: https://github.com/libsdl-org/SDL/releases/download/release-%{version}/%{name}-%{version}.tar.gz Source1: SDL_config.h Patch0000: multilib.patch +# Prefer Wayland by default +Patch0001: SDL2-2.30.1-prefer-wayland.patch BuildRequires: alsa-lib-devel audiofile-devel mesa-libGL-devel BuildRequires: mesa-libGLU-devel mesa-libEGL-devel libglvnd-devel @@ -23,6 +25,7 @@ BuildRequires: pkgconfig(wayland-client) pkgconfig(wayland-egl) BuildRequires: pkgconfig(wayland-cursor) pkgconfig(wayland-protocols) BuildRequires: pkgconfig(wayland-scanner) pkgconfig(xkbcommon) BuildRequires: vulkan-devel mesa-libgbm-devel libdrm-devel +BuildRequires: cmake-rpm-macros %description Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed @@ -92,7 +95,10 @@ rm -vf %{buildroot}%{_libdir}/*.la %{_libdir}/lib*.a %changelog -* Fri Mar 8 Wenlong Zhang - 2.30.0-2 +* Fri Jan 17 2025 wangkai <13474090681@163.com> - 2.30.11-1 +- Upgrade version to 2.30.11 + +* Fri Mar 08 2024 Wenlong Zhang - 2.30.0-2 - disable lsx for lasx loongarch64 * Wed Feb 28 2024 xu_ping <707078654@qq.com> - 2.30.0-1