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 Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library
14 Summary(pl): SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
15 Summary(zh_CN): SDL (Simple DirectMedia Layer) Generic APIs - ÓÎÏ·/¶àýÌå¿â
21 Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
22 # Source0-md5: 37aaf9f069f9c2c18856022f35de9f8c
23 Patch0: %{name}-byteorder.patch
24 Patch1: %{name}-amfix.patch
25 Patch2: %{name}-lpthread.patch
26 Patch3: %{name}-no_rpath_in_sdl-config.patch
27 Patch4: %{name}-mmx-constraints.patch
28 Patch5: %{name}-caca.patch
29 Patch6: %{name}-gcc4.patch
30 Patch7: %{name}-gcc-pr21398-workaround.patch
31 URL: http://www.libsdl.org/
32 %{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.15}
33 BuildRequires: OpenGL-devel
34 %{?with_aalib:BuildRequires: aalib-devel}
35 %{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0}
36 %{?with_arts:BuildRequires: artsc-devel >= 1.1}
37 BuildRequires: autoconf
38 BuildRequires: automake
39 %{?with_esd:BuildRequires: esound-devel >= 0.2.8}
40 %{?with_caca:BuildRequires: libcaca-devel}
41 %{?with_ggi:BuildRequires: libggi-devel}
42 BuildRequires: libtool >= 2:1.4d
43 %{?with_nas:BuildRequires: nas-devel}
47 BuildRequires: perl-modules
48 %{?with_directfb:BuildRequires: pkgconfig >= 1:0.7}
49 %{?with_svgalib:BuildRequires: svgalib-devel >= 1.4.0}
50 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53 SDL (Simple DirectMedia Layer) is a library that allows you portable,
54 low level access to a video framebuffer, audio output, mouse, and
55 keyboard. It can support both windowed and DGA modes of XFree86, and
56 it is designed to be portable - applications linked with SDL can also
57 be built on Win32 and BeOS.
60 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
61 przeno¶ny, niskopoziomowy dostêp do bufora ramki video, wyj¶cia audio,
62 myszy oraz klawiatury. Mo¿e obs³ugiwaæ zarówno okienkowy tryb XFree86
63 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
64 konsolidowane z SDL mo¿na równie¿ budowaæ w systemach Win32 i BeOS.
67 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
68 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
70 Essa biblioteca é usada por alguns jogos.
73 Summary: SDL - Header files
74 Summary(pl): SDL - Pliki nag³ówkowe
75 Summary(pt_BR): Bibliotecas e arquivos de cabeçalho para aplicações SDL
76 Summary(ru): æÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ SDL
77 Summary(uk): æÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL
78 Summary(zh_CN): SDL (Simple DirectMedia Layer) ¿ª·¢¿â
79 Group: X11/Development/Libraries
80 Requires: %{name} = %{version}-%{release}
82 Requires: libX11-devel
83 Requires: libXext-devel
85 Requires: XFree86-devel >= 4.0.2
87 %{?with_alsa:Requires: alsa-lib-devel}
88 %{?with_caca:Requires: libcaca-devel}
89 %{?with_nas:Requires: nas-devel}
94 %description devel -l pl
95 SDL - Pliki nag³ówkowe.
97 %description devel -l pt_BR
98 Esse pacote contém bibliotecas, arquivos de cabeçalho e outros
99 recursos para o desenvolvimento de aplicativos com SDL.
101 %description devel -l ru
102 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
105 %description devel -l uk
106 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÆÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
110 Summary: SDL - static libraries
111 Summary(pl): SDL - biblioteki statyczne
112 Summary(pt_BR): Biblioteca estática para desenvolvimento de aplicações com a SDL
113 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ SDL
114 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ SDL
115 Group: X11/Development/Libraries
116 Requires: %{name}-devel = %{version}-%{release}
119 SDL - static libraries.
121 %description static -l pl
122 SDL - biblioteki statyczne.
124 %description static -l pt_BR
125 Biblioteca estática para desenvolvimento de aplicações com a SDL.
127 %description static -l ru
128 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
131 %description static -l uk
132 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÓÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
136 Summary: SDL - example programs
137 Summary(pl): SDL - programy przyk³adowe
138 Group: X11/Development/Libraries
139 Requires: %{name}-devel = %{version}-%{release}
141 %description examples
142 SDL - example programs.
144 %description examples -l pl
145 SDL - przyk³adowe programy.
158 # get COPY_ARCH_SRC, remove the rest
159 head -n 20 acinclude.m4 > acinclude.tmp
160 mv -f acinclude.tmp acinclude.m4
162 find . -type d -name CVS -print | xargs rm -rf {} \;
169 CPPFLAGS="-DALSA_PCM_OLD_HW_PARAMS_API"
177 --enable-pthread-sem \
180 %{?with_aalib:--enable-video-aalib} \
181 %{?with_caca:--enable-video-caca} \
183 %{?with_directfb:--enable-video-directfb} \
184 --enable-video-fbcon \
185 %{?with_ggi:--enable-video-ggi} \
186 --enable-video-opengl \
187 %{?with_svga:--enable-video-svga} \
188 --enable-video-x11-dgamouse \
189 --enable-video-x11-vm \
190 --enable-video-x11-xv \
191 %{!?with_alsa:--disable-alsa} \
192 %{!?with_arts:--disable-arts} \
193 %{!?with_esd:--disable-esd} \
194 %{!?with_nas:--disable-nas}
196 # automake chooses to use CXXLINK because of seen unused C++ sources
197 # (which are for BeOS and MacOS+QTopia, not Linux)
202 rm -rf $RPM_BUILD_ROOT
203 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
206 DESTDIR=$RPM_BUILD_ROOT \
207 m4datadir=%{_aclocaldir}
209 install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
211 rm -rf docs/man3 docs/{Makefile*,.cvsignore} docs/html/{Makefile*,.cvsignore}
214 rm -rf $RPM_BUILD_ROOT
216 %post -p /sbin/ldconfig
217 %postun -p /sbin/ldconfig
220 %defattr(644,root,root,755)
221 %doc BUGS CREDITS README TODO WhatsNew
222 %attr(755,root,root) %{_libdir}/lib*.so.*.*
225 %defattr(644,root,root,755)
227 %attr(755,root,root) %{_bindir}/sdl-config
228 %attr(755,root,root) %{_libdir}/lib*.so
230 %{_libdir}/libSDLmain.a
236 %defattr(644,root,root,755)
237 %{_examplesdir}/%{name}-%{version}
240 %defattr(644,root,root,755)