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 Group(de): X11/Libraries
24 Group(es): X11/Bibliotecas
25 Group(fr): X11/Librairies
26 Group(pl): X11/Biblioteki
27 Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
28 Patch0: %{name}-byteorder.patch
29 Patch1: %{name}-fixlibs.patch
30 URL: http://www.libsdl.org/
31 BuildRequires: autoconf
32 BuildRequires: automake
33 %{!?_without_esound:BuildRequires: esound-devel}
34 %{!?_without_arts:BuildRequires: arts-devel}
35 BuildRequires: gtk+-devel >= 1.2.1
36 BuildRequires: XFree86-devel >= 4.0.2
37 BuildRequires: OpenGL-devel
38 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 baixo
66 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
75 Group(de): X11/Libraries
76 Group(es): X11/Bibliotecas
77 Group(fr): X11/Librairies
78 Group(pl): X11/Biblioteki
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}
89 %description -l pl devel
90 SDL - Pliki nag³ówkowe.
92 %description -l pt_BR devel
93 Esse pacote contém bibliotecas, arquivos de cabeçalho e outros recursos para o
94 desenvolvimento de aplicativos com SDL.
97 Summary: SDL - static libraries
98 Summary(pl): SDL - biblioteki statyczne
99 Summary(pt_BR): Biblioteca estática para desenvolvimento de aplicações com a SDL
101 Group(de): X11/Libraries
102 Group(es): X11/Bibliotecas
103 Group(fr): X11/Librairies
104 Group(pl): X11/Biblioteki
105 Requires: %{name}-devel = %{version}
108 SDL - static libraries.
110 %description -l pl static
111 SDL - biblioteki statyczne.
113 %description -l pt_BR static
114 Biblioteca estática para desenvolvimento de aplicações com a SDL.
126 %ifnarch sparc sparc64
127 %{!?_without_alsa:--enable-alsa} \
131 --enable-pthread-sem \
133 --enable-video-x11-vm \
134 --enable-video-x11-dga \
135 --enable-video-x11-mtrr \
136 --enable-video-x11-dgamouse \
137 --enable-video-opengl \
138 %{!?_without_esound:--enable-esd} \
139 %{!?_without_arts:--enable-arts} \
140 %{?_with_svga:--enable-video-svga} \
141 %{?_with_aalib:--enable-video-aalib} \
142 %{?_with_ggi:--enable-video-ggi}
145 rm -rf $RPM_BUILD_ROOT
148 DESTDIR=$RPM_BUILD_ROOT \
149 m4datadir=%{_aclocaldir}
151 rm -rf docs/man3 docs/Makefile* docs/html/Makefile*
153 gzip -9nf BUGS CREDITS README TODO WhatsNew
155 %post -p /sbin/ldconfig
156 %postun -p /sbin/ldconfig
159 rm -rf $RPM_BUILD_ROOT
162 %defattr(644,root,root,755)
163 %attr(755,root,root) %{_libdir}/lib*.so.*.*
166 %defattr(644,root,root,755)
167 %doc {BUGS,CREDITS,README,TODO,WhatsNew}.gz docs.html docs
168 %attr(755,root,root) %{_bindir}/sdl-config
169 %attr(755,root,root) %{_libdir}/lib*.so
170 %attr(755,root,root) %{_libdir}/lib*.la
171 %{_libdir}/libSDLmain.a
177 %defattr(644,root,root,755)