3 %bcond_with aalib # with aalib graphics support
4 %bcond_with directfb # with DirectFB graphics support
5 %bcond_with ggi # with GGI graphics support
6 %bcond_with nas # with NAS audio support
7 %bcond_with svga # with svgalib graphics support
8 %bcond_without alsa # without ALSA audio support
9 %bcond_without arts # without aRts audio support
10 %bcond_without esd # without EsounD audio support
12 Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library
13 Summary(es): Simple DirectMedia Layer
14 Summary(pl): SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
15 Summary(pt_BR): Simple DirectMedia Layer
16 Summary(ru): Simple DirectMedia Layer
17 Summary(uk): Simple DirectMedia Layer
18 Summary(zh_CN): SDL (Simple DirectMedia Layer) Generic APIs - ÓÎÏ·/¶àýÌå¿â
24 Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
25 # Source0-md5: 9011f147f23ec535515291d0c9c6904c
26 Patch0: %{name}-byteorder.patch
27 Patch1: %{name}-fixlibs.patch
28 Patch2: %{name}-amfix.patch
29 Patch3: %{name}-lpthread.patch
30 Patch4: %{name}-no_rpath_in_sdl-config.patch
31 Patch5: %{name}-lt15.patch
32 Patch6: %{name}-dlopen-acfix.patch
33 #Patch4: %{name}-ac25x.patch
34 #Patch6: %{name}-noobjc.patch
35 #Patch7: %{name}-am17.patch
36 URL: http://www.libsdl.org/
37 %{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.15}
38 BuildRequires: OpenGL-devel
39 BuildRequires: XFree86-devel >= 4.0.2
40 %{?with_aalib:BuildRequires: aalib-devel}
41 %ifnarch sparc sparc64
42 %{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0}
44 %{?with_arts:BuildRequires: arts-devel >= 1.1}
45 BuildRequires: autoconf
46 BuildRequires: automake
47 %{?with_esd:BuildRequires: esound-devel >= 0.2.8}
48 %{?with_ggi:BuildRequires: libggi-devel}
49 BuildRequires: libtool >= 2:1.4d
50 %{?with_nas:BuildRequires: nas-devel}
54 BuildRequires: perl-modules
55 %{?with_directfb:BuildRequires: pkgconfig >= 0.7}
56 %{?with_svgalib:BuildRequires: svgalib-devel >= 1.4.0}
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 %{?with_alsa:Requires: alsa-lib-devel}
92 %{?with_nas:Requires: nas-devel}
97 %description devel -l pl
98 SDL - Pliki nag³ówkowe.
100 %description devel -l pt_BR
101 Esse pacote contém bibliotecas, arquivos de cabeçalho e outros
102 recursos para o desenvolvimento de aplicativos com SDL.
104 %description devel -l ru
105 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
108 %description devel -l uk
109 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÆÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
113 Summary: SDL - static libraries
114 Summary(pl): SDL - biblioteki statyczne
115 Summary(pt_BR): Biblioteca estática para desenvolvimento de aplicações com a SDL
116 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ SDL
117 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ SDL
118 Group: X11/Development/Libraries
119 Requires: %{name}-devel = %{version}
122 SDL - static libraries.
124 %description static -l pl
125 SDL - biblioteki statyczne.
127 %description static -l pt_BR
128 Biblioteca estática para desenvolvimento de aplicações com a SDL.
130 %description static -l ru
131 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
134 %description static -l uk
135 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÓÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
139 Summary: SDL - example programs
140 Summary(pl): SDL - programy przyk³adowe
141 Group: X11/Development/Libraries
142 Requires: %{name}-devel = %{version}
144 %description examples
145 SDL - example programs.
147 %description examples -l pl
148 SDL - przyk³adowe programy.
160 # get COPY_ARCH_SRC, remove the rest
161 head -n 16 acinclude.m4 > acinclude.tmp
162 mv -f acinclude.tmp acinclude.m4
164 find . -type d -name CVS -print | xargs rm -rf {} \;
167 rm -f missing libtool
179 --enable-pthread-sem \
182 %{?with_aalib:--enable-video-aalib} \
184 %{?with_directfb:--enable-video-directfb} \
185 --enable-video-fbcon \
186 %{?with_ggi:--enable-video-ggi} \
187 --enable-video-opengl \
188 %{?with_svga:--enable-video-svga} \
189 --enable-video-x11-dgamouse \
190 --enable-video-x11-vm \
191 --enable-video-x11-xv \
192 %{!?with_alsa:--disable-alsa} \
193 %{!?with_arts:--disable-arts} \
194 %{!?with_esd:--disable-esd} \
195 %{!?with_nas:--disable-nas}
200 rm -rf $RPM_BUILD_ROOT
201 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
204 DESTDIR=$RPM_BUILD_ROOT \
205 m4datadir=%{_aclocaldir}
207 install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
209 rm -rf docs/man3 docs/{Makefile*,.cvsignore} docs/html/{Makefile*,.cvsignore}
212 rm -rf $RPM_BUILD_ROOT
214 %post -p /sbin/ldconfig
215 %postun -p /sbin/ldconfig
218 %defattr(644,root,root,755)
219 %doc BUGS CREDITS README TODO WhatsNew
220 %attr(755,root,root) %{_libdir}/lib*.so.*.*
223 %defattr(644,root,root,755)
225 %attr(755,root,root) %{_bindir}/sdl-config
226 %attr(755,root,root) %{_libdir}/lib*.so
228 %{_libdir}/libSDLmain.a
234 %defattr(644,root,root,755)
235 %{_examplesdir}/%{name}-%{version}
238 %defattr(644,root,root,755)