]> git.pld-linux.org Git - packages/SDL.git/blob - SDL.spec
- updated to 0.11.2,
[packages/SDL.git] / SDL.spec
1 Summary:        SDL (Simple DirectMedia Layer) - Game/Multimedia Library
2 Name:           SDL
3 Version:        0.11.2
4 Release:        1
5 Group:          X11/Libraries
6 Copyright:      LGPL
7 Source:         http://www.devolution.com/~slouken/projects/SDL/SDL-0.10/src/%{name}-%{version}.tar.gz
8 URL:            http://www.devolution.com/~slouken/projects/SDL/
9 BuildRequires:  XFree86-devel
10 BuildRequires:  esound
11 BuildRoot:      /tmp/%{name}-%{version}-root
12
13 %description
14 SDL (Simple DirectMedia Layer) is a library that allows you portable, low
15 level access to a video framebuffer, audio output, mouse, and keyboard. It
16 can support both windowed and DGA modes of XFree86, and it is designed to be
17 portable - applications linked with SDL can also be built on Win32 and BeOS.
18
19 %package devel
20 Summary:        SDL - Header files
21 Group:          X11/Libraries
22 Requires:       %{name} = %{version}
23
24 %description devel
25 SDL - Header files.
26
27 %package static
28 Summary:        SDL - static libraries
29 Group:          X11/Libraries
30 Requires:       %{name} = %{version}
31
32 %description static
33 SDL - static libraries.
34
35 %prep
36 %setup -q
37 %build
38 LDFLAGS="-s"; export LDFLAGS
39 %configure \
40         --enable-nasm \
41         --enable-pthreads \
42         --with-x \
43         --enable-video-x11-dga \
44         --enable-video-x11-mtrr \
45         --enable-esd \
46         --disable-video-svga
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 make install DESTDIR=$RPM_BUILD_ROOT
52
53 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
54
55 gzip -9nf BUGS README TODO WhatsNew
56
57 %post   -p /sbin/ldconfig
58 %postun -p /sbin/ldconfig
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(644,root,root,755)
65 %attr(755,root,root) %{_libdir}/lib*.so.*.*
66
67 %files devel
68 %defattr(644,root,root,755)
69 %doc *gz docs.html docs
70 %attr(755,root,root) %{_bindir}/sdl-config
71 %attr(755,root,root) %{_libdir}/lib*.so
72 %attr(755,root,root) %{_libdir}/lib*.la
73 %{_includedir}/SDL
74 %{_datadir}/aclocal/*
75
76 %files static
77 %attr(644,root,root) %{_libdir}/lib*.a
This page took 0.069364 seconds and 4 git commands to generate.