]> git.pld-linux.org Git - packages/SDL.git/blob - SDL.spec
- s/arts-devel/artsc-devel/
[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 %{?with_alsa:BuildRequires:     alsa-lib-devel >= 0.9.0}
40 %{?with_arts:BuildRequires:     artsc-devel >= 1.1}
41 BuildRequires:  autoconf
42 BuildRequires:  automake
43 %{?with_esd:BuildRequires:      esound-devel >= 0.2.8}
44 %{?with_ggi:BuildRequires:      libggi-devel}
45 BuildRequires:  libtool >= 2:1.4d
46 %{?with_nas:BuildRequires:      nas-devel}
47 %ifarch %{ix86}
48 BuildRequires:  nasm
49 %endif
50 BuildRequires:  perl-modules
51 %{?with_directfb:BuildRequires: pkgconfig >= 0.7}
52 %{?with_svgalib:BuildRequires:  svgalib-devel >= 1.4.0}
53 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54
55 %description
56 SDL (Simple DirectMedia Layer) is a library that allows you portable,
57 low level access to a video framebuffer, audio output, mouse, and
58 keyboard. It can support both windowed and DGA modes of XFree86, and
59 it is designed to be portable - applications linked with SDL can also
60 be built on Win32 and BeOS.
61
62 %description -l pl
63 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
64 przeno¶ny, niskopoziomowy dostêp do bufora ramki video, wyj¶cia audio,
65 myszy oraz klawiatury. Mo¿e obs³ugiwaæ zarówno okienkowy tryb XFree86
66 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
67 konsolidowane z SDL mo¿na równie¿ budowaæ w systemach Win32 i BeOS.
68
69 %description -l pt_BR
70 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
71 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
72
73 Essa biblioteca é usada por alguns jogos.
74
75 %package devel
76 Summary:        SDL - Header files
77 Summary(pl):    SDL - Pliki nag³ówkowe
78 Summary(pt_BR): Bibliotecas e arquivos de cabeçalho para aplicações SDL
79 Summary(ru):    æÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ SDL
80 Summary(uk):    æÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL
81 Summary(zh_CN): SDL (Simple DirectMedia Layer) ¿ª·¢¿â
82 Group:          X11/Development/Libraries
83 Requires:       %{name} = %{version}
84 Requires:       XFree86-devel >= 4.0.2
85 %{?with_alsa:Requires:  alsa-lib-devel}
86 %{?with_nas:Requires:   nas-devel}
87
88 %description devel
89 SDL - Header files.
90
91 %description devel -l pl
92 SDL - Pliki nag³ówkowe.
93
94 %description devel -l pt_BR
95 Esse pacote contém bibliotecas, arquivos de cabeçalho e outros
96 recursos para o desenvolvimento de aplicativos com SDL.
97
98 %description devel -l ru
99 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
100 ÉÓÐÏÌØÚÕÀÝÉÈ SDL.
101
102 %description devel -l uk
103 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÆÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
104 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL.
105
106 %package static
107 Summary:        SDL - static libraries
108 Summary(pl):    SDL - biblioteki statyczne
109 Summary(pt_BR): Biblioteca estática para desenvolvimento de aplicações com a SDL
110 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ SDL
111 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ SDL
112 Group:          X11/Development/Libraries
113 Requires:       %{name}-devel = %{version}
114
115 %description static
116 SDL - static libraries.
117
118 %description static -l pl
119 SDL - biblioteki statyczne.
120
121 %description static -l pt_BR
122 Biblioteca estática para desenvolvimento de aplicações com a SDL.
123
124 %description static -l ru
125 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
126 ÉÓÐÏÌØÚÕÀÝÉÈ SDL.
127
128 %description static -l uk
129 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÓÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
130 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL.
131
132 %package examples
133 Summary:        SDL - example programs
134 Summary(pl):    SDL - programy przyk³adowe
135 Group:          X11/Development/Libraries
136 Requires:       %{name}-devel = %{version}
137
138 %description examples
139 SDL - example programs.
140
141 %description examples -l pl
142 SDL - przyk³adowe programy.
143
144 %prep
145 %setup -q
146 %patch0 -p1
147 %patch1 -p1
148 %patch2 -p1
149 %patch3 -p1
150 %patch4 -p1
151 %patch5 -p1
152 %patch6 -p1
153 %patch7 -p1
154
155 # get COPY_ARCH_SRC, remove the rest
156 head -n 16 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 rm -f missing libtool
163 %{__libtoolize}
164 %{__aclocal}
165 %{__automake}
166 %{__autoconf}
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         --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.046804 seconds and 4 git commands to generate.