]>
Commit | Line | Data |
---|---|---|
cee13441 | 1 | Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library |
2 | Name: SDL | |
6b8cc907 | 3 | Version: 0.10.0 |
cee13441 | 4 | Release: 1 |
5 | Group: X11/Libraries | |
6 | Copyright: LGPL | |
7 | Source: http://www.devolution.com/~slouken/projects/SDL/SDL-0.9/src/%{name}-%{version}.tar.gz | |
c1a764ca | 8 | URL: http://www.devolution.com/~slouken/projects/SDL/ |
00dd326a | 9 | BuildRequires: XFree86-devel |
cee13441 | 10 | BuildRoot: /tmp/%{name}-%{version}-root |
5249f883 | 11 | |
12 | %description | |
cee13441 | 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. | |
17 | ||
18 | %package devel | |
b1002eee | 19 | Summary: SDL - Header files |
c1a764ca | 20 | Group: X11/Libraries |
21 | Requires: %{name} = %{version} | |
5249f883 | 22 | |
23 | %description devel | |
b1002eee | 24 | SDL - Header files. |
25 | ||
26 | %package static | |
b1002eee | 27 | Summary: SDL - static libraries |
c1a764ca | 28 | Group: X11/Libraries |
29 | Requires: %{name} = %{version} | |
b1002eee | 30 | |
31 | %description static | |
32 | SDL - static libraries. | |
5249f883 | 33 | |
5249f883 | 34 | %prep |
5249f883 | 35 | %setup -q |
b1002eee | 36 | %build |
5249f883 | 37 | make config <<EOF |
38 | ||
39 | EOF | |
c1a764ca | 40 | make DEBUG="$RPM_OPT_FLAGS -I/usr/X11R6/include" |
cee13441 | 41 | |
5249f883 | 42 | %install |
cee13441 | 43 | rm -rf $RPM_BUILD_ROOT |
c1a764ca | 44 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/SDL} |
45 | ||
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 | |
49 | ||
50 | strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* | |
5249f883 | 51 | |
6b8cc907 | 52 | gzip -9nf BUGS README TODO WhatsNew |
cee13441 | 53 | %post -p /sbin/ldconfig |
54 | %postun -p /sbin/ldconfig | |
55 | ||
5249f883 | 56 | %clean |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
5249f883 | 59 | %files |
cee13441 | 60 | %defattr(644,root,root,755) |
c1a764ca | 61 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
5249f883 | 62 | |
63 | %files devel | |
cee13441 | 64 | %defattr(644,root,root,755) |
6b8cc907 | 65 | %doc *gz docs.html docs |
c1a764ca | 66 | %attr(755,root,root) %{_libdir}/lib*.so |
9dac0b07 | 67 | %{_includedir}/SDL |
5249f883 | 68 | |
cee13441 | 69 | %files static |
70 | %defattr(644,root,root,755) | |
e7eb4f6f | 71 | %{_libdir}/lib*.a |