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