1 Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library
7 Source: http://www.devolution.com/~slouken/projects/SDL/SDL-0.10/src/%{name}-%{version}.tar.gz
8 URL: http://www.devolution.com/~slouken/projects/SDL/
9 BuildRequires: XFree86-devel
11 BuildRoot: /tmp/%{name}-%{version}-root
14 SDL (Simple DirectMedia Layer) is a library that allows you portable, low
15 level access to a video framebuffer, audio output, mouse, and keyboard. It
16 can support both windowed and DGA modes of XFree86, and it is designed to be
17 portable - applications linked with SDL can also be built on Win32 and BeOS.
20 Summary: SDL - Header files
22 Requires: %{name} = %{version}
28 Summary: SDL - static libraries
30 Requires: %{name} = %{version}
33 SDL - static libraries.
38 LDFLAGS="-s"; export LDFLAGS
43 --enable-video-x11-dga \
44 --enable-video-x11-mtrr \
49 rm -rf $RPM_BUILD_ROOT
51 make install DESTDIR=$RPM_BUILD_ROOT
53 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
55 gzip -9nf BUGS README TODO WhatsNew
57 %post -p /sbin/ldconfig
58 %postun -p /sbin/ldconfig
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
65 %attr(755,root,root) %{_libdir}/lib*.so.*.*
68 %defattr(644,root,root,755)
69 %doc *gz docs.html docs
70 %attr(755,root,root) %{_bindir}/sdl-config
71 %attr(755,root,root) %{_libdir}/lib*.so
72 %attr(755,root,root) %{_libdir}/lib*.la
77 %attr(644,root,root) %{_libdir}/lib*.a