]> git.pld-linux.org Git - packages/SDL.git/blob - SDL.spec
- removed SDL-am.patch
[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:        8
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}-alsa9.patch.bz2
33 URL:            http://www.libsdl.org/
34 BuildRequires:  autoconf
35 BuildRequires:  automake
36 %{!?_without_esound:BuildRequires:      esound-devel}
37 %{!?_without_arts:BuildRequires:        arts-devel}
38 BuildRequires:  XFree86-devel >= 4.0.2
39 BuildRequires:  OpenGL-devel
40 BuildRequires:  perl-modules
41 %ifarch %{ix86}
42 BuildRequires:  nasm
43 %endif
44 %ifnarch sparc sparc64
45 %{!?_without_alsa:BuildRequires:        alsa-lib-devel}
46 %endif
47 %{?_with_svgalib:BuildRequires: svgalib-devel}
48 %{?_with_aalib:BuildRequires:   aalib-devel}
49 %{?_with_ggi:BuildRequires:     libggi-devel}
50 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51
52 %define         _prefix         /usr/X11R6
53 %define         _mandir         %{_prefix}/man
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 dostep do bufora ramki video, wyj¶cia audio,
65 myszy oraz klawiatury, Moze 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¿ budowac 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 %ifnarch sparc sparc64
85 %{!?_without_alsa:Requires:     alsa-lib-devel}
86 %endif
87 %{!?_without_esound:Requires:   esound-devel}
88 %{!?_without_arts:Requires:     arts-devel}
89 Requires:       XFree86-devel >= 4.0.2
90
91 %description devel
92 SDL - Header files.
93
94 %description devel -l pl
95 SDL - Pliki nag³ówkowe.
96
97 %description devel -l pt_BR
98 Esse pacote contém bibliotecas, arquivos de cabeçalho e outros
99 recursos para o desenvolvimento de aplicativos com SDL.
100
101 %description devel -l ru
102 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
103 ÉÓÐÏÌØÚÕÀÝÉÈ SDL.
104
105 %description devel -l uk
106 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÆÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
107 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL.
108
109 %package static
110 Summary:        SDL - static libraries
111 Summary(pl):    SDL - biblioteki statyczne
112 Summary(pt_BR): Biblioteca estática para desenvolvimento de aplicações com a SDL
113 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ SDL
114 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ SDL
115 Group:          X11/Development/Libraries
116 Requires:       %{name}-devel = %{version}
117
118 %description static
119 SDL - static libraries.
120
121 %description static -l pl
122 SDL - biblioteki statyczne.
123
124 %description static -l pt_BR
125 Biblioteca estática para desenvolvimento de aplicações com a SDL.
126
127 %description static -l ru
128 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
129 ÉÓÐÏÌØÚÕÀÝÉÈ SDL.
130
131 %description static -l uk
132 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÓÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
133 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL.
134
135 %package examples
136 Summary:        SDL - example programs
137 Summary(pl):    SDL - programy przyk³adowe
138 Group:          X11/Development/Libraries
139 Requires:       %{name}-devel = %{version}
140
141 %description examples
142 SDL - example programs.
143
144 %description examples -l pl
145 SDL - przyk³adowe programy.
146
147 %prep
148 %setup -q
149 %patch0 -p1
150 %patch1 -p1
151 %patch2 -p1
152 %patch3 -p1
153 %patch4 -p1
154 %patch5 -p1
155
156 %build
157 rm -f missing
158 %{__libtoolize}
159 aclocal
160 %{__autoconf}
161 # Another hack
162 cp -f src/hermes/Makefile.in Makefile.in.ok
163 automake -a -c --foreign
164 cp -f Makefile.in.ok src/hermes/Makefile.in
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 %install
191 rm -rf $RPM_BUILD_ROOT
192 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
193
194 %{__make} install \
195         DESTDIR=$RPM_BUILD_ROOT \
196         m4datadir=%{_aclocaldir}
197
198 install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
199
200 rm -rf docs/man3 docs/Makefile* docs/html/Makefile*
201
202 %post   -p /sbin/ldconfig
203 %postun -p /sbin/ldconfig
204
205 %clean
206 rm -rf $RPM_BUILD_ROOT
207
208 %files
209 %defattr(644,root,root,755)
210 %attr(755,root,root) %{_libdir}/lib*.so.*.*
211
212 %files devel
213 %defattr(644,root,root,755)
214 %doc BUGS CREDITS README TODO WhatsNew docs.html docs
215 %attr(755,root,root) %{_bindir}/sdl-config
216 %attr(755,root,root) %{_libdir}/lib*.so
217 %attr(755,root,root) %{_libdir}/lib*.la
218 %{_libdir}/libSDLmain.a
219 %{_includedir}/SDL
220 %{_aclocaldir}/*
221 %{_mandir}/man3/*
222
223 %files examples
224 %defattr(644,root,root,755)
225 %{_examplesdir}/%{name}-%{version}
226
227 %files static
228 %defattr(644,root,root,755)
229 %{_libdir}/libSDL.a
This page took 0.044226 seconds and 4 git commands to generate.