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