]>
Commit | Line | Data |
---|---|---|
cee13441 | 1 | Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library |
2 | Name: SDL | |
3 | Version: 0.9.9 | |
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 | |
cee13441 | 8 | URL: http://www.devolution.com/~slouken/projects/SDL |
9 | BuildRoot: /tmp/%{name}-%{version}-root | |
5249f883 | 10 | |
11 | %description | |
cee13441 | 12 | SDL (Simple DirectMedia Layer) is a library that allows you portable, low |
13 | level access to a video framebuffer, audio output, mouse, and keyboard. It | |
14 | can support both windowed and DGA modes of XFree86, and it is designed to be | |
15 | portable - applications linked with SDL can also be built on Win32 and BeOS. | |
16 | ||
17 | %package devel | |
18 | Group: X11/Libraries | |
b1002eee | 19 | Summary: SDL - Header files |
5249f883 | 20 | |
21 | %description devel | |
b1002eee | 22 | SDL - Header files. |
23 | ||
24 | %package static | |
25 | Group: X11/Libraries | |
26 | Summary: SDL - static libraries | |
27 | ||
28 | %description static | |
29 | SDL - static libraries. | |
5249f883 | 30 | |
cee13441 | 31 | %package extras |
32 | Group: X11/Utilities | |
33 | Summary: SDL - Test programs and demos | |
34 | ||
5249f883 | 35 | %description extras |
36 | SDL - Test programs and demos | |
37 | ||
38 | %prep | |
5249f883 | 39 | %setup -q |
b1002eee | 40 | %build |
5249f883 | 41 | make config <<EOF |
42 | ||
43 | EOF | |
cee13441 | 44 | |
5249f883 | 45 | make DEBUG="$RPM_OPT_FLAGS" |
46 | cd test | |
47 | make | |
48 | cd .. | |
49 | cd SDL-demos | |
50 | for i in PTC aliens draw fire flxplay maclib mixer plasma scrap screenlib stars ttflib warp xflame; do (cd $i;make SDL=../../);done; | |
51 | cd .. | |
cee13441 | 52 | |
5249f883 | 53 | %install |
cee13441 | 54 | rm -rf $RPM_BUILD_ROOT |
1277b4ee | 55 | mkdir -p $RPM_BUILD_ROOT%{_bindir}/SDL |
e7eb4f6f | 56 | mkdir -p $RPM_BUILD_ROOT%{_libdir} |
5249f883 | 57 | mkdir -p $RPM_BUILD_ROOT/usr/include/SDL |
e7eb4f6f | 58 | cp -a lib/* $RPM_BUILD_ROOT%{_libdir} |
5249f883 | 59 | cp -a include/* $RPM_BUILD_ROOT/usr/include/SDL |
1277b4ee | 60 | for i in checkkeys graywin loopwave pixelformat testalpha testbitmap testhread testkeys testlock testtimer testtypes testver testwin testwm; do cp -a test/$i $RPM_BUILD_ROOT%{_bindir}/SDL; done; |
61 | for i in PTC aliens draw fire flxplay maclib mixer netlib plasma scrap screenlib stars ttflib warp xflame; do cp -a SDL-demos/$i $RPM_BUILD_ROOT%{_bindir}/sdl; done; | |
62 | find $RPM_BUILD_ROOT%{_bindir}/SDL -name "*.[hco]" | xargs rm -f | |
5249f883 | 63 | |
cee13441 | 64 | %post -p /sbin/ldconfig |
65 | %postun -p /sbin/ldconfig | |
66 | ||
5249f883 | 67 | %clean |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
5249f883 | 70 | %files |
cee13441 | 71 | %defattr(644,root,root,755) |
5249f883 | 72 | %doc BUGS COPYING INSTALL README TODO WhatsNew docs docs.html |
e7eb4f6f | 73 | %{_libdir}/libSDLx11.so.*.* |
5249f883 | 74 | |
75 | %files devel | |
cee13441 | 76 | %defattr(644,root,root,755) |
5249f883 | 77 | /usr/include/SDL |
78 | ||
cee13441 | 79 | %files static |
80 | %defattr(644,root,root,755) | |
e7eb4f6f | 81 | %{_libdir}/lib*.a |
cee13441 | 82 | |
5249f883 | 83 | %files extras |
cee13441 | 84 | %defattr(644,root,root,755) |
1277b4ee | 85 | %{_bindir}/SDL |