3 # _without_alsa - without ALSA support
4 # _without_esound - without esound support
5 # _without_arts - without arts support
6 # _with_svga - with svgalib support
7 # _with_aalib - with aalib support
8 # _with_ggi - with GGI support
11 %define _without_arts 1
14 Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library
15 Summary(pl): SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
21 Group(de): X11/Libraries
22 Group(es): X11/Bibliotecas
23 Group(pl): X11/Biblioteki
24 Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
25 Patch0: %{name}-byteorder.patch
26 URL: http://www.libsdl.org/
27 %{!?_without_esound:BuildRequires: esound-devel}
28 %{!?_without_arts:BuildRequires: arts-devel}
29 BuildRequires: gtk+-devel >= 1.2.1
30 BuildRequires: XFree86-devel >= 4.0.2
31 BuildRequires: OpenGL-devel
32 %ifnarch sparc sparc64
33 %{!?_without_alsa:BuildRequires: alsa-lib-devel}
35 %{?_with_svgalib:BuildRequires: svgalib-devel}
36 %{?_with_aalib:BuildRequires: aalib-devel}
37 %{?_with_ggi:BuildRequires: libggi-devel}
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 %define _prefix /usr/X11R6
41 %define _mandir %{_prefix}/man
44 SDL (Simple DirectMedia Layer) is a library that allows you portable,
45 low level access to a video framebuffer, audio output, mouse, and
46 keyboard. It can support both windowed and DGA modes of XFree86, and
47 it is designed to be portable - applications linked with SDL can also
48 be built on Win32 and BeOS.
51 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
52 przeno¶ny, niskopoziomowy dostep do bufora ramki video, wyj¶cia audio,
53 myszy oraz klawiatury, Moze obs³ugiwaæ zarówno okienkowy tryb XFree86
54 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
55 konsolidowane z SDL mo¿na równie¿ budowac w systemach Win32 i BeOS.
58 Summary: SDL - Header files
59 Summary(pl): SDL - Pliki nag³ówkowe
61 Group(de): X11/Libraries
62 Group(es): X11/Bibliotecas
63 Group(pl): X11/Biblioteki
64 Requires: %{name} = %{version}
69 %description -l pl devel
70 SDL - Pliki nag³ówkowe.
73 Summary: SDL - static libraries
74 Summary(pl): SDL - biblioteki statyczne
76 Group(de): X11/Libraries
77 Group(es): X11/Bibliotecas
78 Group(pl): X11/Biblioteki
79 Requires: %{name} = %{version}
82 SDL - static libraries.
84 %description -l pl static
85 SDL - biblioteki statyczne.
93 %ifnarch sparc sparc64
94 %{!?_without_alsa:--enable-alsa} \
98 --enable-pthread-sem \
100 --enable-video-x11-vm \
101 --enable-video-x11-dga \
102 --enable-video-x11-mtrr \
103 --enable-video-x11-dgamouse \
104 --enable-video-opengl \
105 %{!?_without_esound:--enable-esd} \
106 %{!?_without_arts:--enable-arts} \
107 %{?_with_svga:--enable-video-svga} \
108 %{?_with_aalib:--enable-video-aalib} \
109 %{?_with_ggi:--enable-video-ggi}
112 rm -rf $RPM_BUILD_ROOT
115 DESTDIR=$RPM_BUILD_ROOT \
116 m4datadir=%{_aclocaldir}
118 rm -rf docs/man3 docs/Makefile* docs/html/Makefile*
120 gzip -9nf BUGS CREDITS README TODO WhatsNew
122 %post -p /sbin/ldconfig
123 %postun -p /sbin/ldconfig
126 rm -rf $RPM_BUILD_ROOT
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_libdir}/lib*.so.*.*
133 %defattr(644,root,root,755)
134 %doc {BUGS,CREDITS,README,TODO,WhatsNew}.gz docs.html docs
135 %attr(755,root,root) %{_bindir}/sdl-config
136 %attr(755,root,root) %{_libdir}/lib*.so
137 %attr(755,root,root) %{_libdir}/lib*.la
138 %{_libdir}/libSDLmain.a
144 %defattr(644,root,root,755)