]> git.pld-linux.org Git - packages/SDL.git/blame - SDL.spec
- update to 0.9.9,
[packages/SDL.git] / SDL.spec
CommitLineData
cee13441 1Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library
2Name: SDL
3Version: 0.9.9
4Release: 1
5Group: X11/Libraries
6Copyright: LGPL
7Source: http://www.devolution.com/~slouken/projects/SDL/SDL-0.9/src/%{name}-%{version}.tar.gz
8Source1: SDL-demos.tar.gz
9URL: http://www.devolution.com/~slouken/projects/SDL
10BuildRoot: /tmp/%{name}-%{version}-root
5249f883 11
12%description
cee13441 13SDL (Simple DirectMedia Layer) is a library that allows you portable, low
14level access to a video framebuffer, audio output, mouse, and keyboard. It
15can support both windowed and DGA modes of XFree86, and it is designed to be
16portable - applications linked with SDL can also be built on Win32 and BeOS.
17
18%package devel
19Group: X11/Libraries
20Summary: SDL - Header files & static libraries
5249f883 21
22%description devel
23SDL - Header files & static libraries
24
cee13441 25%package extras
26Group: X11/Utilities
27Summary: SDL - Test programs and demos
28
5249f883 29%description extras
30SDL - Test programs and demos
31
32%prep
5249f883 33%setup -q
34tar -xvzf %{SOURCE1}
35chown -R 0.0 *
36make config <<EOF
37
38EOF
cee13441 39
5249f883 40%build
41make DEBUG="$RPM_OPT_FLAGS"
42cd test
43make
44cd ..
45cd SDL-demos
46for i in PTC aliens draw fire flxplay maclib mixer plasma scrap screenlib stars ttflib warp xflame; do (cd $i;make SDL=../../);done;
47cd ..
cee13441 48
5249f883 49%install
cee13441 50rm -rf $RPM_BUILD_ROOT
5249f883 51mkdir -p $RPM_BUILD_ROOT/usr/bin/SDL
52mkdir -p $RPM_BUILD_ROOT/usr/lib
53mkdir -p $RPM_BUILD_ROOT/usr/include/SDL
54cp -a lib/* $RPM_BUILD_ROOT/usr/lib
55cp -a include/* $RPM_BUILD_ROOT/usr/include/SDL
56for 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;
57for 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;
58find $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
64rm -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
This page took 0.099557 seconds and 4 git commands to generate.