1
1
%bcond_with jack
2
- Summary: Cross-platform multimedia library
3
2
Name: SDL2
4
- Version: 2.24.0
5
- Release: 2 %{?dist }
6
- License : zlib AND MIT
3
+ Version: 2.30.9
4
+ Release: 1 %{?dist }
5
+ Summary : Cross-platform multimedia library
7
6
Vendor: Microsoft Corporation
8
7
Distribution: Azure Linux
8
+ License: Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT )
9
9
URL: https://www.libsdl.org/
10
10
Source0: https://www.libsdl.org/release/%{name }-%{version }.tar.gz
11
11
Source1: SDL_config.h
12
12
Source2: SDL_revision.h
13
+
13
14
Patch0: multilib.patch
14
- # ptrdiff_t is not the same as khronos defines on 32bit arches
15
- Patch1: SDL2-2.0.9-khrplatform.patch
16
15
# Prefer Wayland by default
17
- Patch2: SDL2-2.0.22-prefer-wayland.patch
16
+ Patch1: SDL2-2.30.1-prefer-wayland.patch
17
+
18
18
BuildRequires: git-core
19
19
BuildRequires: cmake
20
20
BuildRequires: make
@@ -30,7 +30,8 @@ BuildRequires: libX11-devel
30
30
BuildRequires: libXi-devel
31
31
BuildRequires: libXrandr-devel
32
32
BuildRequires: libXrender-devel
33
- BuildRequires: libXScrnSaver-devel
33
+ # While SDL2 supports this, Xwayland does not expose XScrnSaver.
34
+ # BuildRequires: libXScrnSaver-devel
34
35
BuildRequires: libXinerama-devel
35
36
BuildRequires: libXcursor-devel
36
37
BuildRequires: systemd-devel
@@ -67,9 +68,9 @@ to provide fast access to the graphics frame buffer and audio device.
67
68
%package devel
68
69
Summary: Files needed to develop Simple DirectMedia Layer applications
69
70
Requires: %{name }%{?_isa } = %{version }-%{release }
70
- Requires: libX11 -devel%{?_isa }
71
71
Requires: mesa-libEGL-devel%{?_isa }
72
72
Requires: mesa-libGLES-devel%{?_isa }
73
+ Requires: libX11 -devel%{?_isa }
73
74
# Conflict with versions before libSDLmain moved here
74
75
Conflicts: %{name }-static < 2.0.18-4
75
76
@@ -90,14 +91,16 @@ Conflicts: %{name}-devel < 2.0.18-4
90
91
Static libraries for SDL2.
91
92
92
93
%prep
93
- %autosetup -p1 -n %{name }-%{version }
94
+ %autosetup -S git
95
+ #autopatch 0
94
96
sed -i -e ' s/\r//g' TODO.txt README.md WhatsNew.txt BUGS.txt LICENSE.txt CREDITS.txt README-SDL.txt
95
97
96
98
%build
97
99
# Deal with new CMake policy around whitespace in LDFLAGS...
98
100
export LDFLAGS=" %{shrink:%{build_ldflags}}"
99
101
100
- mkdir -p buildDir
102
+ mkdir -p build
103
+ cd build
101
104
102
105
%cmake \
103
106
-DSDL_DLOPEN= ON \
@@ -109,7 +112,7 @@ mkdir -p buildDir
109
112
%if %{with jack }
110
113
-DSDL_JACK_SHARED= ON \
111
114
%else
112
- -DSDL_JACK = OFF \
115
+ -DSDL_JACK_SHARED = ON \
113
116
%endif
114
117
-DSDL_PIPEWIRE_SHARED= ON \
115
118
-DSDL_ALSA= ON \
@@ -118,12 +121,15 @@ mkdir -p buildDir
118
121
-DSDL_SSE3= OFF \
119
122
-DSDL_RPATH= OFF \
120
123
-DSDL_STATIC= ON \
121
- -DSDL_STATIC_PIC= ON -B ./buildDir
124
+ -DSDL_STATIC_PIC= ON \
125
+ ..
122
126
123
- cmake --build buildDir %{? _smp_mflags } --verbose
127
+ % cmake_build
124
128
125
129
%install
126
- DESTDIR=%{buildroot } cmake --install buildDir
130
+ cd build
131
+ %cmake_install
132
+ cd ..
127
133
128
134
# Rename SDL_config.h to SDL_config-<arch>.h to avoid file conflicts on
129
135
# multilib systems and install SDL_config.h wrapper
@@ -151,6 +157,7 @@ install -p -m 644 %{SOURCE2} %{buildroot}%{_includedir}/SDL2/SDL_revision.h
151
157
%{_libdir }/cmake/SDL2/SDL2Config* .cmake
152
158
%{_libdir }/cmake/SDL2/SDL2Targets* .cmake
153
159
%{_libdir }/cmake/SDL2/SDL2mainTargets* .cmake
160
+ %{_libdir }/cmake/SDL2/sdlfind.cmake
154
161
%{_includedir }/SDL2
155
162
%{_datadir }/aclocal/*
156
163
%{_libdir }/libSDL2_test.a
@@ -162,7 +169,11 @@ install -p -m 644 %{SOURCE2} %{buildroot}%{_includedir}/SDL2/SDL_revision.h
162
169
%{_libdir }/cmake/SDL2/SDL2staticTargets* .cmake
163
170
164
171
%changelog
165
- *
Fri Nov 25 2022 Sumedh Sharma <[email protected] > -
2.24.0-2
172
+ *
Tue Mar 11 2025 Jyoti kanase <[email protected] > -
2.30.9-1
173
+ - Upgrade to 2.30.9
174
+ - License Verified.
175
+
176
+ *
Fri Nov 25 2022 Sumedh Sharma <[email protected] > -
2.24.0-2
166
177
- Initial CBL-Mariner import from Fedora 37 (license: MIT)
167
178
- Build with feature disabled: jack
168
179
- License verified
0 commit comments