From 8f76af5a11c93cda91487df3d9895629446a413dd5fb230dd4732adc45d3e00d Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Fri, 7 Feb 2025 09:09:40 +0000 Subject: [PATCH] [info=f6312c616b57d5f652c30f7fa993dc7018c789331222823f5783b9f39d425d69] OBS-URL: https://build.opensuse.org/package/show/games/SDL3?expand=0&rev=20 --- .gitattributes | 23 +++++++ .gitignore | 1 + SDL3-3.1.2.tar.xz | 3 + SDL3-3.1.8.tar.gz | 3 + SDL3-3.2.2.tar.gz | 3 + SDL3-3.2.2.tar.gz.sig | Bin 0 -> 95 bytes SDL3-3.2.4.tar.gz | 3 + SDL3-3.2.4.tar.gz.sig | Bin 0 -> 95 bytes SDL3.changes | 132 ++++++++++++++++++++++++++++++++++++ SDL3.keyring | 28 ++++++++ SDL3.spec | 153 ++++++++++++++++++++++++++++++++++++++++++ _scmsync.obsinfo | 4 ++ baselibs.conf | 1 + 13 files changed, 354 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 SDL3-3.1.2.tar.xz create mode 100644 SDL3-3.1.8.tar.gz create mode 100644 SDL3-3.2.2.tar.gz create mode 100644 SDL3-3.2.2.tar.gz.sig create mode 100644 SDL3-3.2.4.tar.gz create mode 100644 SDL3-3.2.4.tar.gz.sig create mode 100644 SDL3.changes create mode 100644 SDL3.keyring create mode 100644 SDL3.spec create mode 100644 _scmsync.obsinfo create mode 100644 baselibs.conf diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/SDL3-3.1.2.tar.xz b/SDL3-3.1.2.tar.xz new file mode 100644 index 0000000..177d29f --- /dev/null +++ b/SDL3-3.1.2.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99a9e84b4d5afd68d423d364fdd03592efa7658208cddf3f846dbeb707569ecc +size 4751864 diff --git a/SDL3-3.1.8.tar.gz b/SDL3-3.1.8.tar.gz new file mode 100644 index 0000000..205239e --- /dev/null +++ b/SDL3-3.1.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e4c3da19a2629f34a768c5d5de40703ab69fea448bc2a621e7c59223c0e98d68 +size 15759739 diff --git a/SDL3-3.2.2.tar.gz b/SDL3-3.2.2.tar.gz new file mode 100644 index 0000000..321572a --- /dev/null +++ b/SDL3-3.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d3dcf1b2f64746be0f248ef27b35aec4f038dafadfb83491f98a7fecdaf6efec +size 15765044 diff --git a/SDL3-3.2.2.tar.gz.sig b/SDL3-3.2.2.tar.gz.sig new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..ca044d44133dbf40f5f272fa1924fb9196a0549dfafe7d168672b6dced70044c GIT binary patch literal 95 zcmeB(WnmCxVvrS6WD(U!j%^5DT3>$gL7TzS$>qz-te>$mrO!Kgl!1#=04CBug<-yr v<6bulwv#Vh{rfCKuF81b-tzno!~Be?QGEu7pPUIeHA}sWX|kQ1f#d=JsX!*Z literal 0 HcmV?d00001 diff --git a/SDL3-3.2.4.tar.gz b/SDL3-3.2.4.tar.gz new file mode 100644 index 0000000..8469d59 --- /dev/null +++ b/SDL3-3.2.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2938328317301dfbe30176d79c251733aa5e7ec5c436c800b99ed4da7adcb0f0 +size 15766155 diff --git a/SDL3-3.2.4.tar.gz.sig b/SDL3-3.2.4.tar.gz.sig new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..1fa36cdf764a70ae9023cb6c68dd45775b8224bbdaabb63aa4a139c523839f10 GIT binary patch literal 95 zcmeB(WnmCxVvrS6WD(U!j%^5DT3>$gL7TzS$>qz-te>$mr7sOlW8mTxfQcNP%CKPS vp>oHa`r^#VvjP+2c)0GYi + +- Update to release 3.2.4 + * Fixed decoding 4-bit RLE encoded BMP files + * Fixed setting the position of X11 windows before they are shown + * Fixed D-Pad not working when using SDL2 controller mappings + * Fixed SDL_OpenHapticFromJoystick() not returning a valid + haptic handle + * Added SDL_StretchSurface() as a replacement for SDL2 + SDL_SoftStretch() and SDL_SoftStretchLinear() + * Fixed several memory leaks + +------------------------------------------------------------------- +Sun Feb 2 12:05:46 UTC 2025 - Jan Engelhardt + +- Update to release 3.2.2 + * Fixed mouse motion while the mouse is grabbed on Linux + * Fixed audio gain not applying in some cases + * Fixed a potential crash when applying audio gain + * Removed audio resampling frequency limit + * Fixed a crash on Windows if a tray is created without any menus + * Allow the window manager to position windows that do not + specify a position on Linux + +------------------------------------------------------------------- +Thu Jan 23 10:11:20 UTC 2025 - Jan Engelhardt + +- Cherry pick change 6cf087f53a05 from SDL2.spec: + + Thu Aug 29 09:07:45 UTC 2024 - Antonio Larrosa + + Don't build with fcitx support. fcitx support was just added + because of a bug (boo#1025413) that could be fixed by building + with fcitx support but upstream SDL2 developers fixed it + in 2.0.5 when building without fcitx support too. Also fcitx + support has always been disabled in SLE/Leap and in Factory + it's built against fcitx 4.2.9.9, not the newer fcitx5 so + let's disable it in order to reduce dependencies. + +------------------------------------------------------------------- +Wed Jan 22 10:29:54 UTC 2025 - Jan Engelhardt + +- Update to release 3.2.0 + * audio: added ``SDL_AudioDeviceStreamPaused`` function + * x11/wl: added support for Mod3 and more esoteric Xkb + configurations + * keyboard: added some SDL keycodes for common Xkb keys + * Use XIM for IME input on X11 + * Added support for displaying XIM composition strings + * Added SDL_ClickTrayEntry() + * audio: Allow streams to change the device-side channels maps + * Fix incorrect hotspot calculation for cursor positioning + * Added support for the 8BitDo Ultimate 2C Wireless in + Bluetooth mode + * Added Linux evdev mappings for the Wireless HORIPAD For Steam + * tray: renamed function ``SDL_HasNoActiveTrays`` to + ``SDL_HasActiveTrays`` + * vulkan: Fixes for swapchain resize crash on X11 + * render: SDL_HINT_RENDER_DRIVER now accepts a comma-separated + list + +------------------------------------------------------------------- +Wed Jan 8 20:52:55 UTC 2025 - Jan Engelhardt + +- Update to release 3.1.8 + * This update adds asynchronous I/O, main thread dispatching, a + desktop tray API, debug text rendering and other features. + +------------------------------------------------------------------- +Sun Dec 15 22:03:59 UTC 2024 - Jan Engelhardt + +- Add baselibs.conf + +------------------------------------------------------------------- +Sat Nov 2 11:30:26 UTC 2024 - Jan Engelhardt + +- Update to preview release 3.1.6 + * New functions ``SDL_CalculateGPUTextureFormatSize``, + ``SDL_CancelGPUCommandBuffer``, ``SDL_DelayPrecise``, + ``SDL_GetSandbox``, ``SDL_RenderDebugText``, + ``SDL_StepBackUTF8`` +- Delete gcc14.patch (merged) + +------------------------------------------------------------------- +Sat Oct 5 21:04:22 UTC 2024 - Michael Pujos + +- Update to preview release 3.1.3 + * New GPU API for modern 3D rendering and GPU compute in a + cross-platform manner + * Various new cross-platform APIs around dialogs / filesystems / + storage / camera / pen access, new example programs, audio + streams, color-space support + * More HiDPI support + * Better keyboard input handling + * Prefer PipeWire over PulseAudio + +------------------------------------------------------------------- +Mon Aug 19 21:05:37 UTC 2024 - Jan Engelhardt + +- Add gcc14.patch + +------------------------------------------------------------------- +Wed May 1 19:06:37 UTC 2024 - Jan Engelhardt + +- Update to preview release 3.1.2 + * Added SDL_GlobDirectory() and SDL_GlobStorageDirectory() + * Reduced startup time when scanning for game controllers on + Linux + * Removed SDL_RENDERER_ACCELERATED, SDL_RENDERER_SOFTWARE, + SDL_HINT_RENDER_SCALE_QUALITY, SDL_quit.h + * Renamed SDL_eventaction to SDL_EventAction + +------------------------------------------------------------------- +Thu Apr 11 16:15:42 UTC 2024 - Jan Engelhardt + +- Update to preview release 3.1.1 + * Fixed a crash when rendering lots of content using the Vulkan + renderer + * Fixed text input being delivered when SDL_StartTextInput() + has not been called + * Fixed a performance regression initializing controllers on Linux + * Separated the joystick power state into battery status and + percentage + * Added an optional user parameter to main callback entry points + * Case insensitive string comparison functions are no longer + affected by locale + +------------------------------------------------------------------- +Fri Dec 2 21:18:51 UTC 2022 - Jan Engelhardt + +- Initial package (3.0~git251.1a890808a) for build.opensuse.org diff --git a/SDL3.keyring b/SDL3.keyring new file mode 100644 index 0000000..1ece2d6 --- /dev/null +++ b/SDL3.keyring @@ -0,0 +1,28 @@ +pub 1024D/A7763BE6 2001-01-05 +uid Sam Lantinga +sub 1024g/06F8768C 2001-01-05 + +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v2.0.19 (GNU/Linux) + +mQGiBDpWOb0RBADQwd3d9mzt6KzqlsgXf9mikBuMbpKzYs1SBKYpdzUs9sRY0CnH +vCQTrL5sI57yKLnqEl6SbIiE75ZwrSWwvUDFFTh35Jew5nPZwv64en2kw2y4qrnJ +kBZCHDSU4KgfUZtoJ25Tm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HWdka01zY= +=62+H +-----END PGP PUBLIC KEY BLOCK----- diff --git a/SDL3.spec b/SDL3.spec new file mode 100644 index 0000000..0b4416a --- /dev/null +++ b/SDL3.spec @@ -0,0 +1,153 @@ +# +# spec file for package SDL3 +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define sle_version 0 +Name: SDL3 +%define lname libSDL3-0 +Version: 3.2.4 +Release: 0 +Summary: Simple DirectMedia Layer Library +License: Zlib +Group: Development/Libraries/X11 +URL: https://libsdl.org/ +#Git-Clone: https://github.com/libsdl-org/SDL +Source: https://github.com/libsdl-org/SDL/releases/download/release-%version/SDL3-%version.tar.gz +Source2: https://github.com/libsdl-org/SDL/releases/download/release-%version/SDL3-%version.tar.gz.sig +Source3: %name.keyring +Source4: baselibs.conf +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: libdecor-devel +BuildRequires: pkg-config +BuildRequires: pkgconfig(alsa) >= 1.0.11 +BuildRequires: pkgconfig(dbus-1) +BuildRequires: pkgconfig(egl) +BuildRequires: pkgconfig(gl) +BuildRequires: pkgconfig(glesv2) +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(glu) +BuildRequires: pkgconfig(ibus-1.0) +BuildRequires: pkgconfig(ice) +# KMS/DRM driver needs libdrm and libgbm +BuildRequires: pkgconfig(gbm) >= 11.1.0 +BuildRequires: pkgconfig(libdrm) >= 2.4.82 +BuildRequires: pkgconfig(libpipewire-0.3) >= 0.3.20 +BuildRequires: pkgconfig(libpulse-simple) >= 0.9 +BuildRequires: pkgconfig(libudev) +BuildRequires: pkgconfig(samplerate) +BuildRequires: pkgconfig(udev) +BuildRequires: pkgconfig(wayland-client) >= 1.18 +BuildRequires: pkgconfig(wayland-cursor) +BuildRequires: pkgconfig(wayland-egl) +BuildRequires: pkgconfig(wayland-protocols) +BuildRequires: pkgconfig(wayland-scanner) +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xcursor) +BuildRequires: pkgconfig(xext) +BuildRequires: pkgconfig(xi) +BuildRequires: pkgconfig(xinerama) +BuildRequires: pkgconfig(xkbcommon) +BuildRequires: pkgconfig(xrandr) +BuildRequires: pkgconfig(xscrnsaver) +BuildRequires: pkgconfig(xxf86vm) + +%description +Simple DirectMedia Layer (SDL) is a cross-platform library for +multi-media software, such as games and emulators. It provides a +generic API for access to audio, keyboard, mouse, and display +framebuffer. + +%package -n %lname +Summary: Simple DirectMedia Layer Library +Group: System/Libraries + +%description -n %lname +Simple DirectMedia Layer (SDL) is a cross-platform library for +multi-media software, such as games and emulators. It provides a +generic API for access to audio, keyboard, mouse, and display +framebuffer. + +SDL uses dlopen, so if you experience problems under X11, check +again that libXrandr2 and libXi6 are in fact installed. + +%package devel +Summary: SDL3 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) + +%description devel +This package contains files needed for development with the SDL +library. + +%package devel-doc +Summary: Manual pages for the SDL3 API +Group: Documentation/Man +BuildArch: noarch + +%description devel-doc +This package contains manual pages (in troff format) for the +SDL3 C API. + +%prep +%autosetup -p1 + +%build +%global _lto_cflags %_lto_cflags -ffat-lto-objects +# SDL_*_SHARED=false -> link to libs rather than dlopen. +%cmake \ +%ifarch %ix86 + -DSDL_MMX:BOOL=OFF -DSDL_SSE:BOOL=OFF -DSDL_SSE2:BOOL=OFF \ +%endif + -DSDL_SSE3:BOOL=OFF -DSDL_3DNOW:BOOL=OFF \ + -DSDL_ALSA_SHARED:BOOL=OFF -DSDL_LIBSAMPLERATE_SHARED:BOOL=OFF \ + -DSDL_PIPEWIRE_SHARED:BOOL=OFF -DSDL_PULSEAUDIO_SHARED:BOOL=OFF \ + -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_INSTALL_DOCS:BOOL=ON + +%cmake_build + +%install +%cmake_install +rm -Rf "%buildroot/%_datadir/licenses" # we use %%license + +%ldconfig_scriptlets -n %lname + +%files -n %lname +%license LICENSE.txt +%_libdir/libSDL3.so.0* + +%files devel +%_libdir/libSDL3.so +%_includedir/SDL3/ +%_libdir/pkgconfig/sdl3.pc +%_libdir/cmake/SDL3/ + +%files devel-doc +%_mandir/man3/*.3* + +%changelog diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo new file mode 100644 index 0000000..df45c4d --- /dev/null +++ b/_scmsync.obsinfo @@ -0,0 +1,4 @@ +mtime: 1738919362 +commit: f6312c616b57d5f652c30f7fa993dc7018c789331222823f5783b9f39d425d69 +url: https://src.opensuse.org/jengelh/SDL3 +revision: master diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..cb779a2 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +libSDL3-0