]> git.pld-linux.org Git - packages/SDL.git/blob - SDL.spec
- explicitly disable DirectFB (doesn't even build with current version)
[packages/SDL.git] / SDL.spec
1 #
2 # Conditional build:
3 # _with_aalib - with aalib support
4 # _with_ggi - with GGI support
5 # _with_nas - with NAS audio support
6 # _with_svga - with svgalib support
7 #
8 # _without_alsa - without ALSA support
9 # _without_arts - without arts support
10 # _without_esound - without esound support
11 #
12 %ifarch alpha
13 %define _without_arts 1
14 %endif
15
16 Summary:        SDL (Simple DirectMedia Layer) - Game/Multimedia Library
17 Summary(es):    Simple DirectMedia Layer
18 Summary(pl):    SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
19 Summary(pt_BR): Simple DirectMedia Layer
20 Summary(ru):    Simple DirectMedia Layer
21 Summary(uk):    Simple DirectMedia Layer
22 Summary(zh_CN): SDL (Simple DirectMedia Layer) Generic APIs - ÓÎÏ·/¶àýÌå¿â
23 Name:           SDL
24 Version:        1.2.5
25 Release:        3
26 License:        LGPL
27 Group:          X11/Libraries
28 Source0:        http://www.libsdl.org/release/%{name}-%{version}.tar.gz
29 Patch0:         %{name}-byteorder.patch
30 Patch1:         %{name}-fixlibs.patch
31 Patch2:         %{name}-amfix.patch
32 Patch3:         %{name}-lpthread.patch
33 Patch4:         %{name}-ac25x.patch
34 Patch5:         %{name}-no_rpath_in_sdl-config.patch
35 Patch6:         %{name}-noobjc.patch
36 URL:            http://www.libsdl.org/
37 BuildRequires:  OpenGL-devel
38 BuildRequires:  XFree86-devel >= 4.0.2
39 %{?_with_aalib:BuildRequires:   aalib-devel}
40 %ifnarch sparc sparc64
41 %{!?_without_alsa:BuildRequires:        alsa-lib-devel}
42 %endif
43 %{!?_without_arts:BuildRequires:        arts-devel >= 1.1}
44 BuildRequires:  autoconf
45 BuildRequires:  automake
46 %{!?_without_esound:BuildRequires:      esound-devel}
47 %{?_with_ggi:BuildRequires:     libggi-devel}
48 BuildRequires:  libtool
49 %{?_with_nas:BuildRequires:     nas-devel}
50 %ifarch %{ix86}
51 BuildRequires:  nasm
52 %endif
53 BuildRequires:  perl-modules
54 %{?_with_svgalib:BuildRequires: svgalib-devel}
55 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56
57 %description
58 SDL (Simple DirectMedia Layer) is a library that allows you portable,
59 low level access to a video framebuffer, audio output, mouse, and
60 keyboard. It can support both windowed and DGA modes of XFree86, and
61 it is designed to be portable - applications linked with SDL can also
62 be built on Win32 and BeOS.
63
64 %description -l pl
65 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
66 przeno¶ny, niskopoziomowy dostêp do bufora ramki video, wyj¶cia audio,
67 myszy oraz klawiatury. Mo¿e obs³ugiwaæ zarówno okienkowy tryb XFree86
68 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
69 konsolidowane z SDL mo¿na równie¿ budowaæ w systemach Win32 i BeOS.
70
71 %description -l pt_BR
72 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
73 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
74
75 Essa biblioteca é usada por alguns jogos.
76
77 %package devel
78 Summary:        SDL - Header files
79 Summary(pl):    SDL - Pliki nag³ówkowe
80 Summary(pt_BR): Bibliotecas e arquivos de cabeçalho para aplicações SDL
81 Summary(ru):    æÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ SDL
82 Summary(uk):    æÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL
83 Summary(zh_CN): SDL (Simple DirectMedia Layer) ¿ª·¢¿â
84 Group:          X11/Development/Libraries
85 Requires:       %{name} = %{version}
86 Requires:       XFree86-devel >= 4.0.2
87 %ifnarch sparc sparc64
88 %{!?_without_alsa:Requires:     alsa-lib-devel}
89 %endif
90 %{!?_without_arts:Requires:     arts-devel}
91 %{!?_without_esound:Requires:   esound-devel}
92 %{?_with_nas:Requires:  nas-devel}
93
94 %description devel
95 SDL - Header files.
96
97 %description devel -l pl
98 SDL - Pliki nag³ówkowe.
99
100 %description devel -l pt_BR
101 Esse pacote contém bibliotecas, arquivos de cabeçalho e outros
102 recursos para o desenvolvimento de aplicativos com SDL.
103
104 %description devel -l ru
105 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
106 ÉÓÐÏÌØÚÕÀÝÉÈ SDL.
107
108 %description devel -l uk
109 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÆÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
110 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL.
111
112 %package static
113 Summary:        SDL - static libraries
114 Summary(pl):    SDL - biblioteki statyczne
115 Summary(pt_BR): Biblioteca estática para desenvolvimento de aplicações com a SDL
116 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ SDL
117 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ SDL
118 Group:          X11/Development/Libraries
119 Requires:       %{name}-devel = %{version}
120
121 %description static
122 SDL - static libraries.
123
124 %description static -l pl
125 SDL - biblioteki statyczne.
126
127 %description static -l pt_BR
128 Biblioteca estática para desenvolvimento de aplicações com a SDL.
129
130 %description static -l ru
131 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
132 ÉÓÐÏÌØÚÕÀÝÉÈ SDL.
133
134 %description static -l uk
135 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÓÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
136 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL.
137
138 %package examples
139 Summary:        SDL - example programs
140 Summary(pl):    SDL - programy przyk³adowe
141 Group:          X11/Development/Libraries
142 Requires:       %{name}-devel = %{version}
143
144 %description examples
145 SDL - example programs.
146
147 %description examples -l pl
148 SDL - przyk³adowe programy.
149
150 %prep
151 %setup -q
152 %patch0 -p1
153 %patch1 -p1
154 %patch2 -p1
155 %patch3 -p1
156 %patch4 -p1
157 %patch5 -p1
158 %patch6 -p1
159
160 %build
161 rm -f missing libtool
162 %{__libtoolize}
163 %{__aclocal}
164 %{__automake}
165 %{__autoconf}
166 SED=sed ; export SED
167 %configure \
168 %ifarch %{ix86}
169         --enable-nasm \
170 %else
171         --disable-nasm \
172 %endif
173         --enable-pthreads \
174         --enable-pthread-sem \
175         --with-x \
176         --enable-dga \
177         --enable-video-dga \
178         --disable-video-directfb \
179         --enable-video-x11-dgamouse \
180         --enable-video-x11-vm \
181         --enable-video-x11-xv \
182         --enable-video-opengl \
183         --enable-video-fbcon \
184         %{?_with_aalib:--enable-video-aalib} \
185         %{?_with_ggi:--enable-video-ggi} \
186         %{!?_with_nas:--disable-nas} \
187         %{?_with_svga:--enable-video-svga} \
188 %ifnarch sparc sparc64
189         %{!?_without_alsa:--enable-alsa} \
190 %endif
191         %{!?_without_esound:--enable-esd} \
192         %{!?_without_arts:--enable-arts}
193
194 %{__make}
195
196 %install
197 rm -rf $RPM_BUILD_ROOT
198 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
199
200 SED=sed ; export SED
201 %{__make} install \
202         DESTDIR=$RPM_BUILD_ROOT \
203         m4datadir=%{_aclocaldir}
204
205 install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
206
207 rm -rf docs/man3 docs/Makefile* docs/html/Makefile*
208
209 %clean
210 rm -rf $RPM_BUILD_ROOT
211
212 %post   -p /sbin/ldconfig
213 %postun -p /sbin/ldconfig
214
215 %files
216 %defattr(644,root,root,755)
217 %attr(755,root,root) %{_libdir}/lib*.so.*.*
218
219 %files devel
220 %defattr(644,root,root,755)
221 %doc BUGS CREDITS README TODO WhatsNew docs.html docs
222 %attr(755,root,root) %{_bindir}/sdl-config
223 %attr(755,root,root) %{_libdir}/lib*.so
224 %{_libdir}/lib*.la
225 %{_libdir}/libSDLmain.a
226 %{_includedir}/SDL
227 %{_aclocaldir}/*
228 %{_mandir}/man3/*
229
230 %files examples
231 %defattr(644,root,root,755)
232 %{_examplesdir}/%{name}-%{version}
233
234 %files static
235 %defattr(644,root,root,755)
236 %{_libdir}/libSDL.a
This page took 0.062819 seconds and 4 git commands to generate.