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