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