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