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