3 # bcond_off_alsa - without ALSA support
4 # bcond_on_svgalib - with svgalib support
5 # bcond_on_aalib - with aalib support
7 Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library
13 Group(de): X11/Libraries
14 Group(pl): X11/Biblioteki
15 Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
16 Patch0: SDL-svga.patch
17 URL: http://www.libsdl.org/
18 BuildRequires: esound-devel
19 BuildRequires: arts-devel
20 BuildRequires: gtk+-devel >= 1.2.1
21 BuildRequires: XFree86-devel
22 BuildRequires: OpenGL-devel
23 %ifnarch sparc sparc64
24 %{!?bcond_off_alsa:BuildRequires: alsa-lib-devel}
26 %{?bcond_on_svgalib:BuildRequires: svgalib-devel}
27 %{?bcond_on_aalib:BuildRequires: aalib-devel}
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define _prefix /usr/X11R6
31 %define _mandir %{_prefix}/man
34 SDL (Simple DirectMedia Layer) is a library that allows you portable,
35 low level access to a video framebuffer, audio output, mouse, and
36 keyboard. It can support both windowed and DGA modes of XFree86, and
37 it is designed to be portable - applications linked with SDL can also
38 be built on Win32 and BeOS.
41 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
42 przeno¶ny, niskopoziomowy dostep do bufora ramki video, wyj¶cia audio,
43 myszy oraz klawiatury, Moze obs³ugiwaæ zarówno okienkowy tryb XFree86
44 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
45 konsolidowane z SDL mo¿na równie¿ budowac w systemach Win32 i BeOS.
48 Summary: SDL - Header files
49 Summary(pl): SDL - Pliki nag³ówkowe
51 Group(de): X11/Libraries
52 Group(pl): X11/Biblioteki
53 Requires: %{name} = %{version}
58 %description -l pl devel
59 SDL - Pliki nag³ówkowe.
62 Summary: SDL - static libraries
63 Summary(pl): SDL - biblioteki statyczne
65 Group(de): X11/Libraries
66 Group(pl): X11/Biblioteki
67 Requires: %{name} = %{version}
70 SDL - static libraries.
72 %description -l pl static
73 SDL - biblioteki statyczne.
81 %ifnarch sparc sparc64
82 %{!?bcond_off_alsa:--enable-alsa} \
87 --enable-video-x11-dga \
88 --enable-video-x11-mtrr \
89 --enable-video-x11-dgamouse \
93 %{?bcond_on_svga:--enable-video-svga} \
94 %{?bcond_on_aalib:--enable-video-aalib}
97 rm -rf $RPM_BUILD_ROOT
100 DESTDIR=$RPM_BUILD_ROOT \
101 m4datadir=%{_aclocaldir}
103 gzip -9nf BUGS README WhatsNew
105 %post -p /sbin/ldconfig
106 %postun -p /sbin/ldconfig
109 rm -rf $RPM_BUILD_ROOT
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_libdir}/lib*.so.*.*
116 %defattr(644,root,root,755)
117 %doc *gz docs.html docs
118 %attr(755,root,root) %{_bindir}/sdl-config
119 %attr(755,root,root) %{_libdir}/lib*.so
120 %attr(755,root,root) %{_libdir}/lib*.la
121 %{_libdir}/libSDLmain.a
127 %defattr(644,root,root,755)