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