]>
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 | |
8 | Source1: SDL-demos.tar.gz | |
9 | URL: http://www.devolution.com/~slouken/projects/SDL | |
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 | |
19 | Group: X11/Libraries | |
20 | Summary: SDL - Header files & static libraries | |
5249f883 | 21 | |
22 | %description devel | |
23 | SDL - Header files & static libraries | |
24 | ||
cee13441 | 25 | %package extras |
26 | Group: X11/Utilities | |
27 | Summary: SDL - Test programs and demos | |
28 | ||
5249f883 | 29 | %description extras |
30 | SDL - Test programs and demos | |
31 | ||
32 | %prep | |
5249f883 | 33 | %setup -q |
34 | tar -xvzf %{SOURCE1} | |
35 | chown -R 0.0 * | |
36 | make config <<EOF | |
37 | ||
38 | EOF | |
cee13441 | 39 | |
5249f883 | 40 | %build |
41 | make DEBUG="$RPM_OPT_FLAGS" | |
42 | cd test | |
43 | make | |
44 | cd .. | |
45 | cd SDL-demos | |
46 | for i in PTC aliens draw fire flxplay maclib mixer plasma scrap screenlib stars ttflib warp xflame; do (cd $i;make SDL=../../);done; | |
47 | cd .. | |
cee13441 | 48 | |
5249f883 | 49 | %install |
cee13441 | 50 | rm -rf $RPM_BUILD_ROOT |
5249f883 | 51 | mkdir -p $RPM_BUILD_ROOT/usr/bin/SDL |
52 | mkdir -p $RPM_BUILD_ROOT/usr/lib | |
53 | mkdir -p $RPM_BUILD_ROOT/usr/include/SDL | |
54 | cp -a lib/* $RPM_BUILD_ROOT/usr/lib | |
55 | cp -a include/* $RPM_BUILD_ROOT/usr/include/SDL | |
56 | 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/usr/bin/SDL; done; | |
57 | 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/usr/bin/sdl; done; | |
58 | find $RPM_BUILD_ROOT/usr/bin/SDL -name "*.[hco]" | xargs rm -f | |
59 | ||
cee13441 | 60 | %post -p /sbin/ldconfig |
61 | %postun -p /sbin/ldconfig | |
62 | ||
5249f883 | 63 | %clean |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
5249f883 | 66 | %files |
cee13441 | 67 | %defattr(644,root,root,755) |
5249f883 | 68 | %doc BUGS COPYING INSTALL README TODO WhatsNew docs docs.html |
cee13441 | 69 | /usr/lib/libSDLx11.so.*.* |
5249f883 | 70 | |
71 | %files devel | |
cee13441 | 72 | %defattr(644,root,root,755) |
5249f883 | 73 | /usr/include/SDL |
74 | ||
cee13441 | 75 | %files static |
76 | %defattr(644,root,root,755) | |
77 | /usr/lib/lib*.a | |
78 | ||
5249f883 | 79 | %files extras |
cee13441 | 80 | %defattr(644,root,root,755) |
5249f883 | 81 | /usr/bin/SDL |