]> git.pld-linux.org Git - packages/SDL.git/blob - SDL.spec
- update to 0.9.9,
[packages/SDL.git] / SDL.spec
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
11
12 %description
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
21
22 %description devel
23 SDL - Header files & static libraries
24
25 %package extras
26 Group:          X11/Utilities
27 Summary:        SDL - Test programs and demos
28
29 %description extras
30 SDL - Test programs and demos
31
32 %prep
33 %setup -q
34 tar -xvzf %{SOURCE1}
35 chown -R 0.0 *
36 make config <<EOF
37
38 EOF
39
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 ..
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
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
60 %post   -p /sbin/ldconfig
61 %postun -p /sbin/ldconfig
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files
67 %defattr(644,root,root,755)
68 %doc BUGS COPYING INSTALL README TODO WhatsNew docs docs.html
69 /usr/lib/libSDLx11.so.*.*
70
71 %files devel
72 %defattr(644,root,root,755)
73 /usr/include/SDL
74
75 %files static
76 %defattr(644,root,root,755)
77 /usr/lib/lib*.a
78
79 %files extras
80 %defattr(644,root,root,755)
81 /usr/bin/SDL
This page took 0.072674 seconds and 4 git commands to generate.