3 # _without_alsa - without ALSA support
4 # _without_esound - without esound support
5 # _without_arts - without arts support
6 # _with_svga - with svgalib support
7 # _with_aalib - with aalib support
8 # _with_ggi - with GGI support
11 %define _without_arts 1
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 Patch0: %{name}-byteorder.patch
28 Patch1: %{name}-fixlibs.patch
29 Patch2: %{name}-amfix.patch
30 Patch3: %{name}-lpthread.patch
31 Patch4: %{name}-ac25x.patch
32 Patch5: %{name}-alsa9.patch.bz2
33 Patch6: %{name}-am.patch
34 URL: http://www.libsdl.org/
35 BuildRequires: autoconf
36 BuildRequires: automake
37 %{!?_without_esound:BuildRequires: esound-devel}
38 %{!?_without_arts:BuildRequires: arts-devel}
39 BuildRequires: XFree86-devel >= 4.0.2
40 BuildRequires: OpenGL-devel
41 BuildRequires: perl-modules
45 %ifnarch sparc sparc64
46 %{!?_without_alsa:BuildRequires: alsa-lib-devel}
48 %{?_with_svgalib:BuildRequires: svgalib-devel}
49 %{?_with_aalib:BuildRequires: aalib-devel}
50 %{?_with_ggi:BuildRequires: libggi-devel}
51 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53 %define _prefix /usr/X11R6
54 %define _mandir %{_prefix}/man
57 SDL (Simple DirectMedia Layer) is a library that allows you portable,
58 low level access to a video framebuffer, audio output, mouse, and
59 keyboard. It can support both windowed and DGA modes of XFree86, and
60 it is designed to be portable - applications linked with SDL can also
61 be built on Win32 and BeOS.
64 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
65 przeno¶ny, niskopoziomowy dostep do bufora ramki video, wyj¶cia audio,
66 myszy oraz klawiatury, Moze obs³ugiwaæ zarówno okienkowy tryb XFree86
67 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
68 konsolidowane z SDL mo¿na równie¿ budowac w systemach Win32 i BeOS.
71 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
72 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
74 Essa biblioteca é usada por alguns jogos.
77 Summary: SDL - Header files
78 Summary(pl): SDL - Pliki nag³ówkowe
79 Summary(pt_BR): Bibliotecas e arquivos de cabeçalho para aplicações SDL
80 Summary(ru): æÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ SDL
81 Summary(uk): æÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL
82 Summary(zh_CN): SDL (Simple DirectMedia Layer) ¿ª·¢¿â
83 Group: X11/Development/Libraries
84 Requires: %{name} = %{version}
85 %ifnarch sparc sparc64
86 %{!?_without_alsa:Requires: alsa-lib-devel}
88 %{!?_without_esound:Requires: esound-devel}
89 %{!?_without_arts:Requires: arts-devel}
90 Requires: XFree86-devel >= 4.0.2
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}
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}
142 %description examples
143 SDL - example programs.
145 %description examples -l pl
146 SDL - przyk³adowe programy.
164 cp -f src/hermes/Makefile.in Makefile.in.ok
165 automake -a -c --foreign
166 cp -f Makefile.in.ok src/hermes/Makefile.in
174 --enable-pthread-sem \
178 --enable-video-x11-dgamouse \
179 --enable-video-x11-vm \
180 --enable-video-x11-xv \
181 --enable-video-opengl \
182 --enable-video-fbcon \
183 %{?_with_svga:--enable-video-svga} \
184 %{?_with_aalib:--enable-video-aalib} \
185 %{?_with_ggi:--enable-video-ggi} \
186 %ifnarch sparc sparc64
187 %{!?_without_alsa:--enable-alsa} \
189 %{!?_without_esound:--enable-esd} \
190 %{!?_without_arts:--enable-arts}
193 rm -rf $RPM_BUILD_ROOT
194 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
197 DESTDIR=$RPM_BUILD_ROOT \
198 m4datadir=%{_aclocaldir}
200 install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
202 rm -rf docs/man3 docs/Makefile* docs/html/Makefile*
204 %post -p /sbin/ldconfig
205 %postun -p /sbin/ldconfig
208 rm -rf $RPM_BUILD_ROOT
211 %defattr(644,root,root,755)
212 %attr(755,root,root) %{_libdir}/lib*.so.*.*
215 %defattr(644,root,root,755)
216 %doc BUGS CREDITS README TODO WhatsNew docs.html docs
217 %attr(755,root,root) %{_bindir}/sdl-config
218 %attr(755,root,root) %{_libdir}/lib*.so
219 %attr(755,root,root) %{_libdir}/lib*.la
220 %{_libdir}/libSDLmain.a
226 %defattr(644,root,root,755)
227 %{_examplesdir}/%{name}-%{version}
230 %defattr(644,root,root,755)