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 %ifnarch sparc sparc64
19 %{!?bcond_off_alsa:BuildRequires: alsa-lib-devel}
21 BuildRequires: esound-devel
22 BuildRequires: gtk+-devel >= 1.2.1
23 BuildRequires: XFree86-devel
24 BuildRequires: OpenGL-devel
25 %{?bcond_on_svgalib:BuildRequires: svgalib-devel}
26 %{?bcond_on_aalib:BuildRequires: aalib-devel}
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define _prefix /usr/X11R6
30 %define _mandir %{_prefix}/man
33 SDL (Simple DirectMedia Layer) is a library that allows you portable,
34 low level access to a video framebuffer, audio output, mouse, and
35 keyboard. It can support both windowed and DGA modes of XFree86, and
36 it is designed to be portable - applications linked with SDL can also
37 be built on Win32 and BeOS.
40 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
41 przeno¶ny, niskopoziomowy dostep do bufora ramki video, wyj¶cia audio,
42 myszy oraz klawiatury, Moze obs³ugiwaæ zarówno okienkowy tryb XFree86
43 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
44 konsolidowane z SDL mo¿na równie¿ budowac w systemach Win32 i BeOS.
47 Summary: SDL - Header files
48 Summary(pl): SDL - Pliki nag³ówkowe
50 Group(de): X11/Libraries
51 Group(pl): X11/Biblioteki
52 Requires: %{name} = %{version}
57 %description -l pl devel
58 SDL - Pliki nag³ówkowe.
61 Summary: SDL - static libraries
62 Summary(pl): SDL - biblioteki statyczne
64 Group(de): X11/Libraries
65 Group(pl): X11/Biblioteki
66 Requires: %{name} = %{version}
69 SDL - static libraries.
71 %description -l pl static
72 SDL - biblioteki statyczne.
80 %ifnarch sparc sparc64
81 %{!?bcond_off_alsa:--enable-alsa} \
86 --enable-video-x11-dga \
87 --enable-video-x11-mtrr \
88 --enable-video-x11-dgamouse \
90 %{?bcond_on_svga:--enable-video-svga} \
91 %{?bcond_on_aalib:--enable-video-aalib}
94 rm -rf $RPM_BUILD_ROOT
97 DESTDIR=$RPM_BUILD_ROOT \
98 m4datadir=%{_aclocaldir}
100 gzip -9nf BUGS README WhatsNew
102 %post -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
106 rm -rf $RPM_BUILD_ROOT
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/lib*.so.*.*
113 %defattr(644,root,root,755)
114 %doc *gz docs.html docs
115 %attr(755,root,root) %{_bindir}/sdl-config
116 %attr(755,root,root) %{_libdir}/lib*.so
117 %attr(755,root,root) %{_libdir}/lib*.la
118 %{_libdir}/libSDLmain.a
124 %defattr(644,root,root,755)