3 # _without_alsa - without ALSA support
4 # _without_esound - without esound support
5 # _without_arts - without arts support
6 # _with_svgalib - with svgalib support
7 # _with_aalib - with aalib support
10 %define _without_arts 1
13 Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library
14 Summary(pl): SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
20 Group(de): X11/Libraries
21 Group(es): X11/Bibliotecas
22 Group(pl): X11/Biblioteki
23 Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
24 Patch0: %{name}-svga.patch
25 Patch1: %{name}-byteorder.patch
26 URL: http://www.libsdl.org/
27 %{!?_without_esound:BuildRequires: esound-devel}
28 %{!?_without_arts:BuildRequires: arts-devel}
29 BuildRequires: gtk+-devel >= 1.2.1
30 BuildRequires: XFree86-devel >= 4.0.2
31 BuildRequires: OpenGL-devel
32 %ifnarch sparc sparc64
33 %{!?_without_alsa:BuildRequires: alsa-lib-devel}
35 %{?_with_svgalib:BuildRequires: svgalib-devel}
36 %{?_with_aalib:BuildRequires: aalib-devel}
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 %define _prefix /usr/X11R6
40 %define _mandir %{_prefix}/man
43 SDL (Simple DirectMedia Layer) is a library that allows you portable,
44 low level access to a video framebuffer, audio output, mouse, and
45 keyboard. It can support both windowed and DGA modes of XFree86, and
46 it is designed to be portable - applications linked with SDL can also
47 be built on Win32 and BeOS.
50 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
51 przeno¶ny, niskopoziomowy dostep do bufora ramki video, wyj¶cia audio,
52 myszy oraz klawiatury, Moze obs³ugiwaæ zarówno okienkowy tryb XFree86
53 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
54 konsolidowane z SDL mo¿na równie¿ budowac w systemach Win32 i BeOS.
57 Summary: SDL - Header files
58 Summary(pl): SDL - Pliki nag³ówkowe
60 Group(de): X11/Libraries
61 Group(es): X11/Bibliotecas
62 Group(pl): X11/Biblioteki
63 Requires: %{name} = %{version}
68 %description -l pl devel
69 SDL - Pliki nag³ówkowe.
72 Summary: SDL - static libraries
73 Summary(pl): SDL - biblioteki statyczne
75 Group(de): X11/Libraries
76 Group(es): X11/Bibliotecas
77 Group(pl): X11/Biblioteki
78 Requires: %{name} = %{version}
81 SDL - static libraries.
83 %description -l pl static
84 SDL - biblioteki statyczne.
93 %ifnarch sparc sparc64
94 %{!?_without_alsa:--enable-alsa} \
98 --enable-pthread-sem \
100 --enable-video-x11-vm \
101 --enable-video-x11-dga \
102 --enable-video-x11-mtrr \
103 --enable-video-x11-dgamouse \
104 --enable-video-opengl \
105 %{!?_without_esound:--enable-esd} \
106 %{!?_without_arts:--enable-arts} \
107 %{?_with_svga:--enable-video-svga} \
108 %{?_with_aalib:--enable-video-aalib}
111 rm -rf $RPM_BUILD_ROOT
114 DESTDIR=$RPM_BUILD_ROOT \
115 m4datadir=%{_aclocaldir}
119 gzip -9nf BUGS README WhatsNew
121 %post -p /sbin/ldconfig
122 %postun -p /sbin/ldconfig
125 rm -rf $RPM_BUILD_ROOT
128 %defattr(644,root,root,755)
129 %attr(755,root,root) %{_libdir}/lib*.so.*.*
132 %defattr(644,root,root,755)
133 %doc *gz docs.html docs
134 %attr(755,root,root) %{_bindir}/sdl-config
135 %attr(755,root,root) %{_libdir}/lib*.so
136 %attr(755,root,root) %{_libdir}/lib*.la
137 %{_libdir}/libSDLmain.a
143 %defattr(644,root,root,755)