]> git.pld-linux.org Git - packages/SDL.git/blob - SDL.spec
- updated to 1.1.2,
[packages/SDL.git] / SDL.spec
1 Summary:        SDL (Simple DirectMedia Layer) - Game/Multimedia Library
2 Name:           SDL
3 Version:        1.1.2
4 Release:        1
5 License:        LGPL
6 Group:          X11/Libraries
7 Group(pl):      X11/Biblioteki
8 Source0:        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:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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 %description -l pl
26 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c± przeno¶ny,
27 niskopoziomowy dostep do bufora ramki video, wyj¶cia audio, myszy oraz
28 klawiatury, Moze obs³ugiwaæ zarówno okienkowy tryb XFree86 jak i DGA.
29 Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje konsolidowane z SDL
30 mo¿na równie¿ budowac w systemach Win32 i BeOS.
31
32 %package devel
33 Summary:        SDL - Header files
34 Group:          X11/Libraries
35 Group(pl):      X11/Biblioteki
36 Requires:       %{name} = %{version}
37
38 %description devel
39 SDL - Header files.
40
41 %package static
42 Summary:        SDL - static libraries
43 Group:          X11/Libraries
44 Group(pl):      X11/Biblioteki
45 Requires:       %{name} = %{version}
46
47 %description static
48 SDL - static libraries.
49
50 %prep
51 %setup -q
52 %build
53 LDFLAGS="-s"; export LDFLAGS
54 %configure \
55         --enable-nasm \
56         --enable-pthreads \
57         --with-x \
58         --enable-video-x11-dga \
59         --enable-video-x11-mtrr \
60         --enable-esd \
61         --disable-video-svga
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65
66 make install \
67         DESTDIR=$RPM_BUILD_ROOT \
68         m4datadir=%{_aclocaldir}
69
70 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
71
72 gzip -9nf BUGS README WhatsNew
73
74 %post   -p /sbin/ldconfig
75 %postun -p /sbin/ldconfig
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %files
81 %defattr(644,root,root,755)
82 %attr(755,root,root) %{_libdir}/lib*.so.*.*
83
84 %files devel
85 %defattr(644,root,root,755)
86 %doc *gz docs.html docs
87 %attr(755,root,root) %{_bindir}/sdl-config
88 %attr(755,root,root) %{_libdir}/lib*.so
89 %attr(755,root,root) %{_libdir}/lib*.la
90 %{_libdir}/libSDLmain.a
91 %{_includedir}/SDL
92 %{_aclocaldir}/*
93
94 %files static
95 %defattr(644,root,root,755)
96 %attr(644,root,root) %{_libdir}/lib*.a
This page took 0.081277 seconds and 4 git commands to generate.