3 %bcond_with aalib # with aalib graphics support
4 %bcond_with caca # with caca graphics support
5 %bcond_with directfb # with DirectFB graphics support
6 %bcond_with ggi # with GGI graphics support
7 %bcond_with nas # with NAS audio support
8 %bcond_with svga # with svgalib graphics support
9 %bcond_without alsa # without ALSA audio support
10 %bcond_without arts # without aRts audio support
11 %bcond_without esd # without EsounD audio support
13 # NOTE: the following libraries are dlopened by soname detected at build time:
16 # libpulse-simple.so.0
21 Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library
22 Summary(pl.UTF-8): SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
23 Summary(zh_CN.UTF-8): SDL (Simple DirectMedia Layer) Generic APIs - 游戏/多媒体库
29 Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
30 # Source0-md5: 544b4554986e51eed6d34435cf9c5f3f
31 Patch0: %{name}-mmx-constraints.patch
32 Patch1: %{name}-acfix.patch
33 Patch2: %{name}-caca.patch
34 URL: http://www.libsdl.org/
35 %{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.15}
36 BuildRequires: OpenGL-GLU-devel
37 %{?with_aalib:BuildRequires: aalib-devel}
38 %{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0}
39 %{?with_arts:BuildRequires: artsc-devel >= 1.1}
40 BuildRequires: autoconf >= 2.59-9
41 BuildRequires: automake
42 %{?with_esd:BuildRequires: esound-devel >= 0.2.8}
43 BuildRequires: gcc >= 5:4.0
44 %{?with_caca:BuildRequires: libcaca-devel}
45 %{?with_ggi:BuildRequires: libggi-devel}
46 BuildRequires: libtool >= 2:1.4d
47 %{?with_nas:BuildRequires: nas-devel}
51 BuildRequires: perl-modules
52 %{?with_directfb:BuildRequires: pkgconfig >= 1:0.7}
53 BuildRequires: pulseaudio-devel >= 0.9
54 %{?with_svga:BuildRequires: svgalib-devel >= 1.4.0}
55 BuildRequires: xorg-lib-libX11-devel
56 BuildRequires: xorg-lib-libXext-devel
57 BuildRequires: xorg-lib-libXrandr-devel
58 BuildRequires: xorg-lib-libXrender-devel
59 BuildRequires: xorg-proto-xextproto-devel
60 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
63 SDL (Simple DirectMedia Layer) is a library that allows you portable,
64 low level access to a video framebuffer, audio output, mouse, and
65 keyboard. It can support both windowed and DGA modes of XFree86, and
66 it is designed to be portable - applications linked with SDL can also
67 be built on Win32 and BeOS.
69 %description -l pl.UTF-8
70 SDL (Simple DirectMedia Layer) jest biblioteką udostępniającą
71 przenośny, niskopoziomowy dostęp do bufora ramki video, wyjścia audio,
72 myszy oraz klawiatury. Może obsługiwać zarówno okienkowy tryb XFree86
73 jak i DGA. Konstruując ją miano na uwadze przenośność: aplikacje
74 konsolidowane z SDL można również budować w systemach Win32 i BeOS.
76 %description -l pt_BR.UTF-8
77 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
78 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
80 Essa biblioteca é usada por alguns jogos.
82 %description -l ru.UTF-8
83 SDL (Simple DirectMedia Layer) это набор функций, предоставляющий
84 низкоуровневый доступ к звуку, клавиатуре, манипулятору мышь и к
85 буферу экрана на множестве различных платформ.
88 Summary: SDL - Header files
89 Summary(pl.UTF-8): SDL - Pliki nagłówkowe
90 Summary(pt_BR.UTF-8): Bibliotecas e arquivos de cabeçalho para aplicações SDL
91 Summary(ru.UTF-8): Файлы, необходимые для разработки программ, использующих SDL
92 Summary(uk.UTF-8): Файли, необхідні для розробки програм, що використовують SDL
93 Summary(zh_CN.UTF-8): SDL (Simple DirectMedia Layer) 开发库
94 Group: Development/Libraries
95 Requires: %{name} = %{version}-%{release}
96 %{?with_directfb:Requires: DirectFB-devel >= 0.9.15}
97 %{?with_aa:Requires: aalib-devel}
98 %{?with_caca:Requires: libcaca-devel}
99 %{?with_ggi:Requires: libggi-devel}
100 %{?with_nas:Requires: nas-devel}
101 %{?with_svga:Requires: svgalib-devel >= 1.4.0}
106 %description devel -l pl.UTF-8
107 SDL - Pliki nagłówkowe.
109 %description devel -l pt_BR.UTF-8
110 Esse pacote contém bibliotecas, arquivos de cabeçalho e outros
111 recursos para o desenvolvimento de aplicativos com SDL.
113 %description devel -l ru.UTF-8
114 Этот пакет содержит файлы, необходимые для разработки программ,
117 %description devel -l uk.UTF-8
118 Цей пакет містить файли, необхідні для розробки програм, що
122 Summary: SDL - static libraries
123 Summary(pl.UTF-8): SDL - biblioteki statyczne
124 Summary(pt_BR.UTF-8): Biblioteca estática para desenvolvimento de aplicações com a SDL
125 Summary(ru.UTF-8): Статические библиотеки для разработки с использованием SDL
126 Summary(uk.UTF-8): Статичні бібліотеки для розробки з використанням SDL
127 Group: Development/Libraries
128 Requires: %{name}-devel = %{version}-%{release}
131 SDL - static libraries.
133 %description static -l pl.UTF-8
134 SDL - biblioteki statyczne.
136 %description static -l pt_BR.UTF-8
137 Biblioteca estática para desenvolvimento de aplicações com a SDL.
139 %description static -l ru.UTF-8
140 Этот пакет содержит статические библиотеки для разработки программ,
143 %description static -l uk.UTF-8
144 Цей пакет містить статичні бібліотеки для розробки програм, що
148 Summary: SDL - example programs
149 Summary(pl.UTF-8): SDL - programy przykładowe
150 License: Public Domain
151 Group: Development/Libraries
152 Requires: %{name}-devel = %{version}-%{release}
154 %description examples
155 SDL - example programs.
157 %description examples -l pl.UTF-8
158 SDL - przykładowe programy.
164 #%patch2 -p1 # needs rewrite
166 %{!?with_alsa:echo 'AC_DEFUN([AM_PATH_ALSA],[$3])' >> acinclude.m4}
167 %{!?with_esd:echo 'AC_DEFUN([AM_PATH_ESD],[$3])' >> acinclude.m4}
180 %{!?with_alsa:--disable-alsa} \
181 %{!?with_arts:--disable-arts} \
183 %{!?with_esd:--disable-esd} \
184 %{!?with_nas:--disable-nas} \
186 --enable-pthread-sem \
187 %{?with_aalib:--enable-video-aalib} \
188 %{?with_caca:--enable-video-caca} \
189 %{!?with_directfb:--disable-video-directfb} \
191 --enable-video-fbcon \
192 %{?with_ggi:--enable-video-ggi} \
193 --enable-video-opengl \
194 %{!?with_svga:--disable-video-svga} \
195 --enable-video-x11-dgamouse \
196 --enable-video-x11-vm \
197 --enable-video-x11-xinerama \
198 --enable-video-x11-xme \
199 --enable-video-x11-xrandr \
200 --enable-video-x11-xv \
206 rm -rf $RPM_BUILD_ROOT
207 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
210 DESTDIR=$RPM_BUILD_ROOT \
211 m4datadir=%{_aclocaldir}
213 rm -rf test/autom4te.cache
214 install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
219 rm -rf $RPM_BUILD_ROOT
221 %post -p /sbin/ldconfig
222 %postun -p /sbin/ldconfig
225 %defattr(644,root,root,755)
226 %doc BUGS CREDITS README README-SDL.txt TODO WhatsNew
227 %attr(755,root,root) %{_libdir}/libSDL-*.so.*.*
230 %defattr(644,root,root,755)
232 %attr(755,root,root) %{_bindir}/sdl-config
233 %attr(755,root,root) %{_libdir}/libSDL.so
235 %{_libdir}/libSDLmain.a
237 %{_aclocaldir}/sdl.m4
238 %{_pkgconfigdir}/sdl.pc
242 %defattr(644,root,root,755)
246 %defattr(644,root,root,755)
247 %{_examplesdir}/%{name}-%{version}