]> git.pld-linux.org Git - packages/SDL.git/blob - SDL.spec
7a29c3aab06b7ac2de4ba741cf70f2b7ee6b16d4
[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 # NOTE: the following libraries are dlopened by soname detected at build time:
14 # libasound.so.2
15 # libesd.so.0
16 # libpulse-simple.so.0
17 # libX11.so.6
18 # libXext.so.6
19 # libXrender.so.1
20 # libXrandr.so.2
21 Summary:        SDL (Simple DirectMedia Layer) - Game/Multimedia Library
22 Summary(pl.UTF-8):      SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
23 Summary(zh_CN.UTF-8):   SDL (Simple DirectMedia Layer) Generic APIs - 游戏/多媒体库
24 Name:           SDL
25 Version:        1.2.12
26 Release:        1
27 License:        LGPL v2.1+
28 Group:          Libraries
29 Source0:        http://www.libsdl.org/release/%{name}-%{version}.tar.gz
30 # Source0-md5:  544b4554986e51eed6d34435cf9c5f3f
31 Patch0:         %{name}-mmx-constraints.patch
32 Patch1:         %{name}-acfix.patch
33 Patch2:         %{name}-caca.patch
34 URL:            http://www.libsdl.org/
35 %{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.15}
36 BuildRequires:  OpenGL-GLU-devel
37 %{?with_aalib:BuildRequires:    aalib-devel}
38 %{?with_alsa:BuildRequires:     alsa-lib-devel >= 0.9.0}
39 %{?with_arts:BuildRequires:     artsc-devel >= 1.1}
40 BuildRequires:  autoconf >= 2.59-9
41 BuildRequires:  automake
42 %{?with_esd:BuildRequires:      esound-devel >= 0.2.8}
43 BuildRequires:  gcc >= 5:4.0
44 %{?with_caca:BuildRequires:     libcaca-devel}
45 %{?with_ggi:BuildRequires:      libggi-devel}
46 BuildRequires:  libtool >= 2:1.4d
47 %{?with_nas:BuildRequires:      nas-devel}
48 %ifarch %{ix86}
49 BuildRequires:  nasm
50 %endif
51 BuildRequires:  perl-modules
52 %{?with_directfb:BuildRequires: pkgconfig >= 1:0.7}
53 BuildRequires:  pulseaudio-devel >= 0.9
54 %{?with_svga:BuildRequires:     svgalib-devel >= 1.4.0}
55 BuildRequires:  xorg-lib-libX11-devel
56 BuildRequires:  xorg-lib-libXext-devel
57 BuildRequires:  xorg-lib-libXrandr-devel
58 BuildRequires:  xorg-lib-libXrender-devel
59 BuildRequires:  xorg-proto-xextproto-devel
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.UTF-8
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.UTF-8
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 %description -l ru.UTF-8
83 SDL (Simple DirectMedia Layer) это набор функций, предоставляющий
84 низкоуровневый доступ к звуку, клавиатуре, манипулятору мышь и к
85 буферу экрана на множестве различных платформ.
86
87 %package devel
88 Summary:        SDL - Header files
89 Summary(pl.UTF-8):      SDL - Pliki nagłówkowe
90 Summary(pt_BR.UTF-8):   Bibliotecas e arquivos de cabeçalho para aplicações SDL
91 Summary(ru.UTF-8):      Файлы, необходимые для разработки программ, использующих SDL
92 Summary(uk.UTF-8):      Файли, необхідні для розробки програм, що використовують SDL
93 Summary(zh_CN.UTF-8):   SDL (Simple DirectMedia Layer) 开发库
94 Group:          Development/Libraries
95 Requires:       %{name} = %{version}-%{release}
96 %{?with_directfb:Requires:      DirectFB-devel >= 0.9.15}
97 %{?with_aa:Requires:    aalib-devel}
98 %{?with_caca:Requires:  libcaca-devel}
99 %{?with_ggi:Requires:   libggi-devel}
100 %{?with_nas:Requires:   nas-devel}
101 %{?with_svga:Requires:  svgalib-devel >= 1.4.0}
102
103 %description devel
104 SDL - Header files.
105
106 %description devel -l pl.UTF-8
107 SDL - Pliki nagłówkowe.
108
109 %description devel -l pt_BR.UTF-8
110 Esse pacote contém bibliotecas, arquivos de cabeçalho e outros
111 recursos para o desenvolvimento de aplicativos com SDL.
112
113 %description devel -l ru.UTF-8
114 Этот пакет содержит файлы, необходимые для разработки программ,
115 использующих SDL.
116
117 %description devel -l uk.UTF-8
118 Цей пакет містить файли, необхідні для розробки програм, що
119 використовують SDL.
120
121 %package static
122 Summary:        SDL - static libraries
123 Summary(pl.UTF-8):      SDL - biblioteki statyczne
124 Summary(pt_BR.UTF-8):   Biblioteca estática para desenvolvimento de aplicações com a SDL
125 Summary(ru.UTF-8):      Статические библиотеки для разработки с использованием SDL
126 Summary(uk.UTF-8):      Статичні бібліотеки для розробки з використанням SDL
127 Group:          Development/Libraries
128 Requires:       %{name}-devel = %{version}-%{release}
129
130 %description static
131 SDL - static libraries.
132
133 %description static -l pl.UTF-8
134 SDL - biblioteki statyczne.
135
136 %description static -l pt_BR.UTF-8
137 Biblioteca estática para desenvolvimento de aplicações com a SDL.
138
139 %description static -l ru.UTF-8
140 Этот пакет содержит статические библиотеки для разработки программ,
141 использующих SDL.
142
143 %description static -l uk.UTF-8
144 Цей пакет містить статичні бібліотеки для розробки програм, що
145 використовують SDL.
146
147 %package examples
148 Summary:        SDL - example programs
149 Summary(pl.UTF-8):      SDL - programy przykładowe
150 License:        Public Domain
151 Group:          Development/Libraries
152 Requires:       %{name}-devel = %{version}-%{release}
153
154 %description examples
155 SDL - example programs.
156
157 %description examples -l pl.UTF-8
158 SDL - przykładowe programy.
159
160 %prep
161 %setup -q
162 %patch0 -p1
163 %patch1 -p1
164 #%patch2 -p1    # needs rewrite
165
166 %{!?with_alsa:echo 'AC_DEFUN([AM_PATH_ALSA],[$3])' >> acinclude.m4}
167 %{!?with_esd:echo 'AC_DEFUN([AM_PATH_ESD],[$3])' >> acinclude.m4}
168
169 %build
170 %{__libtoolize}
171 %{__aclocal}
172 %{__autoconf}
173 %configure \
174 %ifarch %{ix86}
175         --enable-nasm \
176 %else
177         --disable-nasm \
178 %endif
179         --disable-rpath \
180         %{!?with_alsa:--disable-alsa} \
181         %{!?with_arts:--disable-arts} \
182         --enable-dga \
183         %{!?with_esd:--disable-esd} \
184         %{!?with_nas:--disable-nas} \
185         --enable-pthreads \
186         --enable-pthread-sem \
187         %{?with_aalib:--enable-video-aalib} \
188         %{?with_caca:--enable-video-caca} \
189         %{!?with_directfb:--disable-video-directfb} \
190         --enable-video-dga \
191         --enable-video-fbcon \
192         %{?with_ggi:--enable-video-ggi} \
193         --enable-video-opengl \
194         %{!?with_svga:--disable-video-svga} \
195         --enable-video-x11-dgamouse \
196         --enable-video-x11-vm \
197         --enable-video-x11-xinerama \
198         --enable-video-x11-xme \
199         --enable-video-x11-xrandr \
200         --enable-video-x11-xv \
201         --with-x
202
203 %{__make}
204
205 %install
206 rm -rf $RPM_BUILD_ROOT
207 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
208
209 %{__make} install \
210         DESTDIR=$RPM_BUILD_ROOT \
211         m4datadir=%{_aclocaldir}
212
213 rm -rf test/autom4te.cache
214 install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
215
216 rm -rf docs/man3
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 README-SDL.txt TODO WhatsNew
227 %attr(755,root,root) %{_libdir}/libSDL-*.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}/libSDL.so
234 %{_libdir}/libSDL.la
235 %{_libdir}/libSDLmain.a
236 %{_includedir}/SDL
237 %{_aclocaldir}/sdl.m4
238 %{_pkgconfigdir}/sdl.pc
239 %{_mandir}/man3/*
240
241 %files static
242 %defattr(644,root,root,755)
243 %{_libdir}/libSDL.a
244
245 %files examples
246 %defattr(644,root,root,755)
247 %{_examplesdir}/%{name}-%{version}
This page took 0.102104 seconds and 2 git commands to generate.