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
15 Group(de): X11/Libraries
16 Group(pl): X11/Biblioteki
17 Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
18 Patch0: SDL-svga.patch
19 URL: http://www.libsdl.org/
20 %{!?bcond_off_esound:BuildRequires: esound-devel}
21 %{!?bcond_off_arts:BuildRequires: arts-devel}
22 BuildRequires: gtk+-devel >= 1.2.1
23 BuildRequires: XFree86-devel
24 BuildRequires: OpenGL-devel
25 %ifnarch sparc sparc64
26 %{!?bcond_off_alsa:BuildRequires: alsa-lib-devel}
28 %{?bcond_on_svgalib:BuildRequires: svgalib-devel}
29 %{?bcond_on_aalib:BuildRequires: aalib-devel}
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 %define _prefix /usr/X11R6
33 %define _mandir %{_prefix}/man
36 SDL (Simple DirectMedia Layer) is a library that allows you portable,
37 low level access to a video framebuffer, audio output, mouse, and
38 keyboard. It can support both windowed and DGA modes of XFree86, and
39 it is designed to be portable - applications linked with SDL can also
40 be built on Win32 and BeOS.
43 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
44 przeno¶ny, niskopoziomowy dostep do bufora ramki video, wyj¶cia audio,
45 myszy oraz klawiatury, Moze obs³ugiwaæ zarówno okienkowy tryb XFree86
46 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
47 konsolidowane z SDL mo¿na równie¿ budowac w systemach Win32 i BeOS.
50 Summary: SDL - Header files
51 Summary(pl): SDL - Pliki nag³ówkowe
53 Group(de): X11/Libraries
54 Group(pl): X11/Biblioteki
55 Requires: %{name} = %{version}
60 %description -l pl devel
61 SDL - Pliki nag³ówkowe.
64 Summary: SDL - static libraries
65 Summary(pl): SDL - biblioteki statyczne
67 Group(de): X11/Libraries
68 Group(pl): X11/Biblioteki
69 Requires: %{name} = %{version}
72 SDL - static libraries.
74 %description -l pl static
75 SDL - biblioteki statyczne.
83 %ifnarch sparc sparc64
84 %{!?bcond_off_alsa:--enable-alsa} \
89 --enable-video-x11-dga \
90 --enable-video-x11-mtrr \
91 --enable-video-x11-dgamouse \
92 %{!?bcond_off_esound:--enable-esd} \
93 %{!?bcond_off_arts:--enable-arts} \
95 %{?bcond_on_svga:--enable-video-svga} \
96 %{?bcond_on_aalib:--enable-video-aalib}
99 rm -rf $RPM_BUILD_ROOT
102 DESTDIR=$RPM_BUILD_ROOT \
103 m4datadir=%{_aclocaldir}
105 gzip -9nf BUGS README WhatsNew
107 %post -p /sbin/ldconfig
108 %postun -p /sbin/ldconfig
111 rm -rf $RPM_BUILD_ROOT
114 %defattr(644,root,root,755)
115 %attr(755,root,root) %{_libdir}/lib*.so.*.*
118 %defattr(644,root,root,755)
119 %doc *gz docs.html docs
120 %attr(755,root,root) %{_bindir}/sdl-config
121 %attr(755,root,root) %{_libdir}/lib*.so
122 %attr(755,root,root) %{_libdir}/lib*.la
123 %{_libdir}/libSDLmain.a
129 %defattr(644,root,root,755)