]> git.pld-linux.org Git - packages/SDL.git/blob - SDL.spec
- added mmx-constraints patch: use strict contraints for MMX inline asm
[packages/SDL.git] / SDL.spec
1 #
2 # Conditional build:
3 %bcond_with     aalib           # with aalib graphics support
4 %bcond_with     directfb        # with DirectFB graphics support
5 %bcond_with     ggi             # with GGI graphics support
6 %bcond_with     nas             # with NAS audio support
7 %bcond_with     svga            # with svgalib graphics support
8 %bcond_without  alsa            # without ALSA audio support
9 %bcond_without  arts            # without aRts audio support
10 %bcond_without  esd             # without EsounD audio support
11
12 Summary:        SDL (Simple DirectMedia Layer) - Game/Multimedia Library
13 Summary(es):    Simple DirectMedia Layer
14 Summary(pl):    SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
15 Summary(pt_BR): Simple DirectMedia Layer
16 Summary(ru):    Simple DirectMedia Layer
17 Summary(uk):    Simple DirectMedia Layer
18 Summary(zh_CN): SDL (Simple DirectMedia Layer) Generic APIs - ÓÎÏ·/¶àýÌå¿â
19 Name:           SDL
20 Version:        1.2.6
21 Release:        3
22 License:        LGPL
23 Group:          X11/Libraries
24 Source0:        http://www.libsdl.org/release/%{name}-%{version}.tar.gz
25 # Source0-md5:  9011f147f23ec535515291d0c9c6904c
26 Patch0:         %{name}-byteorder.patch
27 Patch1:         %{name}-fixlibs.patch
28 Patch2:         %{name}-amfix.patch
29 Patch3:         %{name}-lpthread.patch
30 Patch4:         %{name}-no_rpath_in_sdl-config.patch
31 Patch5:         %{name}-lt15.patch
32 Patch6:         %{name}-dlopen-acfix.patch
33 Patch7:         %{name}-mmx-constraints.patch
34 URL:            http://www.libsdl.org/
35 %{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.15}
36 BuildRequires:  OpenGL-devel
37 BuildRequires:  XFree86-devel >= 4.0.2
38 %{?with_aalib:BuildRequires:    aalib-devel}
39 %ifnarch sparc sparc64
40 %{?with_alsa:BuildRequires:     alsa-lib-devel >= 0.9.0}
41 %endif
42 %{?with_arts:BuildRequires:     arts-devel >= 1.1}
43 BuildRequires:  autoconf
44 BuildRequires:  automake
45 %{?with_esd:BuildRequires:      esound-devel >= 0.2.8}
46 %{?with_ggi:BuildRequires:      libggi-devel}
47 BuildRequires:  libtool >= 2:1.4d
48 %{?with_nas:BuildRequires:      nas-devel}
49 %ifarch %{ix86}
50 BuildRequires:  nasm
51 %endif
52 BuildRequires:  perl-modules
53 %{?with_directfb:BuildRequires: pkgconfig >= 0.7}
54 %{?with_svgalib:BuildRequires:  svgalib-devel >= 1.4.0}
55 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56
57 %description
58 SDL (Simple DirectMedia Layer) is a library that allows you portable,
59 low level access to a video framebuffer, audio output, mouse, and
60 keyboard. It can support both windowed and DGA modes of XFree86, and
61 it is designed to be portable - applications linked with SDL can also
62 be built on Win32 and BeOS.
63
64 %description -l pl
65 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
66 przeno¶ny, niskopoziomowy dostêp do bufora ramki video, wyj¶cia audio,
67 myszy oraz klawiatury. Mo¿e obs³ugiwaæ zarówno okienkowy tryb XFree86
68 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
69 konsolidowane z SDL mo¿na równie¿ budowaæ w systemach Win32 i BeOS.
70
71 %description -l pt_BR
72 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
73 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
74
75 Essa biblioteca é usada por alguns jogos.
76
77 %package devel
78 Summary:        SDL - Header files
79 Summary(pl):    SDL - Pliki nag³ówkowe
80 Summary(pt_BR): Bibliotecas e arquivos de cabeçalho para aplicações SDL
81 Summary(ru):    æÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ SDL
82 Summary(uk):    æÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL
83 Summary(zh_CN): SDL (Simple DirectMedia Layer) ¿ª·¢¿â
84 Group:          X11/Development/Libraries
85 Requires:       %{name} = %{version}
86 Requires:       XFree86-devel >= 4.0.2
87 %ifnarch sparc sparc64
88 %{?with_alsa:Requires:  alsa-lib-devel}
89 %endif
90 %{?with_nas:Requires:   nas-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 %patch6 -p1
157 %patch7 -p1
158
159 # get COPY_ARCH_SRC, remove the rest
160 head -n 16 acinclude.m4 > acinclude.tmp
161 mv -f acinclude.tmp acinclude.m4
162
163 find . -type d -name CVS -print | xargs rm -rf {} \;
164
165 %build
166 rm -f missing libtool
167 %{__libtoolize}
168 %{__aclocal}
169 %{__automake}
170 %{__autoconf}
171 %configure \
172 %ifarch %{ix86}
173         --enable-nasm \
174 %else
175         --disable-nasm \
176 %endif
177         --enable-pthreads \
178         --enable-pthread-sem \
179         --with-x \
180         --enable-dga \
181         %{?with_aalib:--enable-video-aalib} \
182         --enable-video-dga \
183         %{?with_directfb:--enable-video-directfb} \
184         --enable-video-fbcon \
185         %{?with_ggi:--enable-video-ggi} \
186         --enable-video-opengl \
187         %{?with_svga:--enable-video-svga} \
188         --enable-video-x11-dgamouse \
189         --enable-video-x11-vm \
190         --enable-video-x11-xv \
191         %{!?with_alsa:--disable-alsa} \
192         %{!?with_arts:--disable-arts} \
193         %{!?with_esd:--disable-esd} \
194         %{!?with_nas:--disable-nas}
195
196 # automake chooses to use CXXLINK because of seen unused C++ sources
197 # (which are for BeOS and MacOS+QTopia, not Linux)
198 %{__make} \
199         CXXLINK="\$(LINK)"
200
201 %install
202 rm -rf $RPM_BUILD_ROOT
203 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
204
205 %{__make} install \
206         DESTDIR=$RPM_BUILD_ROOT \
207         m4datadir=%{_aclocaldir}
208
209 install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
210
211 rm -rf docs/man3 docs/{Makefile*,.cvsignore} docs/html/{Makefile*,.cvsignore}
212
213 %clean
214 rm -rf $RPM_BUILD_ROOT
215
216 %post   -p /sbin/ldconfig
217 %postun -p /sbin/ldconfig
218
219 %files
220 %defattr(644,root,root,755)
221 %doc BUGS CREDITS README TODO WhatsNew
222 %attr(755,root,root) %{_libdir}/lib*.so.*.*
223
224 %files devel
225 %defattr(644,root,root,755)
226 %doc docs.html docs
227 %attr(755,root,root) %{_bindir}/sdl-config
228 %attr(755,root,root) %{_libdir}/lib*.so
229 %{_libdir}/lib*.la
230 %{_libdir}/libSDLmain.a
231 %{_includedir}/SDL
232 %{_aclocaldir}/*
233 %{_mandir}/man3/*
234
235 %files examples
236 %defattr(644,root,root,755)
237 %{_examplesdir}/%{name}-%{version}
238
239 %files static
240 %defattr(644,root,root,755)
241 %{_libdir}/libSDL.a
This page took 0.040387 seconds and 4 git commands to generate.