3 # _with_aalib - with aalib support
4 # _with_ggi - with GGI support
5 # _with_nas - with NAS audio support
6 # _with_svga - with svgalib support
8 # _without_alsa - without ALSA support
9 # _without_arts - without arts support
10 # _without_esound - without esound support
13 %define _without_arts 1
16 Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library
17 Summary(es): Simple DirectMedia Layer
18 Summary(pl): SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
19 Summary(pt_BR): Simple DirectMedia Layer
20 Summary(ru): Simple DirectMedia Layer
21 Summary(uk): Simple DirectMedia Layer
22 Summary(zh_CN): SDL (Simple DirectMedia Layer) Generic APIs - ÓÎÏ·/¶àýÌå¿â
28 Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
29 Patch0: %{name}-byteorder.patch
30 Patch1: %{name}-fixlibs.patch
31 Patch2: %{name}-amfix.patch
32 Patch3: %{name}-lpthread.patch
33 Patch4: %{name}-ac25x.patch
34 Patch5: %{name}-no_rpath_in_sdl-config.patch
35 Patch6: %{name}-noobjc.patch
36 Patch7: %{name}-refresh_rates.patch
37 Patch8: %{name}-am17.patch
38 URL: http://www.libsdl.org/
39 BuildRequires: OpenGL-devel
40 BuildRequires: XFree86-devel >= 4.0.2
41 %{?_with_aalib:BuildRequires: aalib-devel}
42 %ifnarch sparc sparc64
43 %{!?_without_alsa:BuildRequires: alsa-lib-devel}
45 %{!?_without_arts:BuildRequires: arts-devel >= 1.1}
46 BuildRequires: autoconf
47 BuildRequires: automake
48 %{!?_without_esound:BuildRequires: esound-devel}
49 %{?_with_ggi:BuildRequires: libggi-devel}
50 BuildRequires: libtool
51 %{?_with_nas:BuildRequires: nas-devel}
55 BuildRequires: perl-modules
56 %{?_with_svgalib:BuildRequires: svgalib-devel}
57 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
60 SDL (Simple DirectMedia Layer) is a library that allows you portable,
61 low level access to a video framebuffer, audio output, mouse, and
62 keyboard. It can support both windowed and DGA modes of XFree86, and
63 it is designed to be portable - applications linked with SDL can also
64 be built on Win32 and BeOS.
67 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
68 przeno¶ny, niskopoziomowy dostêp do bufora ramki video, wyj¶cia audio,
69 myszy oraz klawiatury. Mo¿e obs³ugiwaæ zarówno okienkowy tryb XFree86
70 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
71 konsolidowane z SDL mo¿na równie¿ budowaæ w systemach Win32 i BeOS.
74 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
75 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
77 Essa biblioteca é usada por alguns jogos.
80 Summary: SDL - Header files
81 Summary(pl): SDL - Pliki nag³ówkowe
82 Summary(pt_BR): Bibliotecas e arquivos de cabeçalho para aplicações SDL
83 Summary(ru): æÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ SDL
84 Summary(uk): æÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL
85 Summary(zh_CN): SDL (Simple DirectMedia Layer) ¿ª·¢¿â
86 Group: X11/Development/Libraries
87 Requires: %{name} = %{version}
88 Requires: XFree86-devel >= 4.0.2
89 %ifnarch sparc sparc64
90 %{!?_without_alsa:Requires: alsa-lib-devel}
92 %{!?_without_arts:Requires: arts-devel}
93 %{!?_without_esound:Requires: esound-devel}
94 %{?_with_nas:Requires: nas-devel}
99 %description devel -l pl
100 SDL - Pliki nag³ówkowe.
102 %description devel -l pt_BR
103 Esse pacote contém bibliotecas, arquivos de cabeçalho e outros
104 recursos para o desenvolvimento de aplicativos com SDL.
106 %description devel -l ru
107 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
110 %description devel -l uk
111 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÆÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
115 Summary: SDL - static libraries
116 Summary(pl): SDL - biblioteki statyczne
117 Summary(pt_BR): Biblioteca estática para desenvolvimento de aplicações com a SDL
118 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ SDL
119 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ SDL
120 Group: X11/Development/Libraries
121 Requires: %{name}-devel = %{version}
124 SDL - static libraries.
126 %description static -l pl
127 SDL - biblioteki statyczne.
129 %description static -l pt_BR
130 Biblioteca estática para desenvolvimento de aplicações com a SDL.
132 %description static -l ru
133 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
136 %description static -l uk
137 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÓÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
141 Summary: SDL - example programs
142 Summary(pl): SDL - programy przyk³adowe
143 Group: X11/Development/Libraries
144 Requires: %{name}-devel = %{version}
146 %description examples
147 SDL - example programs.
149 %description examples -l pl
150 SDL - przyk³adowe programy.
165 rm -f missing libtool
178 --enable-pthread-sem \
182 --disable-video-directfb \
183 --enable-video-x11-dgamouse \
184 --enable-video-x11-vm \
185 --enable-video-x11-xv \
186 --enable-video-opengl \
187 --enable-video-fbcon \
188 %{?_with_aalib:--enable-video-aalib} \
189 %{?_with_ggi:--enable-video-ggi} \
190 %{!?_with_nas:--disable-nas} \
191 %{?_with_svga:--enable-video-svga} \
192 %ifnarch sparc sparc64
193 %{!?_without_alsa:--enable-alsa} \
195 %{!?_without_esound:--enable-esd} \
196 %{!?_without_arts:--enable-arts}
201 rm -rf $RPM_BUILD_ROOT
202 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* docs/html/Makefile*
214 rm -rf $RPM_BUILD_ROOT
216 %post -p /sbin/ldconfig
217 %postun -p /sbin/ldconfig
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{_libdir}/lib*.so.*.*
224 %defattr(644,root,root,755)
225 %doc BUGS CREDITS README TODO WhatsNew docs.html docs
226 %attr(755,root,root) %{_bindir}/sdl-config
227 %attr(755,root,root) %{_libdir}/lib*.so
229 %{_libdir}/libSDLmain.a
235 %defattr(644,root,root,755)
236 %{_examplesdir}/%{name}-%{version}
239 %defattr(644,root,root,755)