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
42 BuildRequires: XFree86-devel >= 4.0.2
44 %{?with_aalib:BuildRequires: aalib-devel}
45 %{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0}
46 %{?with_arts:BuildRequires: artsc-devel >= 1.1}
47 BuildRequires: autoconf
48 BuildRequires: automake
49 %{?with_esd:BuildRequires: esound-devel >= 0.2.8}
50 %{?with_caca:BuildRequires: libcaca-devel}
51 %{?with_ggi:BuildRequires: libggi-devel}
52 BuildRequires: libtool >= 2:1.4d
53 %{?with_nas:BuildRequires: nas-devel}
57 BuildRequires: perl-modules
58 %{?with_directfb:BuildRequires: pkgconfig >= 0.7}
59 %{?with_svgalib:BuildRequires: svgalib-devel >= 1.4.0}
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.
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.
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.
83 Summary: SDL - Header files
84 Summary(pl): SDL - Pliki nag³ówkowe
85 Summary(pt_BR): Bibliotecas e arquivos de cabeçalho para aplicações SDL
86 Summary(ru): æÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ SDL
87 Summary(uk): æÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL
88 Summary(zh_CN): SDL (Simple DirectMedia Layer) ¿ª·¢¿â
89 Group: X11/Development/Libraries
90 Requires: %{name} = %{version}-%{release}
92 Requires: libX11-devel
93 Requires: libXext-devel
95 Requires: XFree86-devel >= 4.0.2
97 %{?with_alsa:Requires: alsa-lib-devel}
98 %{?with_caca:Requires: libcaca-devel}
99 %{?with_nas:Requires: nas-devel}
104 %description devel -l pl
105 SDL - Pliki nag³ówkowe.
107 %description devel -l pt_BR
108 Esse pacote contém bibliotecas, arquivos de cabeçalho e outros
109 recursos para o desenvolvimento de aplicativos com SDL.
111 %description devel -l ru
112 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
115 %description devel -l uk
116 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÆÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
120 Summary: SDL - static libraries
121 Summary(pl): SDL - biblioteki statyczne
122 Summary(pt_BR): Biblioteca estática para desenvolvimento de aplicações com a SDL
123 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ SDL
124 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ SDL
125 Group: X11/Development/Libraries
126 Requires: %{name}-devel = %{version}-%{release}
129 SDL - static libraries.
131 %description static -l pl
132 SDL - biblioteki statyczne.
134 %description static -l pt_BR
135 Biblioteca estática para desenvolvimento de aplicações com a SDL.
137 %description static -l ru
138 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
141 %description static -l uk
142 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÓÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
146 Summary: SDL - example programs
147 Summary(pl): SDL - programy przyk³adowe
148 Group: X11/Development/Libraries
149 Requires: %{name}-devel = %{version}-%{release}
151 %description examples
152 SDL - example programs.
154 %description examples -l pl
155 SDL - przyk³adowe programy.
167 # get COPY_ARCH_SRC, remove the rest
168 head -n 20 acinclude.m4 > acinclude.tmp
169 mv -f acinclude.tmp acinclude.m4
171 find . -type d -name CVS -print | xargs rm -rf {} \;
178 CPPFLAGS="-DALSA_PCM_OLD_HW_PARAMS_API"
186 --enable-pthread-sem \
189 %{?with_aalib:--enable-video-aalib} \
190 %{?with_caca:--enable-video-caca} \
192 %{?with_directfb:--enable-video-directfb} \
193 --enable-video-fbcon \
194 %{?with_ggi:--enable-video-ggi} \
195 --enable-video-opengl \
196 %{?with_svga:--enable-video-svga} \
197 --enable-video-x11-dgamouse \
198 --enable-video-x11-vm \
199 --enable-video-x11-xv \
200 %{!?with_alsa:--disable-alsa} \
201 %{!?with_arts:--disable-arts} \
202 %{!?with_esd:--disable-esd} \
203 %{!?with_nas:--disable-nas}
205 # automake chooses to use CXXLINK because of seen unused C++ sources
206 # (which are for BeOS and MacOS+QTopia, not Linux)
211 rm -rf $RPM_BUILD_ROOT
212 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
215 DESTDIR=$RPM_BUILD_ROOT \
216 m4datadir=%{_aclocaldir}
218 install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
220 rm -rf docs/man3 docs/{Makefile*,.cvsignore} docs/html/{Makefile*,.cvsignore}
223 rm -rf $RPM_BUILD_ROOT
225 %post -p /sbin/ldconfig
226 %postun -p /sbin/ldconfig
229 %defattr(644,root,root,755)
230 %doc BUGS CREDITS README TODO WhatsNew
231 %attr(755,root,root) %{_libdir}/lib*.so.*.*
234 %defattr(644,root,root,755)
236 %attr(755,root,root) %{_bindir}/sdl-config
237 %attr(755,root,root) %{_libdir}/lib*.so
239 %{_libdir}/libSDLmain.a
245 %defattr(644,root,root,755)
246 %{_examplesdir}/%{name}-%{version}
249 %defattr(644,root,root,755)