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
23 Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
24 Patch0: %{name}-byteorder.patch
25 Patch1: %{name}-fixlibs.patch
26 Patch2: %{name}-amfix.patch
27 Patch3: %{name}-lpthread.patch
28 URL: http://www.libsdl.org/
29 BuildRequires: autoconf
30 BuildRequires: automake
31 %{!?_without_esound:BuildRequires: esound-devel}
32 %{!?_without_arts:BuildRequires: arts-devel}
33 BuildRequires: XFree86-devel >= 4.0.2
34 BuildRequires: OpenGL-devel
35 BuildRequires: perl-modules
39 %ifnarch sparc sparc64
40 %{!?_without_alsa:BuildRequires: alsa-lib-devel}
42 %{?_with_svgalib:BuildRequires: svgalib-devel}
43 %{?_with_aalib:BuildRequires: aalib-devel}
44 %{?_with_ggi:BuildRequires: libggi-devel}
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 %define _prefix /usr/X11R6
48 %define _mandir %{_prefix}/man
51 SDL (Simple DirectMedia Layer) is a library that allows you portable,
52 low level access to a video framebuffer, audio output, mouse, and
53 keyboard. It can support both windowed and DGA modes of XFree86, and
54 it is designed to be portable - applications linked with SDL can also
55 be built on Win32 and BeOS.
58 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
59 przeno¶ny, niskopoziomowy dostep do bufora ramki video, wyj¶cia audio,
60 myszy oraz klawiatury, Moze obs³ugiwaæ zarówno okienkowy tryb XFree86
61 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
62 konsolidowane z SDL mo¿na równie¿ budowac w systemach Win32 i BeOS.
65 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
66 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
68 Essa biblioteca é usada por alguns jogos.
71 Summary: SDL - Header files
72 Summary(pl): SDL - Pliki nag³ówkowe
73 Summary(pt_BR): Bibliotecas e arquivos de cabeçalho para aplicações SDL
74 Group: X11/Development/Libraries
75 Requires: %{name} = %{version}
76 %ifnarch sparc sparc64
77 %{!?_without_alsa:Requires: alsa-lib-devel}
79 %{!?_without_esound:Requires: esound-devel}
80 %{!?_without_arts:Requires: arts-devel}
81 Requires: XFree86-devel >= 4.0.2
86 %description devel -l pl
87 SDL - Pliki nag³ówkowe.
89 %description devel -l pt_BR
90 Esse pacote contém bibliotecas, arquivos de cabeçalho e outros
91 recursos para o desenvolvimento de aplicativos com SDL.
94 Summary: SDL - static libraries
95 Summary(pl): SDL - biblioteki statyczne
96 Summary(pt_BR): Biblioteca estática para desenvolvimento de aplicações com a SDL
97 Group: X11/Development/Libraries
98 Requires: %{name}-devel = %{version}
101 SDL - static libraries.
103 %description static -l pl
104 SDL - biblioteki statyczne.
106 %description static -l pt_BR
107 Biblioteca estática para desenvolvimento de aplicações com a SDL.
110 Summary: SDL - example programs
111 Summary(pl): SDL - programy przyk³adowe
112 Group: X11/Development/Libraries
113 Requires: %{name}-devel = %{version}
115 %description examples
116 SDL - example programs.
118 %description examples -l pl
119 SDL - przyk³adowe programy.
130 libtoolize --copy --force
134 cp -f src/hermes/Makefile.in Makefile.in.ok
135 automake -a -c --foreign
136 cp -f Makefile.in.ok src/hermes/Makefile.in
144 --enable-pthread-sem \
148 --enable-video-x11-dgamouse \
149 --enable-video-x11-vm \
150 --enable-video-x11-xv \
151 --enable-video-opengl \
152 --enable-video-fbcon \
153 %{?_with_svga:--enable-video-svga} \
154 %{?_with_aalib:--enable-video-aalib} \
155 %{?_with_ggi:--enable-video-ggi} \
156 %ifnarch sparc sparc64
157 %{!?_without_alsa:--enable-alsa} \
159 %{!?_without_esound:--enable-esd} \
160 %{!?_without_arts:--enable-arts}
163 rm -rf $RPM_BUILD_ROOT
166 DESTDIR=$RPM_BUILD_ROOT \
167 m4datadir=%{_aclocaldir}
169 rm -rf docs/man3 docs/Makefile* docs/html/Makefile*
171 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
172 install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
174 gzip -9nf BUGS CREDITS README TODO WhatsNew
176 %post -p /sbin/ldconfig
177 %postun -p /sbin/ldconfig
180 rm -rf $RPM_BUILD_ROOT
183 %defattr(644,root,root,755)
184 %attr(755,root,root) %{_libdir}/lib*.so.*.*
187 %defattr(644,root,root,755)
188 %doc {BUGS,CREDITS,README,TODO,WhatsNew}.gz docs.html docs
189 %attr(755,root,root) %{_bindir}/sdl-config
190 %attr(755,root,root) %{_libdir}/lib*.so
191 %attr(755,root,root) %{_libdir}/lib*.la
192 %{_libdir}/libSDLmain.a
198 %{_examplesdir}/%{name}-%{version}
201 %defattr(644,root,root,755)