%bcond_without opengl # OpenGL (GLX) support
%bcond_without gles # OpenGL ES (EGL) support
%bcond_with kms # KMS/DRM graphics support
+%bcond_without pipewire # Pipewire audio support
%bcond_without vulkan # Vulkan graphics support
%bcond_without wayland # Wayland graphics support
%bcond_without fcitx # Fcitx IM support
Summary(pl.UTF-8): SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
Summary(zh_CN.UTF-8): SDL (Simple DirectMedia Layer) Generic APIs - 游戏/多媒体库
Name: SDL2
-Version: 2.24.1
+Version: 2.28.3
Release: 1
License: Zlib (BSD-like)
Group: Libraries
Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
-# Source0-md5: 10bad2a286f155565edc611f41345de1
+# Source0-md5: a9cd672b63386d1f57074a4896045d54
Patch0: %{name}-config.patch
URL: http://www.libsdl.org/
%{?with_kms:BuildRequires: Mesa-libgbm-devel >= 11.1.0}
BuildRequires: libtool >= 2:2.0
%{?with_nas:BuildRequires: nas-devel}
BuildRequires: perl-modules
-BuildRequires: pipewire-devel >= 0.3.20
+%{?with_pipewire:BuildRequires: pipewire-devel >= 0.3.20}
BuildRequires: pkgconfig >= 1:0.7
BuildRequires: pulseaudio-devel >= 0.9
+BuildRequires: rpm-build >= 4.6
BuildRequires: udev-devel
# wayland-client, wayland-cursor
%{?with_wayland:BuildRequires: wayland-devel >= 1.18}
License: Public Domain
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
+BuildArch: noarch
%description examples
SDL - example programs.
%{!?with_jack:--disable-jack} \
%{!?with_mmx:--disable-mmx} \
%{!?with_nas:--disable-nas} \
+ %{!?with_pipewire:--disable-pipewire} \
--enable-pthreads \
--enable-pthread-sem \
--disable-rpath \