]> git.pld-linux.org Git - packages/SDL.git/blob - SDL.spec
- updated to 0.10.0,
[packages/SDL.git] / SDL.spec
1 Summary:        SDL (Simple DirectMedia Layer) - Game/Multimedia Library
2 Name:           SDL
3 Version:        0.10.0
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 BuildRequires:  XFree86-devel
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 Summary:        SDL - Header files
20 Group:          X11/Libraries
21 Requires:       %{name} = %{version}
22
23 %description devel
24 SDL - Header files.
25
26 %package static
27 Summary:        SDL - static libraries
28 Group:          X11/Libraries
29 Requires:       %{name} = %{version}
30
31 %description static
32 SDL - static libraries.
33
34 %prep
35 %setup -q
36 %build
37 make config <<EOF
38
39 EOF
40 make DEBUG="$RPM_OPT_FLAGS -I/usr/X11R6/include"
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/SDL}
45
46 install lib/lib{*.a,*.so.*.*.*} $RPM_BUILD_ROOT%{_libdir}
47 ln -sf libSDLx11.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libSDLx11.so
48 install include/* $RPM_BUILD_ROOT%{_includedir}/SDL
49
50 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
51
52 gzip -9nf BUGS README TODO WhatsNew
53 %post   -p /sbin/ldconfig
54 %postun -p /sbin/ldconfig
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %attr(755,root,root) %{_libdir}/lib*.so.*.*
62
63 %files devel
64 %defattr(644,root,root,755)
65 %doc *gz docs.html docs
66 %attr(755,root,root) %{_libdir}/lib*.so
67 %{_includedir}/SDL
68
69 %files static
70 %defattr(644,root,root,755)
71 %{_libdir}/lib*.a
This page took 0.038319 seconds and 4 git commands to generate.