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 Patch4: %{name}-ac25x.patch
29 URL: http://www.libsdl.org/
30 BuildRequires: autoconf
31 BuildRequires: automake
32 %{!?_without_esound:BuildRequires: esound-devel}
33 %{!?_without_arts:BuildRequires: arts-devel}
34 BuildRequires: XFree86-devel >= 4.0.2
35 BuildRequires: OpenGL-devel
36 BuildRequires: perl-modules
40 %ifnarch sparc sparc64
41 %{!?_without_alsa:BuildRequires: alsa-lib-devel}
43 %{?_with_svgalib:BuildRequires: svgalib-devel}
44 %{?_with_aalib:BuildRequires: aalib-devel}
45 %{?_with_ggi:BuildRequires: libggi-devel}
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 %define _prefix /usr/X11R6
49 %define _mandir %{_prefix}/man
52 SDL (Simple DirectMedia Layer) is a library that allows you portable,
53 low level access to a video framebuffer, audio output, mouse, and
54 keyboard. It can support both windowed and DGA modes of XFree86, and
55 it is designed to be portable - applications linked with SDL can also
56 be built on Win32 and BeOS.
59 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
60 przeno¶ny, niskopoziomowy dostep do bufora ramki video, wyj¶cia audio,
61 myszy oraz klawiatury, Moze obs³ugiwaæ zarówno okienkowy tryb XFree86
62 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
63 konsolidowane z SDL mo¿na równie¿ budowac w systemach Win32 i BeOS.
66 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
67 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
69 Essa biblioteca é usada por alguns jogos.
72 Summary: SDL - Header files
73 Summary(pl): SDL - Pliki nag³ówkowe
74 Summary(pt_BR): Bibliotecas e arquivos de cabeçalho para aplicações SDL
75 Group: X11/Development/Libraries
76 Requires: %{name} = %{version}
77 %ifnarch sparc sparc64
78 %{!?_without_alsa:Requires: alsa-lib-devel}
80 %{!?_without_esound:Requires: esound-devel}
81 %{!?_without_arts:Requires: arts-devel}
82 Requires: XFree86-devel >= 4.0.2
87 %description devel -l pl
88 SDL - Pliki nag³ówkowe.
90 %description devel -l pt_BR
91 Esse pacote contém bibliotecas, arquivos de cabeçalho e outros
92 recursos para o desenvolvimento de aplicativos com SDL.
95 Summary: SDL - static libraries
96 Summary(pl): SDL - biblioteki statyczne
97 Summary(pt_BR): Biblioteca estática para desenvolvimento de aplicações com a SDL
98 Group: X11/Development/Libraries
99 Requires: %{name}-devel = %{version}
102 SDL - static libraries.
104 %description static -l pl
105 SDL - biblioteki statyczne.
107 %description static -l pt_BR
108 Biblioteca estática para desenvolvimento de aplicações com a SDL.
111 Summary: SDL - example programs
112 Summary(pl): SDL - programy przyk³adowe
113 Group: X11/Development/Libraries
114 Requires: %{name}-devel = %{version}
116 %description examples
117 SDL - example programs.
119 %description examples -l pl
120 SDL - przyk³adowe programy.
132 libtoolize --copy --force
136 cp -f src/hermes/Makefile.in Makefile.in.ok
137 automake -a -c --foreign
138 cp -f Makefile.in.ok src/hermes/Makefile.in
146 --enable-pthread-sem \
150 --enable-video-x11-dgamouse \
151 --enable-video-x11-vm \
152 --enable-video-x11-xv \
153 --enable-video-opengl \
154 --enable-video-fbcon \
155 %{?_with_svga:--enable-video-svga} \
156 %{?_with_aalib:--enable-video-aalib} \
157 %{?_with_ggi:--enable-video-ggi} \
158 %ifnarch sparc sparc64
159 %{!?_without_alsa:--enable-alsa} \
161 %{!?_without_esound:--enable-esd} \
162 %{!?_without_arts:--enable-arts}
165 rm -rf $RPM_BUILD_ROOT
168 DESTDIR=$RPM_BUILD_ROOT \
169 m4datadir=%{_aclocaldir}
171 rm -rf docs/man3 docs/Makefile* docs/html/Makefile*
173 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
174 install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
176 gzip -9nf BUGS CREDITS README TODO WhatsNew
178 %post -p /sbin/ldconfig
179 %postun -p /sbin/ldconfig
182 rm -rf $RPM_BUILD_ROOT
185 %defattr(644,root,root,755)
186 %attr(755,root,root) %{_libdir}/lib*.so.*.*
189 %defattr(644,root,root,755)
190 %doc {BUGS,CREDITS,README,TODO,WhatsNew}.gz docs.html docs
191 %attr(755,root,root) %{_bindir}/sdl-config
192 %attr(755,root,root) %{_libdir}/lib*.so
193 %attr(755,root,root) %{_libdir}/lib*.la
194 %{_libdir}/libSDLmain.a
200 %{_examplesdir}/%{name}-%{version}
203 %defattr(644,root,root,755)