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
18 Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library
19 Summary(es): Simple DirectMedia Layer
20 Summary(pl): SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
21 Summary(pt_BR): Simple DirectMedia Layer
22 Summary(ru): Simple DirectMedia Layer
23 Summary(uk): Simple DirectMedia Layer
24 Summary(zh_CN): SDL (Simple DirectMedia Layer) Generic APIs - ÓÎÏ·/¶àýÌå¿â
30 #Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
31 Source0: http://www.libsdl.org/cvs/%{name}-1.2.tar.gz
32 # Source0-md5: 8e5801a100367f515b186ff8469cdb0d
33 Patch0: %{name}-byteorder.patch
34 Patch1: %{name}-fixlibs.patch
35 Patch2: %{name}-amfix.patch
36 Patch3: %{name}-lpthread.patch
37 Patch4: %{name}-ac25x.patch
38 Patch5: %{name}-no_rpath_in_sdl-config.patch
39 Patch6: %{name}-noobjc.patch
40 Patch7: %{name}-am17.patch
41 URL: http://www.libsdl.org/
42 BuildRequires: OpenGL-devel
43 BuildRequires: XFree86-devel >= 4.0.2
44 %{?_with_aalib:BuildRequires: aalib-devel}
45 %ifnarch sparc sparc64
46 %{!?_without_alsa:BuildRequires: alsa-lib-devel}
48 %{!?_without_arts:BuildRequires: arts-devel >= 1.1}
49 BuildRequires: autoconf
50 BuildRequires: automake
51 %{!?_without_esound:BuildRequires: esound-devel}
52 %{?_with_ggi:BuildRequires: libggi-devel}
53 BuildRequires: libtool
54 %{?_with_nas:BuildRequires: nas-devel}
58 BuildRequires: perl-modules
59 %{?_with_svgalib:BuildRequires: svgalib-devel}
60 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
63 SDL (Simple DirectMedia Layer) is a library that allows you portable,
64 low level access to a video framebuffer, audio output, mouse, and
65 keyboard. It can support both windowed and DGA modes of XFree86, and
66 it is designed to be portable - applications linked with SDL can also
67 be built on Win32 and BeOS.
70 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
71 przeno¶ny, niskopoziomowy dostêp do bufora ramki video, wyj¶cia audio,
72 myszy oraz klawiatury. Mo¿e obs³ugiwaæ zarówno okienkowy tryb XFree86
73 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
74 konsolidowane z SDL mo¿na równie¿ budowaæ w systemach Win32 i BeOS.
77 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
78 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
80 Essa biblioteca é usada por alguns jogos.
83 Summary: SDL - Header files
84 Summary(pl): SDL - Pliki nag³ówkowe
85 Summary(pt_BR): Bibliotecas e arquivos de cabeçalho para aplicações SDL
86 Summary(ru): æÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ SDL
87 Summary(uk): æÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL
88 Summary(zh_CN): SDL (Simple DirectMedia Layer) ¿ª·¢¿â
89 Group: X11/Development/Libraries
90 Requires: %{name} = %{version}
91 Requires: XFree86-devel >= 4.0.2
92 %ifnarch sparc sparc64
93 %{!?_without_alsa:Requires: alsa-lib-devel}
95 %{!?_without_arts:Requires: arts-devel}
96 %{!?_without_esound:Requires: esound-devel}
97 %{?_with_nas:Requires: nas-devel}
102 %description devel -l pl
103 SDL - Pliki nag³ówkowe.
105 %description devel -l pt_BR
106 Esse pacote contém bibliotecas, arquivos de cabeçalho e outros
107 recursos para o desenvolvimento de aplicativos com SDL.
109 %description devel -l ru
110 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
113 %description devel -l uk
114 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÆÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
118 Summary: SDL - static libraries
119 Summary(pl): SDL - biblioteki statyczne
120 Summary(pt_BR): Biblioteca estática para desenvolvimento de aplicações com a SDL
121 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ SDL
122 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ SDL
123 Group: X11/Development/Libraries
124 Requires: %{name}-devel = %{version}
127 SDL - static libraries.
129 %description static -l pl
130 SDL - biblioteki statyczne.
132 %description static -l pt_BR
133 Biblioteca estática para desenvolvimento de aplicações com a SDL.
135 %description static -l ru
136 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
139 %description static -l uk
140 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÓÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
144 Summary: SDL - example programs
145 Summary(pl): SDL - programy przyk³adowe
146 Group: X11/Development/Libraries
147 Requires: %{name}-devel = %{version}
149 %description examples
150 SDL - example programs.
152 %description examples -l pl
153 SDL - przyk³adowe programy.
156 %setup -q -n %{name}-1.2
167 find . -type d -name CVS -print | xargs rm -rf {} \;
168 rm -f missing libtool
181 --enable-pthread-sem \
185 --disable-video-directfb \
186 --enable-video-x11-dgamouse \
187 --enable-video-x11-vm \
188 --enable-video-x11-xv \
189 --enable-video-opengl \
190 --enable-video-fbcon \
191 %{?_with_aalib:--enable-video-aalib} \
192 %{?_with_ggi:--enable-video-ggi} \
193 %{!?_with_nas:--disable-nas} \
194 %{?_with_svga:--enable-video-svga} \
195 %ifnarch sparc sparc64
196 %{!?_without_alsa:--enable-alsa} \
198 %{!?_without_esound:--enable-esd} \
199 %{!?_without_arts:--enable-arts} \
200 %{?_without_arts:--disable-arts}
205 rm -rf $RPM_BUILD_ROOT
206 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
210 DESTDIR=$RPM_BUILD_ROOT \
211 m4datadir=%{_aclocaldir}
213 install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
215 rm -rf docs/man3 docs/{Makefile*,.cvsignore} docs/html/{Makefile*,.cvsignore}
218 rm -rf $RPM_BUILD_ROOT
220 %post -p /sbin/ldconfig
221 %postun -p /sbin/ldconfig
224 %defattr(644,root,root,755)
225 %attr(755,root,root) %{_libdir}/lib*.so.*.*
228 %defattr(644,root,root,755)
229 %doc BUGS CREDITS README TODO WhatsNew docs.html docs
230 %attr(755,root,root) %{_bindir}/sdl-config
231 %attr(755,root,root) %{_libdir}/lib*.so
233 %{_libdir}/libSDLmain.a
239 %defattr(644,root,root,755)
240 %{_examplesdir}/%{name}-%{version}
243 %defattr(644,root,root,755)