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}-no_rpath_in_sdl-config.patch
33 Patch6: %{name}-noobjc.patch
34 URL: http://www.libsdl.org/
35 BuildRequires: OpenGL-devel
36 BuildRequires: XFree86-devel >= 4.0.2
37 %{?_with_aalib:BuildRequires: aalib-devel}
38 %ifnarch sparc sparc64
39 %{!?_without_alsa:BuildRequires: alsa-lib-devel}
41 %{!?_without_arts:BuildRequires: arts-devel}
42 BuildRequires: autoconf
43 BuildRequires: automake
44 %{!?_without_esound:BuildRequires: esound-devel}
45 %{?_with_ggi:BuildRequires: libggi-devel}
46 BuildRequires: libtool
47 BuildRequires: nas-devel
51 BuildRequires: perl-modules
52 %{?_with_svgalib:BuildRequires: svgalib-devel}
53 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55 %define _prefix /usr/X11R6
56 %define _mandir %{_prefix}/man
59 SDL (Simple DirectMedia Layer) is a library that allows you portable,
60 low level access to a video framebuffer, audio output, mouse, and
61 keyboard. It can support both windowed and DGA modes of XFree86, and
62 it is designed to be portable - applications linked with SDL can also
63 be built on Win32 and BeOS.
66 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
67 przeno¶ny, niskopoziomowy dostep do bufora ramki video, wyj¶cia audio,
68 myszy oraz klawiatury, Moze obs³ugiwaæ zarówno okienkowy tryb XFree86
69 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
70 konsolidowane z SDL mo¿na równie¿ budowac w systemach Win32 i BeOS.
73 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
74 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
76 Essa biblioteca é usada por alguns jogos.
79 Summary: SDL - Header files
80 Summary(pl): SDL - Pliki nag³ówkowe
81 Summary(pt_BR): Bibliotecas e arquivos de cabeçalho para aplicações SDL
82 Summary(ru): æÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ SDL
83 Summary(uk): æÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL
84 Summary(zh_CN): SDL (Simple DirectMedia Layer) ¿ª·¢¿â
85 Group: X11/Development/Libraries
86 Requires: %{name} = %{version}
87 Requires: XFree86-devel >= 4.0.2
88 %ifnarch sparc sparc64
89 %{!?_without_alsa:Requires: alsa-lib-devel}
91 %{!?_without_arts:Requires: arts-devel}
92 %{!?_without_esound:Requires: esound-devel}
98 %description devel -l pl
99 SDL - Pliki nag³ówkowe.
101 %description devel -l pt_BR
102 Esse pacote contém bibliotecas, arquivos de cabeçalho e outros
103 recursos para o desenvolvimento de aplicativos com SDL.
105 %description devel -l ru
106 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
109 %description devel -l uk
110 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÆÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
114 Summary: SDL - static libraries
115 Summary(pl): SDL - biblioteki statyczne
116 Summary(pt_BR): Biblioteca estática para desenvolvimento de aplicações com a SDL
117 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ SDL
118 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ SDL
119 Group: X11/Development/Libraries
120 Requires: %{name}-devel = %{version}
123 SDL - static libraries.
125 %description static -l pl
126 SDL - biblioteki statyczne.
128 %description static -l pt_BR
129 Biblioteca estática para desenvolvimento de aplicações com a SDL.
131 %description static -l ru
132 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
135 %description static -l uk
136 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÓÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
140 Summary: SDL - example programs
141 Summary(pl): SDL - programy przyk³adowe
142 Group: X11/Development/Libraries
143 Requires: %{name}-devel = %{version}
145 %description examples
146 SDL - example programs.
148 %description examples -l pl
149 SDL - przyk³adowe programy.
162 rm -f missing libtool
175 --enable-pthread-sem \
179 --enable-video-x11-dgamouse \
180 --enable-video-x11-vm \
181 --enable-video-x11-xv \
182 --enable-video-opengl \
183 --enable-video-fbcon \
184 %{?_with_svga:--enable-video-svga} \
185 %{?_with_aalib:--enable-video-aalib} \
186 %{?_with_ggi:--enable-video-ggi} \
187 %ifnarch sparc sparc64
188 %{!?_without_alsa:--enable-alsa} \
190 %{!?_without_esound:--enable-esd} \
191 %{!?_without_arts:--enable-arts}
196 rm -rf $RPM_BUILD_ROOT
197 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
201 DESTDIR=$RPM_BUILD_ROOT \
202 m4datadir=%{_aclocaldir}
204 install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
206 rm -rf docs/man3 docs/Makefile* docs/html/Makefile*
209 rm -rf $RPM_BUILD_ROOT
211 %post -p /sbin/ldconfig
212 %postun -p /sbin/ldconfig
215 %defattr(644,root,root,755)
216 %attr(755,root,root) %{_libdir}/lib*.so.*.*
219 %defattr(644,root,root,755)
220 %doc BUGS CREDITS README TODO WhatsNew docs.html docs
221 %attr(755,root,root) %{_bindir}/sdl-config
222 %attr(755,root,root) %{_libdir}/lib*.so
224 %{_libdir}/libSDLmain.a
230 %defattr(644,root,root,755)
231 %{_examplesdir}/%{name}-%{version}
234 %defattr(644,root,root,755)