1 Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library
7 Source: http://www.devolution.com/~slouken/SDL/release/%{name}-%{version}.tar.gz
8 URL: http://www.devolution.com/~slouken/SDL/
9 BuildRequires: XFree86-devel
10 BuildRequires: esound-devel
11 BuildRequires: gtk+-devel >= 1.2.1
12 BuildRoot: /tmp/%{name}-%{version}-root
15 SDL (Simple DirectMedia Layer) is a library that allows you portable, low
16 level access to a video framebuffer, audio output, mouse, and keyboard. It
17 can support both windowed and DGA modes of XFree86, and it is designed to be
18 portable - applications linked with SDL can also be built on Win32 and BeOS.
21 Summary: SDL - Header files
23 Requires: %{name} = %{version}
29 Summary: SDL - static libraries
31 Requires: %{name} = %{version}
34 SDL - static libraries.
39 LDFLAGS="-s"; export LDFLAGS
44 --enable-video-x11-dga \
45 --enable-video-x11-mtrr \
50 rm -rf $RPM_BUILD_ROOT
52 make install DESTDIR=$RPM_BUILD_ROOT
54 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
56 gzip -9nf BUGS README TODO WhatsNew
58 %post -p /sbin/ldconfig
59 %postun -p /sbin/ldconfig
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
66 %attr(755,root,root) %{_libdir}/lib*.so.*.*
69 %defattr(644,root,root,755)
70 %doc *gz docs.html docs
71 %attr(755,root,root) %{_bindir}/sdl-config
72 %attr(755,root,root) %{_libdir}/lib*.so
73 %attr(755,root,root) %{_libdir}/lib*.la
74 %{_libdir}/libSDLmain.a
79 %attr(644,root,root) %{_libdir}/lib*.a