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