]> git.pld-linux.org Git - packages/SDL.git/blob - SDL.spec
- next part modyfications (Status: NFY).
[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 URL:            http://www.devolution.com/~slouken/projects/SDL
9 BuildRoot:      /tmp/%{name}-%{version}-root
10
11 %description
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
19 Summary:        SDL - Header files
20
21 %description devel
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.
30
31 %package extras
32 Group:          X11/Utilities
33 Summary:        SDL - Test programs and demos
34
35 %description extras
36 SDL - Test programs and demos
37
38 %prep
39 %setup -q
40 %build
41 make config <<EOF
42
43 EOF
44
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 ..
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 mkdir -p $RPM_BUILD_ROOT/usr/bin/SDL
56 mkdir -p $RPM_BUILD_ROOT/usr/lib
57 mkdir -p $RPM_BUILD_ROOT/usr/include/SDL
58 cp -a lib/* $RPM_BUILD_ROOT/usr/lib
59 cp -a include/* $RPM_BUILD_ROOT/usr/include/SDL
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/usr/bin/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/usr/bin/sdl; done;
62 find $RPM_BUILD_ROOT/usr/bin/SDL -name "*.[hco]" | xargs rm -f
63
64 %post   -p /sbin/ldconfig
65 %postun -p /sbin/ldconfig
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %files
71 %defattr(644,root,root,755)
72 %doc BUGS COPYING INSTALL README TODO WhatsNew docs docs.html
73 /usr/lib/libSDLx11.so.*.*
74
75 %files devel
76 %defattr(644,root,root,755)
77 /usr/include/SDL
78
79 %files static
80 %defattr(644,root,root,755)
81 /usr/lib/lib*.a
82
83 %files extras
84 %defattr(644,root,root,755)
85 /usr/bin/SDL
This page took 0.039819 seconds and 4 git commands to generate.