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(pl): SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
21 Group(de): X11/Libraries
22 Group(es): X11/Bibliotecas
23 Group(pl): X11/Biblioteki
24 Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
25 Patch0: %{name}-byteorder.patch
26 Patch1: %{name}-fixlibs.patch
27 URL: http://www.libsdl.org/
28 BuildRequires: autoconf
29 BuildRequires: automake
30 %{!?_without_esound:BuildRequires: esound-devel}
31 %{!?_without_arts:BuildRequires: arts-devel}
32 BuildRequires: gtk+-devel >= 1.2.1
33 BuildRequires: XFree86-devel >= 4.0.2
34 BuildRequires: OpenGL-devel
35 %ifnarch sparc sparc64
36 %{!?_without_alsa:BuildRequires: alsa-lib-devel}
38 %{?_with_svgalib:BuildRequires: svgalib-devel}
39 %{?_with_aalib:BuildRequires: aalib-devel}
40 %{?_with_ggi:BuildRequires: libggi-devel}
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 %define _prefix /usr/X11R6
44 %define _mandir %{_prefix}/man
47 SDL (Simple DirectMedia Layer) is a library that allows you portable,
48 low level access to a video framebuffer, audio output, mouse, and
49 keyboard. It can support both windowed and DGA modes of XFree86, and
50 it is designed to be portable - applications linked with SDL can also
51 be built on Win32 and BeOS.
54 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
55 przeno¶ny, niskopoziomowy dostep do bufora ramki video, wyj¶cia audio,
56 myszy oraz klawiatury, Moze obs³ugiwaæ zarówno okienkowy tryb XFree86
57 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
58 konsolidowane z SDL mo¿na równie¿ budowac w systemach Win32 i BeOS.
61 Summary: SDL - Header files
62 Summary(pl): SDL - Pliki nag³ówkowe
64 Group(de): X11/Libraries
65 Group(es): X11/Bibliotecas
66 Group(pl): X11/Biblioteki
67 Requires: %{name} = %{version}
72 %description -l pl devel
73 SDL - Pliki nag³ówkowe.
76 Summary: SDL - static libraries
77 Summary(pl): SDL - biblioteki statyczne
79 Group(de): X11/Libraries
80 Group(es): X11/Bibliotecas
81 Group(pl): X11/Biblioteki
82 Requires: %{name} = %{version}
85 SDL - static libraries.
87 %description -l pl static
88 SDL - biblioteki statyczne.
100 %ifnarch sparc sparc64
101 %{!?_without_alsa:--enable-alsa} \
105 --enable-pthread-sem \
107 --enable-video-x11-vm \
108 --enable-video-x11-dga \
109 --enable-video-x11-mtrr \
110 --enable-video-x11-dgamouse \
111 --enable-video-opengl \
112 %{!?_without_esound:--enable-esd} \
113 %{!?_without_arts:--enable-arts} \
114 %{?_with_svga:--enable-video-svga} \
115 %{?_with_aalib:--enable-video-aalib} \
116 %{?_with_ggi:--enable-video-ggi}
119 rm -rf $RPM_BUILD_ROOT
122 DESTDIR=$RPM_BUILD_ROOT \
123 m4datadir=%{_aclocaldir}
125 rm -rf docs/man3 docs/Makefile* docs/html/Makefile*
127 gzip -9nf BUGS CREDITS README TODO WhatsNew
129 %post -p /sbin/ldconfig
130 %postun -p /sbin/ldconfig
133 rm -rf $RPM_BUILD_ROOT
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_libdir}/lib*.so.*.*
140 %defattr(644,root,root,755)
141 %doc {BUGS,CREDITS,README,TODO,WhatsNew}.gz docs.html docs
142 %attr(755,root,root) %{_bindir}/sdl-config
143 %attr(755,root,root) %{_libdir}/lib*.so
144 %attr(755,root,root) %{_libdir}/lib*.la
145 %{_libdir}/libSDLmain.a
151 %defattr(644,root,root,755)