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