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