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 # Source0-md5: 9011f147f23ec535515291d0c9c6904c
30 Patch0: %{name}-byteorder.patch
31 Patch1: %{name}-fixlibs.patch
32 Patch2: %{name}-amfix.patch
33 Patch3: %{name}-lpthread.patch
34 Patch4: %{name}-ac25x.patch
35 Patch5: %{name}-no_rpath_in_sdl-config.patch
36 Patch6: %{name}-noobjc.patch
37 Patch7: %{name}-am17.patch
38 Patch8: %{name}-lt15.patch
39 URL: http://www.libsdl.org/
40 BuildRequires: OpenGL-devel
41 BuildRequires: XFree86-devel >= 4.0.2
42 %{?_with_aalib:BuildRequires: aalib-devel}
43 %ifnarch sparc sparc64
44 %{!?_without_alsa:BuildRequires: alsa-lib-devel}
46 %{!?_without_arts:BuildRequires: arts-devel >= 1.1}
47 BuildRequires: autoconf
48 BuildRequires: automake
49 %{!?_without_esound:BuildRequires: esound-devel}
50 %{?_with_ggi:BuildRequires: libggi-devel}
51 BuildRequires: libtool >= 2:1.4d
52 %{?_with_nas:BuildRequires: nas-devel}
56 BuildRequires: perl-modules
57 %{?_with_svgalib:BuildRequires: svgalib-devel}
58 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61 SDL (Simple DirectMedia Layer) is a library that allows you portable,
62 low level access to a video framebuffer, audio output, mouse, and
63 keyboard. It can support both windowed and DGA modes of XFree86, and
64 it is designed to be portable - applications linked with SDL can also
65 be built on Win32 and BeOS.
68 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
69 przeno¶ny, niskopoziomowy dostêp do bufora ramki video, wyj¶cia audio,
70 myszy oraz klawiatury. Mo¿e obs³ugiwaæ zarówno okienkowy tryb XFree86
71 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
72 konsolidowane z SDL mo¿na równie¿ budowaæ w systemach Win32 i BeOS.
75 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
76 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
78 Essa biblioteca é usada por alguns jogos.
81 Summary: SDL - Header files
82 Summary(pl): SDL - Pliki nag³ówkowe
83 Summary(pt_BR): Bibliotecas e arquivos de cabeçalho para aplicações SDL
84 Summary(ru): æÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ SDL
85 Summary(uk): æÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL
86 Summary(zh_CN): SDL (Simple DirectMedia Layer) ¿ª·¢¿â
87 Group: X11/Development/Libraries
88 Requires: %{name} = %{version}
89 Requires: XFree86-devel >= 4.0.2
90 %ifnarch sparc sparc64
91 %{!?_without_alsa:Requires: alsa-lib-devel}
93 %{!?_without_arts:Requires: arts-devel}
94 %{!?_without_esound:Requires: esound-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}
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}
147 %description examples
148 SDL - example programs.
150 %description examples -l pl
151 SDL - przyk³adowe programy.
165 # get COPY_ARCH_SRC, remove the rest
166 head -n 16 acinclude.m4 > acinclude.tmp
167 mv -f acinclude.tmp acinclude.m4
169 find . -type d -name CVS -print | xargs rm -rf {} \;
172 rm -f missing libtool
184 --enable-pthread-sem \
188 --disable-video-directfb \
189 --enable-video-x11-dgamouse \
190 --enable-video-x11-vm \
191 --enable-video-x11-xv \
192 --enable-video-opengl \
193 --enable-video-fbcon \
194 %{?_with_aalib:--enable-video-aalib} \
195 %{?_with_ggi:--enable-video-ggi} \
196 %{!?_with_nas:--disable-nas} \
197 %{?_with_svga:--enable-video-svga} \
198 %{?_without_alsa:--disable-alsa} \
199 %{!?_without_esound:--enable-esd} \
200 %{?_without_esound:--disable-esd} \
201 %{!?_without_arts:--enable-arts} \
202 %{?_without_arts:--disable-arts}
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 %attr(755,root,root) %{_libdir}/lib*.so.*.*
229 %defattr(644,root,root,755)
230 %doc BUGS CREDITS README TODO WhatsNew docs.html docs
231 %attr(755,root,root) %{_bindir}/sdl-config
232 %attr(755,root,root) %{_libdir}/lib*.so
234 %{_libdir}/libSDLmain.a
240 %defattr(644,root,root,755)
241 %{_examplesdir}/%{name}-%{version}
244 %defattr(644,root,root,755)