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