]> git.pld-linux.org Git - packages/SDL.git/blob - SDL.spec
- 1.2.6
[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.6
25 Release:        2
26 License:        LGPL
27 Group:          X11/Libraries
28 Source0:        http://www.libsdl.org/release/%{name}-%{version}.tar.gz
29 # Source0-md5:  9011f147f23ec535515291d0c9c6904c
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}-am17.patch
38 Patch8:         %{name}-lt15.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 >= 2:1.4d
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 # get COPY_ARCH_SRC, remove the rest
166 head -n 16 acinclude.m4 > acinclude.tmp
167 mv -f acinclude.tmp acinclude.m4
168
169 find . -type d -name CVS -print | xargs rm -rf {} \;
170
171 %build
172 rm -f missing libtool
173 %{__libtoolize}
174 %{__aclocal}
175 %{__automake}
176 %{__autoconf}
177 %configure \
178 %ifarch %{ix86}
179         --enable-nasm \
180 %else
181         --disable-nasm \
182 %endif
183         --enable-pthreads \
184         --enable-pthread-sem \
185         --with-x \
186         --enable-dga \
187         --enable-video-dga \
188         --disable-video-directfb \
189         --enable-video-x11-dgamouse \
190         --enable-video-x11-vm \
191         --enable-video-x11-xv \
192         --enable-video-opengl \
193         --enable-video-fbcon \
194         %{?_with_aalib:--enable-video-aalib} \
195         %{?_with_ggi:--enable-video-ggi} \
196         %{!?_with_nas:--disable-nas} \
197         %{?_with_svga:--enable-video-svga} \
198         %{?_without_alsa:--disable-alsa} \
199         %{!?_without_esound:--enable-esd} \
200         %{?_without_esound:--disable-esd} \
201         %{!?_without_arts:--enable-arts} \
202         %{?_without_arts:--disable-arts}
203
204 %{__make}
205
206 %install
207 rm -rf $RPM_BUILD_ROOT
208 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
209
210 %{__make} install \
211         DESTDIR=$RPM_BUILD_ROOT \
212         m4datadir=%{_aclocaldir}
213
214 install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
215
216 rm -rf docs/man3 docs/{Makefile*,.cvsignore} docs/html/{Makefile*,.cvsignore}
217
218 %clean
219 rm -rf $RPM_BUILD_ROOT
220
221 %post   -p /sbin/ldconfig
222 %postun -p /sbin/ldconfig
223
224 %files
225 %defattr(644,root,root,755)
226 %attr(755,root,root) %{_libdir}/lib*.so.*.*
227
228 %files devel
229 %defattr(644,root,root,755)
230 %doc BUGS CREDITS README TODO WhatsNew docs.html docs
231 %attr(755,root,root) %{_bindir}/sdl-config
232 %attr(755,root,root) %{_libdir}/lib*.so
233 %{_libdir}/lib*.la
234 %{_libdir}/libSDLmain.a
235 %{_includedir}/SDL
236 %{_aclocaldir}/*
237 %{_mandir}/man3/*
238
239 %files examples
240 %defattr(644,root,root,755)
241 %{_examplesdir}/%{name}-%{version}
242
243 %files static
244 %defattr(644,root,root,755)
245 %{_libdir}/libSDL.a
This page took 0.040143 seconds and 3 git commands to generate.