]> git.pld-linux.org Git - packages/SDL.git/blame - SDL.spec
- s-/usr/bin-%{_bindir}-
[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
cee13441 8URL: http://www.devolution.com/~slouken/projects/SDL
9BuildRoot: /tmp/%{name}-%{version}-root
5249f883 10
11%description
cee13441 12SDL (Simple DirectMedia Layer) is a library that allows you portable, low
13level access to a video framebuffer, audio output, mouse, and keyboard. It
14can support both windowed and DGA modes of XFree86, and it is designed to be
15portable - applications linked with SDL can also be built on Win32 and BeOS.
16
17%package devel
18Group: X11/Libraries
b1002eee 19Summary: SDL - Header files
5249f883 20
21%description devel
b1002eee 22SDL - Header files.
23
24%package static
25Group: X11/Libraries
26Summary: SDL - static libraries
27
28%description static
29SDL - static libraries.
5249f883 30
cee13441 31%package extras
32Group: X11/Utilities
33Summary: SDL - Test programs and demos
34
5249f883 35%description extras
36SDL - Test programs and demos
37
38%prep
5249f883 39%setup -q
b1002eee 40%build
5249f883 41make config <<EOF
42
43EOF
cee13441 44
5249f883 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 ..
cee13441 52
5249f883 53%install
cee13441 54rm -rf $RPM_BUILD_ROOT
1277b4ee 55mkdir -p $RPM_BUILD_ROOT%{_bindir}/SDL
e7eb4f6f 56mkdir -p $RPM_BUILD_ROOT%{_libdir}
5249f883 57mkdir -p $RPM_BUILD_ROOT/usr/include/SDL
e7eb4f6f 58cp -a lib/* $RPM_BUILD_ROOT%{_libdir}
5249f883 59cp -a include/* $RPM_BUILD_ROOT/usr/include/SDL
1277b4ee 60for i in checkkeys graywin loopwave pixelformat testalpha testbitmap testhread testkeys testlock testtimer testtypes testver testwin testwm; do cp -a test/$i $RPM_BUILD_ROOT%{_bindir}/SDL; done;
61for 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%{_bindir}/sdl; done;
62find $RPM_BUILD_ROOT%{_bindir}/SDL -name "*.[hco]" | xargs rm -f
5249f883 63
cee13441 64%post -p /sbin/ldconfig
65%postun -p /sbin/ldconfig
66
5249f883 67%clean
68rm -rf $RPM_BUILD_ROOT
69
5249f883 70%files
cee13441 71%defattr(644,root,root,755)
5249f883 72%doc BUGS COPYING INSTALL README TODO WhatsNew docs docs.html
e7eb4f6f 73%{_libdir}/libSDLx11.so.*.*
5249f883 74
75%files devel
cee13441 76%defattr(644,root,root,755)
5249f883 77/usr/include/SDL
78
cee13441 79%files static
80%defattr(644,root,root,755)
e7eb4f6f 81%{_libdir}/lib*.a
cee13441 82
5249f883 83%files extras
cee13441 84%defattr(644,root,root,755)
1277b4ee 85%{_bindir}/SDL
This page took 0.048205 seconds and 4 git commands to generate.