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(es): Simple DirectMedia Layer
16 Summary(pl): SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
17 Summary(pt_BR): Simple DirectMedia Layer
18 Summary(ru): Simple DirectMedia Layer
19 Summary(uk): Simple DirectMedia Layer
20 Summary(zh_CN): SDL (Simple DirectMedia Layer) Generic APIs - ÓÎÏ·/¶àýÌå¿â
26 Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
27 # Source0-md5: d29b34b6ba3ed213893fc9d8d35e357a
28 Patch0: %{name}-byteorder.patch
29 Patch1: %{name}-amfix.patch
30 Patch2: %{name}-lpthread.patch
31 Patch3: %{name}-no_rpath_in_sdl-config.patch
32 Patch4: %{name}-mmx-constraints.patch
33 Patch5: %{name}-caca.patch
34 Patch6: %{name}-gcc34.patch
35 URL: http://www.libsdl.org/
36 %{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.15}
37 BuildRequires: OpenGL-devel
39 BuildRequires: libX11-devel
40 BuildRequires: libXext-devel
41 BuildRequires: libXau-devel
43 BuildRequires: XFree86-devel >= 4.0.2
45 %{?with_aalib:BuildRequires: aalib-devel}
46 %{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0}
47 %{?with_arts:BuildRequires: artsc-devel >= 1.1}
48 BuildRequires: autoconf
49 BuildRequires: automake
50 %{?with_esd:BuildRequires: esound-devel >= 0.2.8}
51 %{?with_caca:BuildRequires: libcaca-devel}
52 %{?with_ggi:BuildRequires: libggi-devel}
53 BuildRequires: libtool >= 2:1.4d
54 %{?with_nas:BuildRequires: nas-devel}
58 BuildRequires: perl-modules
59 %{?with_directfb:BuildRequires: pkgconfig >= 0.7}
60 %{?with_svgalib:BuildRequires: svgalib-devel >= 1.4.0}
61 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64 SDL (Simple DirectMedia Layer) is a library that allows you portable,
65 low level access to a video framebuffer, audio output, mouse, and
66 keyboard. It can support both windowed and DGA modes of XFree86, and
67 it is designed to be portable - applications linked with SDL can also
68 be built on Win32 and BeOS.
71 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
72 przeno¶ny, niskopoziomowy dostêp do bufora ramki video, wyj¶cia audio,
73 myszy oraz klawiatury. Mo¿e obs³ugiwaæ zarówno okienkowy tryb XFree86
74 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
75 konsolidowane z SDL mo¿na równie¿ budowaæ w systemach Win32 i BeOS.
78 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
79 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
81 Essa biblioteca é usada por alguns jogos.
84 Summary: SDL - Header files
85 Summary(pl): SDL - Pliki nag³ówkowe
86 Summary(pt_BR): Bibliotecas e arquivos de cabeçalho para aplicações SDL
87 Summary(ru): æÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ SDL
88 Summary(uk): æÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL
89 Summary(zh_CN): SDL (Simple DirectMedia Layer) ¿ª·¢¿â
90 Group: X11/Development/Libraries
91 Requires: %{name} = %{version}-%{release}
92 #Requires: XFree86-devel >= 4.0.2
93 %{?with_alsa:Requires: alsa-lib-devel}
94 %{?with_caca:Requires: libcaca-devel}
95 %{?with_nas:Requires: nas-devel}
100 %description devel -l pl
101 SDL - Pliki nag³ówkowe.
103 %description devel -l pt_BR
104 Esse pacote contém bibliotecas, arquivos de cabeçalho e outros
105 recursos para o desenvolvimento de aplicativos com SDL.
107 %description devel -l ru
108 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
111 %description devel -l uk
112 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÆÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
116 Summary: SDL - static libraries
117 Summary(pl): SDL - biblioteki statyczne
118 Summary(pt_BR): Biblioteca estática para desenvolvimento de aplicações com a SDL
119 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ SDL
120 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ SDL
121 Group: X11/Development/Libraries
122 Requires: %{name}-devel = %{version}-%{release}
125 SDL - static libraries.
127 %description static -l pl
128 SDL - biblioteki statyczne.
130 %description static -l pt_BR
131 Biblioteca estática para desenvolvimento de aplicações com a SDL.
133 %description static -l ru
134 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
137 %description static -l uk
138 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÓÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
142 Summary: SDL - example programs
143 Summary(pl): SDL - programy przyk³adowe
144 Group: X11/Development/Libraries
145 Requires: %{name}-devel = %{version}-%{release}
147 %description examples
148 SDL - example programs.
150 %description examples -l pl
151 SDL - przyk³adowe programy.
163 # get COPY_ARCH_SRC, remove the rest
164 head -n 20 acinclude.m4 > acinclude.tmp
165 mv -f acinclude.tmp acinclude.m4
167 find . -type d -name CVS -print | xargs rm -rf {} \;
174 CPPFLAGS="-DALSA_PCM_OLD_HW_PARAMS_API"
182 --enable-pthread-sem \
185 %{?with_aalib:--enable-video-aalib} \
186 %{?with_caca:--enable-video-caca} \
188 %{?with_directfb:--enable-video-directfb} \
189 --enable-video-fbcon \
190 %{?with_ggi:--enable-video-ggi} \
191 --enable-video-opengl \
192 %{?with_svga:--enable-video-svga} \
193 --enable-video-x11-dgamouse \
194 --enable-video-x11-vm \
195 --enable-video-x11-xv \
196 %{!?with_alsa:--disable-alsa} \
197 %{!?with_arts:--disable-arts} \
198 %{!?with_esd:--disable-esd} \
199 %{!?with_nas:--disable-nas}
201 # automake chooses to use CXXLINK because of seen unused C++ sources
202 # (which are for BeOS and MacOS+QTopia, not Linux)
207 rm -rf $RPM_BUILD_ROOT
208 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
211 DESTDIR=$RPM_BUILD_ROOT \
212 m4datadir=%{_aclocaldir}
214 install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
216 rm -rf docs/man3 docs/{Makefile*,.cvsignore} docs/html/{Makefile*,.cvsignore}
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 TODO WhatsNew
227 %attr(755,root,root) %{_libdir}/lib*.so.*.*
230 %defattr(644,root,root,755)
232 %attr(755,root,root) %{_bindir}/sdl-config
233 %attr(755,root,root) %{_libdir}/lib*.so
235 %{_libdir}/libSDLmain.a
241 %defattr(644,root,root,755)
242 %{_examplesdir}/%{name}-%{version}
245 %defattr(644,root,root,755)