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