3 # bcond_off_alsa - without ALSA support
4 # bcond_off_esound - without esound support
5 # bcond_off_arts - without arts support
6 # bcond_on_svgalib - with svgalib support
7 # bcond_on_aalib - with aalib support
9 Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library
10 Summary(pl): SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
16 Group(de): X11/Libraries
17 Group(pl): X11/Biblioteki
18 Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
19 Patch0: SDL-svga.patch
20 URL: http://www.libsdl.org/
21 %{!?bcond_off_esound:BuildRequires: esound-devel}
22 %{!?bcond_off_arts:BuildRequires: arts-devel}
23 BuildRequires: gtk+-devel >= 1.2.1
24 BuildRequires: XFree86-devel
25 BuildRequires: OpenGL-devel
26 %ifnarch sparc sparc64
27 %{!?bcond_off_alsa:BuildRequires: alsa-lib-devel}
29 %{?bcond_on_svgalib:BuildRequires: svgalib-devel}
30 %{?bcond_on_aalib:BuildRequires: aalib-devel}
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %define _prefix /usr/X11R6
34 %define _mandir %{_prefix}/man
37 SDL (Simple DirectMedia Layer) is a library that allows you portable,
38 low level access to a video framebuffer, audio output, mouse, and
39 keyboard. It can support both windowed and DGA modes of XFree86, and
40 it is designed to be portable - applications linked with SDL can also
41 be built on Win32 and BeOS.
44 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
45 przeno¶ny, niskopoziomowy dostep do bufora ramki video, wyj¶cia audio,
46 myszy oraz klawiatury, Moze obs³ugiwaæ zarówno okienkowy tryb XFree86
47 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
48 konsolidowane z SDL mo¿na równie¿ budowac w systemach Win32 i BeOS.
51 Summary: SDL - Header files
52 Summary(pl): SDL - Pliki nag³ówkowe
54 Group(de): X11/Libraries
55 Group(pl): X11/Biblioteki
56 Requires: %{name} = %{version}
61 %description -l pl devel
62 SDL - Pliki nag³ówkowe.
65 Summary: SDL - static libraries
66 Summary(pl): SDL - biblioteki statyczne
68 Group(de): X11/Libraries
69 Group(pl): X11/Biblioteki
70 Requires: %{name} = %{version}
73 SDL - static libraries.
75 %description -l pl static
76 SDL - biblioteki statyczne.
84 %ifnarch sparc sparc64
85 %{!?bcond_off_alsa:--enable-alsa} \
90 --enable-video-x11-dga \
91 --enable-video-x11-mtrr \
92 --enable-video-x11-dgamouse \
93 %{!?bcond_off_esound:--enable-esd} \
94 %{!?bcond_off_arts:--enable-arts} \
96 %{?bcond_on_svga:--enable-video-svga} \
97 %{?bcond_on_aalib:--enable-video-aalib}
100 rm -rf $RPM_BUILD_ROOT
103 DESTDIR=$RPM_BUILD_ROOT \
104 m4datadir=%{_aclocaldir}
108 gzip -9nf BUGS README WhatsNew
110 %post -p /sbin/ldconfig
111 %postun -p /sbin/ldconfig
114 rm -rf $RPM_BUILD_ROOT
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/lib*.so.*.*
121 %defattr(644,root,root,755)
122 %doc *gz docs.html docs
123 %attr(755,root,root) %{_bindir}/sdl-config
124 %attr(755,root,root) %{_libdir}/lib*.so
125 %attr(755,root,root) %{_libdir}/lib*.la
126 %{_libdir}/libSDLmain.a
132 %defattr(644,root,root,755)