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