1 Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library
7 Source: http://www.devolution.com/~slouken/projects/SDL/SDL-0.9/src/%{name}-%{version}.tar.gz
8 URL: http://www.devolution.com/~slouken/projects/SDL/
9 BuildRequires: XFree86-devel
10 BuildRoot: /tmp/%{name}-%{version}-root
13 SDL (Simple DirectMedia Layer) is a library that allows you portable, low
14 level access to a video framebuffer, audio output, mouse, and keyboard. It
15 can support both windowed and DGA modes of XFree86, and it is designed to be
16 portable - applications linked with SDL can also be built on Win32 and BeOS.
19 Summary: SDL - Header files
21 Requires: %{name} = %{version}
27 Summary: SDL - static libraries
29 Requires: %{name} = %{version}
32 SDL - static libraries.
40 make DEBUG="$RPM_OPT_FLAGS -I/usr/X11R6/include"
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/SDL}
46 install lib/lib{*.a,*.so.*.*.*} $RPM_BUILD_ROOT%{_libdir}
47 ln -sf libSDLx11.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libSDLx11.so
48 install include/* $RPM_BUILD_ROOT%{_includedir}/SDL
50 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
52 gzip -9nf BUGS README TODO WhatsNew
53 %post -p /sbin/ldconfig
54 %postun -p /sbin/ldconfig
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %attr(755,root,root) %{_libdir}/lib*.so.*.*
64 %defattr(644,root,root,755)
65 %doc *gz docs.html docs
66 %attr(755,root,root) %{_libdir}/lib*.so
70 %defattr(644,root,root,755)