]> git.pld-linux.org Git - packages/SDL.git/blame - SDL.spec
- raw version from TurboLinux (need by Doom and other games).
[packages/SDL.git] / SDL.spec
CommitLineData
5249f883 1%define version 0.8.8
2%define release 1TL
3Name: SDL
4Version: %{version}
5Release: %{release}
6Group: X11/Libraries
7Copyright: LGPL
8Source: SDL-0.8.8.tar.gz
9Source1: SDL-demos.tar.gz
10URL: http://www.devolution.com/~slouken/projects/SDL
11BuildRoot: /mnt/c/TEMP/SDL-root
12Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library
13
14%package devel
15Group: X11/Libraries
16Summary: SDL - Header files & static libraries
17
18%package extras
19Group: X11/Utilities
20Summary: SDL - Test programs and demos
21
22%description
23SDL (Simple DirectMedia Layer) is a library that allows you portable,
24low level access to a video framebuffer, audio output, mouse, and
25keyboard. It can support both windowed and DGA modes of XFree86, and
26it is designed to be portable - applications linked with SDL can also
27be built on Win32 and BeOS.
28
29%description devel
30SDL - Header files & static libraries
31
32%description extras
33SDL - Test programs and demos
34
35%prep
36rm -rf $RPM_BUILD_ROOT
37mkdir -p $RPM_BUILD_ROOT
38%setup -q
39tar -xvzf %{SOURCE1}
40chown -R 0.0 *
41make config <<EOF
42
43EOF
44%build
45make DEBUG="$RPM_OPT_FLAGS"
46cd test
47make
48cd ..
49cd SDL-demos
50for i in PTC aliens draw fire flxplay maclib mixer plasma scrap screenlib stars ttflib warp xflame; do (cd $i;make SDL=../../);done;
51cd ..
52%install
53mkdir -p $RPM_BUILD_ROOT/usr/bin/SDL
54mkdir -p $RPM_BUILD_ROOT/usr/lib
55mkdir -p $RPM_BUILD_ROOT/usr/include/SDL
56cp -a lib/* $RPM_BUILD_ROOT/usr/lib
57cp -a include/* $RPM_BUILD_ROOT/usr/include/SDL
58for 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;
59for 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;
60find $RPM_BUILD_ROOT/usr/bin/SDL -name "*.[hco]" | xargs rm -f
61
62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%post
66/sbin/ldconfig
67
68%postun
69/sbin/ldconfig
70
71%files
72%doc BUGS COPYING INSTALL README TODO WhatsNew docs docs.html
73/usr/lib/libSDLx11.so.0.8
74/usr/lib/libSDLx11.so.0.8.8
75
76%files devel
77/usr/lib/libSDL.a
78/usr/include/SDL
79
80%files extras
81/usr/bin/SDL
This page took 0.053454 seconds and 4 git commands to generate.