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
15 %define _without_alsa 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
27 Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
28 Patch0: %{name}-byteorder.patch
29 Patch1: %{name}-fixlibs.patch
30 Patch2: %{name}-amfix.patch
31 Patch3: %{name}-lpthread.patch
32 URL: http://www.libsdl.org/
33 BuildRequires: autoconf
34 BuildRequires: automake
35 %{!?_without_esound:BuildRequires: esound-devel}
36 %{!?_without_arts:BuildRequires: arts-devel}
37 BuildRequires: XFree86-devel >= 4.0.2
38 BuildRequires: OpenGL-devel
39 BuildRequires: perl-modules
43 %ifnarch sparc sparc64
44 %{!?_without_alsa:BuildRequires: alsa-lib-devel}
46 %{?_with_svgalib:BuildRequires: svgalib-devel}
47 %{?_with_aalib:BuildRequires: aalib-devel}
48 %{?_with_ggi:BuildRequires: libggi-devel}
49 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51 %define _prefix /usr/X11R6
52 %define _mandir %{_prefix}/man
55 SDL (Simple DirectMedia Layer) is a library that allows you portable,
56 low level access to a video framebuffer, audio output, mouse, and
57 keyboard. It can support both windowed and DGA modes of XFree86, and
58 it is designed to be portable - applications linked with SDL can also
59 be built on Win32 and BeOS.
62 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
63 przeno¶ny, niskopoziomowy dostep do bufora ramki video, wyj¶cia audio,
64 myszy oraz klawiatury, Moze obs³ugiwaæ zarówno okienkowy tryb XFree86
65 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
66 konsolidowane z SDL mo¿na równie¿ budowac w systemach Win32 i BeOS.
69 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
70 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
72 Essa biblioteca é usada por alguns jogos.
75 Summary: SDL - Header files
76 Summary(pl): SDL - Pliki nag³ówkowe
77 Summary(pt_BR): Bibliotecas e arquivos de cabeçalho para aplicações SDL
79 Requires: %{name} = %{version}
80 %ifnarch sparc sparc64
81 %{!?_without_alsa:Requires: alsa-lib-devel}
83 %{!?_without_esound:Requires: esound-devel}
84 %{!?_without_arts:Requires: arts-devel}
85 Requires: XFree86-devel >= 4.0.2
90 %description -l pl devel
91 SDL - Pliki nag³ówkowe.
93 %description -l pt_BR devel
94 Esse pacote contém bibliotecas, arquivos de cabeçalho e outros
95 recursos para o desenvolvimento de aplicativos com SDL.
98 Summary: SDL - static libraries
99 Summary(pl): SDL - biblioteki statyczne
100 Summary(pt_BR): Biblioteca estática para desenvolvimento de aplicações com a SDL
102 Requires: %{name}-devel = %{version}
105 SDL - static libraries.
107 %description -l pl static
108 SDL - biblioteki statyczne.
110 %description -l pt_BR static
111 Biblioteca estática para desenvolvimento de aplicações com a SDL.
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
118 Requires: %{name}-devel = %{version}
120 %description examples
121 SDL - example programs.
123 %description -l pl examples
124 SDL - przykladowe programy.
135 libtoolize --copy --force
139 cp src/hermes/Makefile.in Makefile.in.ok
140 automake -a -c --foreign
141 cp Makefile.in.ok src/hermes/Makefile.in
149 --enable-pthread-sem \
153 --enable-video-x11-dgamouse \
154 --enable-video-x11-vm \
155 --enable-video-x11-xv \
156 --enable-video-opengl \
157 --enable-video-fbcon \
158 %{?_with_svga:--enable-video-svga} \
159 %{?_with_aalib:--enable-video-aalib} \
160 %{?_with_ggi:--enable-video-ggi} \
161 %ifnarch sparc sparc64
162 %{!?_without_alsa:--enable-alsa} \
164 %{!?_without_esound:--enable-esd} \
165 %{!?_without_arts:--enable-arts}
168 rm -rf $RPM_BUILD_ROOT
171 DESTDIR=$RPM_BUILD_ROOT \
172 m4datadir=%{_aclocaldir}
174 rm -rf docs/man3 docs/Makefile* docs/html/Makefile*
176 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
177 install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
179 gzip -9nf BUGS CREDITS README TODO WhatsNew
181 %post -p /sbin/ldconfig
182 %postun -p /sbin/ldconfig
185 rm -rf $RPM_BUILD_ROOT
188 %defattr(644,root,root,755)
189 %attr(755,root,root) %{_libdir}/lib*.so.*.*
192 %defattr(644,root,root,755)
193 %doc {BUGS,CREDITS,README,TODO,WhatsNew}.gz docs.html docs
194 %attr(755,root,root) %{_bindir}/sdl-config
195 %attr(755,root,root) %{_libdir}/lib*.so
196 %attr(755,root,root) %{_libdir}/lib*.la
197 %{_libdir}/libSDLmain.a
203 %{_examplesdir}/%{name}-%{version}
206 %defattr(644,root,root,755)