3 # _without_alsa - without ALSA support
4 # _without_esound - without esound support
5 # _without_arts - without arts support
6 # _with_svgalib - with svgalib support
7 # _with_aalib - with aalib support
10 %define _without_arts 1
13 Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library
14 Summary(pl): SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
20 Group(de): X11/Libraries
21 Group(es): X11/Bibliotecas
22 Group(pl): X11/Biblioteki
23 Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
24 Patch0: %{name}-byteorder.patch
25 URL: http://www.libsdl.org/
26 %{!?_without_esound:BuildRequires: esound-devel}
27 %{!?_without_arts:BuildRequires: arts-devel}
28 BuildRequires: gtk+-devel >= 1.2.1
29 BuildRequires: XFree86-devel >= 4.0.2
30 BuildRequires: OpenGL-devel
31 %ifnarch sparc sparc64
32 %{!?_without_alsa:BuildRequires: alsa-lib-devel}
34 %{?_with_svgalib:BuildRequires: svgalib-devel}
35 %{?_with_aalib:BuildRequires: aalib-devel}
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 %define _prefix /usr/X11R6
39 %define _mandir %{_prefix}/man
42 SDL (Simple DirectMedia Layer) is a library that allows you portable,
43 low level access to a video framebuffer, audio output, mouse, and
44 keyboard. It can support both windowed and DGA modes of XFree86, and
45 it is designed to be portable - applications linked with SDL can also
46 be built on Win32 and BeOS.
49 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
50 przeno¶ny, niskopoziomowy dostep do bufora ramki video, wyj¶cia audio,
51 myszy oraz klawiatury, Moze obs³ugiwaæ zarówno okienkowy tryb XFree86
52 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
53 konsolidowane z SDL mo¿na równie¿ budowac w systemach Win32 i BeOS.
56 Summary: SDL - Header files
57 Summary(pl): SDL - Pliki nag³ówkowe
59 Group(de): X11/Libraries
60 Group(es): X11/Bibliotecas
61 Group(pl): X11/Biblioteki
62 Requires: %{name} = %{version}
67 %description -l pl devel
68 SDL - Pliki nag³ówkowe.
71 Summary: SDL - static libraries
72 Summary(pl): SDL - biblioteki statyczne
74 Group(de): X11/Libraries
75 Group(es): X11/Bibliotecas
76 Group(pl): X11/Biblioteki
77 Requires: %{name} = %{version}
80 SDL - static libraries.
82 %description -l pl static
83 SDL - biblioteki statyczne.
91 %ifnarch sparc sparc64
92 %{!?_without_alsa:--enable-alsa} \
96 --enable-pthread-sem \
98 --enable-video-x11-vm \
99 --enable-video-x11-dga \
100 --enable-video-x11-mtrr \
101 --enable-video-x11-dgamouse \
102 --enable-video-opengl \
103 %{!?_without_esound:--enable-esd} \
104 %{!?_without_arts:--enable-arts} \
105 %{?_with_svga:--enable-video-svga} \
106 %{?_with_aalib:--enable-video-aalib}
109 rm -rf $RPM_BUILD_ROOT
112 DESTDIR=$RPM_BUILD_ROOT \
113 m4datadir=%{_aclocaldir}
117 gzip -9nf BUGS README WhatsNew
119 %post -p /sbin/ldconfig
120 %postun -p /sbin/ldconfig
123 rm -rf $RPM_BUILD_ROOT
126 %defattr(644,root,root,755)
127 %attr(755,root,root) %{_libdir}/lib*.so.*.*
130 %defattr(644,root,root,755)
131 %doc *gz docs.html docs
132 %attr(755,root,root) %{_bindir}/sdl-config
133 %attr(755,root,root) %{_libdir}/lib*.so
134 %attr(755,root,root) %{_libdir}/lib*.la
135 %{_libdir}/libSDLmain.a
141 %defattr(644,root,root,755)