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