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 Patch8: %{name}-lt15.patch
42 URL: http://www.libsdl.org/
43 BuildRequires: OpenGL-devel
44 BuildRequires: XFree86-devel >= 4.0.2
45 %{?_with_aalib:BuildRequires: aalib-devel}
46 %ifnarch sparc sparc64
47 %{!?_without_alsa:BuildRequires: alsa-lib-devel}
49 %{!?_without_arts:BuildRequires: arts-devel >= 1.1}
50 BuildRequires: autoconf
51 BuildRequires: automake
52 %{!?_without_esound:BuildRequires: esound-devel}
53 %{?_with_ggi:BuildRequires: libggi-devel}
54 BuildRequires: libtool >= 2:1.4d
55 %{?_with_nas:BuildRequires: nas-devel}
59 BuildRequires: perl-modules
60 %{?_with_svgalib:BuildRequires: svgalib-devel}
61 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64 SDL (Simple DirectMedia Layer) is a library that allows you portable,
65 low level access to a video framebuffer, audio output, mouse, and
66 keyboard. It can support both windowed and DGA modes of XFree86, and
67 it is designed to be portable - applications linked with SDL can also
68 be built on Win32 and BeOS.
71 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
72 przeno¶ny, niskopoziomowy dostêp do bufora ramki video, wyj¶cia audio,
73 myszy oraz klawiatury. Mo¿e obs³ugiwaæ zarówno okienkowy tryb XFree86
74 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
75 konsolidowane z SDL mo¿na równie¿ budowaæ w systemach Win32 i BeOS.
78 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
79 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
81 Essa biblioteca é usada por alguns jogos.
84 Summary: SDL - Header files
85 Summary(pl): SDL - Pliki nag³ówkowe
86 Summary(pt_BR): Bibliotecas e arquivos de cabeçalho para aplicações SDL
87 Summary(ru): æÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ SDL
88 Summary(uk): æÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL
89 Summary(zh_CN): SDL (Simple DirectMedia Layer) ¿ª·¢¿â
90 Group: X11/Development/Libraries
91 Requires: %{name} = %{version}
92 Requires: XFree86-devel >= 4.0.2
93 %ifnarch sparc sparc64
94 %{!?_without_alsa:Requires: alsa-lib-devel}
96 %{!?_without_arts:Requires: arts-devel}
97 %{!?_without_esound:Requires: esound-devel}
98 %{?_with_nas:Requires: nas-devel}
103 %description devel -l pl
104 SDL - Pliki nag³ówkowe.
106 %description devel -l pt_BR
107 Esse pacote contém bibliotecas, arquivos de cabeçalho e outros
108 recursos para o desenvolvimento de aplicativos com SDL.
110 %description devel -l ru
111 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
114 %description devel -l uk
115 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÆÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
119 Summary: SDL - static libraries
120 Summary(pl): SDL - biblioteki statyczne
121 Summary(pt_BR): Biblioteca estática para desenvolvimento de aplicações com a SDL
122 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ SDL
123 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ SDL
124 Group: X11/Development/Libraries
125 Requires: %{name}-devel = %{version}
128 SDL - static libraries.
130 %description static -l pl
131 SDL - biblioteki statyczne.
133 %description static -l pt_BR
134 Biblioteca estática para desenvolvimento de aplicações com a SDL.
136 %description static -l ru
137 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
140 %description static -l uk
141 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÓÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
145 Summary: SDL - example programs
146 Summary(pl): SDL - programy przyk³adowe
147 Group: X11/Development/Libraries
148 Requires: %{name}-devel = %{version}
150 %description examples
151 SDL - example programs.
153 %description examples -l pl
154 SDL - przyk³adowe programy.
157 %setup -q -n %{name}-1.2
168 # get COPY_ARCH_SRC, remove the rest
169 head -n 16 acinclude.m4 > acinclude.tmp
170 mv -f acinclude.tmp acinclude.m4
172 find . -type d -name CVS -print | xargs rm -rf {} \;
175 rm -f missing libtool
187 --enable-pthread-sem \
191 --disable-video-directfb \
192 --enable-video-x11-dgamouse \
193 --enable-video-x11-vm \
194 --enable-video-x11-xv \
195 --enable-video-opengl \
196 --enable-video-fbcon \
197 %{?_with_aalib:--enable-video-aalib} \
198 %{?_with_ggi:--enable-video-ggi} \
199 %{!?_with_nas:--disable-nas} \
200 %{?_with_svga:--enable-video-svga} \
201 %{?_without_alsa:--disable-alsa} \
202 %{!?_without_esound:--enable-esd} \
203 %{!?_without_arts:--enable-arts} \
204 %{?_without_arts:--disable-arts}
209 rm -rf $RPM_BUILD_ROOT
210 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
213 DESTDIR=$RPM_BUILD_ROOT \
214 m4datadir=%{_aclocaldir}
216 install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
218 rm -rf docs/man3 docs/{Makefile*,.cvsignore} docs/html/{Makefile*,.cvsignore}
221 rm -rf $RPM_BUILD_ROOT
223 %post -p /sbin/ldconfig
224 %postun -p /sbin/ldconfig
227 %defattr(644,root,root,755)
228 %attr(755,root,root) %{_libdir}/lib*.so.*.*
231 %defattr(644,root,root,755)
232 %doc BUGS CREDITS README TODO WhatsNew docs.html docs
233 %attr(755,root,root) %{_bindir}/sdl-config
234 %attr(755,root,root) %{_libdir}/lib*.so
236 %{_libdir}/libSDLmain.a
242 %defattr(644,root,root,755)
243 %{_examplesdir}/%{name}-%{version}
246 %defattr(644,root,root,755)