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