]> git.pld-linux.org Git - packages/SDL.git/blob - SDL.spec
29a482248195d2723bd3ce183be12f83646ad854
[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:        1
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 URL:            http://www.libsdl.org/
34 BuildRequires:  OpenGL-devel
35 BuildRequires:  XFree86-devel >= 4.0.2
36 %{?_with_aalib:BuildRequires:   aalib-devel}
37 %ifnarch sparc sparc64
38 %{!?_without_alsa:BuildRequires:        alsa-lib-devel}
39 %endif
40 %{!?_without_arts:BuildRequires:        arts-devel}
41 BuildRequires:  autoconf
42 BuildRequires:  automake
43 %{!?_without_esound:BuildRequires:      esound-devel}
44 %{?_with_ggi:BuildRequires:     libggi-devel}
45 BuildRequires:  libtool
46 %ifarch %{ix86}
47 BuildRequires:  nasm
48 %endif
49 BuildRequires:  perl-modules
50 %{?_with_svgalib:BuildRequires: svgalib-devel}
51 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52
53 %define         _prefix         /usr/X11R6
54 %define         _mandir         %{_prefix}/man
55
56 %description
57 SDL (Simple DirectMedia Layer) is a library that allows you portable,
58 low level access to a video framebuffer, audio output, mouse, and
59 keyboard. It can support both windowed and DGA modes of XFree86, and
60 it is designed to be portable - applications linked with SDL can also
61 be built on Win32 and BeOS.
62
63 %description -l pl
64 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
65 przeno¶ny, niskopoziomowy dostep do bufora ramki video, wyj¶cia audio,
66 myszy oraz klawiatury, Moze obs³ugiwaæ zarówno okienkowy tryb XFree86
67 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
68 konsolidowane z SDL mo¿na równie¿ budowac w systemach Win32 i BeOS.
69
70 %description -l pt_BR
71 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
72 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
73
74 Essa biblioteca é usada por alguns jogos.
75
76 %package devel
77 Summary:        SDL - Header files
78 Summary(pl):    SDL - Pliki nag³ówkowe
79 Summary(pt_BR): Bibliotecas e arquivos de cabeçalho para aplicações SDL
80 Summary(ru):    æÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ SDL
81 Summary(uk):    æÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL
82 Summary(zh_CN): SDL (Simple DirectMedia Layer) ¿ª·¢¿â
83 Group:          X11/Development/Libraries
84 Requires:       %{name} = %{version}
85 Requires:       XFree86-devel >= 4.0.2
86 %ifnarch sparc sparc64
87 %{!?_without_alsa:Requires:     alsa-lib-devel}
88 %endif
89 %{!?_without_arts:Requires:     arts-devel}
90 %{!?_without_esound:Requires:   esound-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
157 %build
158 rm -f missing
159 %{__libtoolize}
160 %{__aclocal}
161 %{__autoconf}
162 %{__automake}
163 %configure \
164 %ifarch %{ix86}
165         --enable-nasm \
166 %else
167         --disable-nasm \
168 %endif
169         --enable-pthreads \
170         --enable-pthread-sem \
171         --with-x \
172         --enable-dga \
173         --enable-video-dga \
174         --enable-video-x11-dgamouse \
175         --enable-video-x11-vm \
176         --enable-video-x11-xv \
177         --enable-video-opengl \
178         --enable-video-fbcon \
179         %{?_with_svga:--enable-video-svga} \
180         %{?_with_aalib:--enable-video-aalib} \
181         %{?_with_ggi:--enable-video-ggi} \
182 %ifnarch sparc sparc64
183         %{!?_without_alsa:--enable-alsa} \
184 %endif
185         %{!?_without_esound:--enable-esd} \
186         %{!?_without_arts:--enable-arts}
187
188 %install
189 rm -rf $RPM_BUILD_ROOT
190 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
191
192 %{__make} install \
193         DESTDIR=$RPM_BUILD_ROOT \
194         m4datadir=%{_aclocaldir}
195
196 install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
197
198 rm -rf docs/man3 docs/Makefile* docs/html/Makefile*
199
200 %clean
201 rm -rf $RPM_BUILD_ROOT
202
203 %post   -p /sbin/ldconfig
204 %postun -p /sbin/ldconfig
205
206 %files
207 %defattr(644,root,root,755)
208 %attr(755,root,root) %{_libdir}/lib*.so.*.*
209
210 %files devel
211 %defattr(644,root,root,755)
212 %doc BUGS CREDITS README TODO WhatsNew docs.html docs
213 %attr(755,root,root) %{_bindir}/sdl-config
214 %attr(755,root,root) %{_libdir}/lib*.so
215 %attr(755,root,root) %{_libdir}/lib*.la
216 %{_libdir}/libSDLmain.a
217 %{_includedir}/SDL
218 %{_aclocaldir}/*
219 %{_mandir}/man3/*
220
221 %files examples
222 %defattr(644,root,root,755)
223 %{_examplesdir}/%{name}-%{version}
224
225 %files static
226 %defattr(644,root,root,755)
227 %{_libdir}/libSDL.a
This page took 0.082009 seconds and 3 git commands to generate.