]> git.pld-linux.org Git - packages/SDL.git/blame - SDL.spec
- tabs in preamble
[packages/SDL.git] / SDL.spec
CommitLineData
f3708463
JB
1#
2# Conditional build:
fdb0e5c9 3%bcond_with aalib # with aalib graphics support
6e5d899e 4%bcond_with caca # with caca graphics support
fdb0e5c9
JB
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
16f25dd2 11%bcond_without esd # without EsounD audio support
a53b8e1b 12#
123781fa
JB
13# NOTE: the following libraries are dlopened by soname detected at build time:
14# libasound.so.2
15# libesd.so.0
16# libX11.so.6
17# libXext.so.6
18# libXrender.so.1
19# libXrandr.so.2
cee13441 20Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library
6251189d
ER
21Summary(pl.UTF-8): SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
22Summary(zh_CN.UTF-8): SDL (Simple DirectMedia Layer) Generic APIs - 游戏/多媒体库
cee13441 23Name: SDL
b27448c3 24Version: 1.2.11
79ac55f8 25Release: 2
1b424fce 26License: LGPL
7b1c9d40 27Group: Libraries
123781fa 28Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
b27448c3 29# Source0-md5: 418b42956b7cd103bfab1b9077ccc149
123781fa
JB
30Patch0: %{name}-mmx-constraints.patch
31Patch1: %{name}-acfix.patch
32Patch2: %{name}-caca.patch
edc688e6 33URL: http://www.libsdl.org/
fdb0e5c9 34%{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.15}
c080b1ae 35BuildRequires: OpenGL-GLU-devel
fdb0e5c9 36%{?with_aalib:BuildRequires: aalib-devel}
fdb0e5c9 37%{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0}
99ece653 38%{?with_arts:BuildRequires: artsc-devel >= 1.1}
123781fa 39BuildRequires: autoconf >= 2.59-9
56098bb7 40BuildRequires: automake
16f25dd2 41%{?with_esd:BuildRequires: esound-devel >= 0.2.8}
53b1a977 42BuildRequires: gcc >= 5:4.0
ecfe5ee2 43%{?with_caca:BuildRequires: libcaca-devel}
fdb0e5c9 44%{?with_ggi:BuildRequires: libggi-devel}
7063d372 45BuildRequires: libtool >= 2:1.4d
fdb0e5c9 46%{?with_nas:BuildRequires: nas-devel}
6a8871ba 47%ifarch %{ix86}
c4094cdf 48BuildRequires: nasm
6a8871ba 49%endif
ef907b8e 50BuildRequires: perl-modules
6fb16461 51%{?with_directfb:BuildRequires: pkgconfig >= 1:0.7}
5a610d3e 52%{?with_svga:BuildRequires: svgalib-devel >= 1.4.0}
123781fa 53BuildRequires: xorg-lib-libX11-devel
10fab296 54BuildRequires: xorg-lib-libXext-devel
123781fa
JB
55BuildRequires: xorg-lib-libXrandr-devel
56BuildRequires: xorg-lib-libXrender-devel
57BuildRequires: xorg-proto-xextproto-devel
b2dddb33 58BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
5249f883 59
60%description
ba42f390 61SDL (Simple DirectMedia Layer) is a library that allows you portable,
62low level access to a video framebuffer, audio output, mouse, and
63keyboard. It can support both windowed and DGA modes of XFree86, and
64it is designed to be portable - applications linked with SDL can also
65be built on Win32 and BeOS.
cee13441 66
ff50bd69
JR
67%description -l pl.UTF-8
68SDL (Simple DirectMedia Layer) jest biblioteką udostępniającą
69przenośny, niskopoziomowy dostęp do bufora ramki video, wyjścia audio,
70myszy oraz klawiatury. Może obsługiwać zarówno okienkowy tryb XFree86
71jak i DGA. Konstruując ją miano na uwadze przenośność: aplikacje
72konsolidowane z SDL można również budować w systemach Win32 i BeOS.
e46b33b9 73
ff50bd69
JR
74%description -l pt_BR.UTF-8
75Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
76baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
f3665afb 77
ff50bd69 78Essa biblioteca é usada por alguns jogos.
f3665afb 79
ff50bd69
JR
80%description -l ru.UTF-8
81SDL (Simple DirectMedia Layer) это набор функций, предоставляющий
82низкоуровневый доступ к звуку, клавиатуре, манипулятору мышь и к
83буферу экрана на множестве различных платформ.
80c61973 84
cee13441 85%package devel
b1002eee 86Summary: SDL - Header files
6251189d
ER
87Summary(pl.UTF-8): SDL - Pliki nagłówkowe
88Summary(pt_BR.UTF-8): Bibliotecas e arquivos de cabeçalho para aplicações SDL
89Summary(ru.UTF-8): Файлы, необходимые для разработки программ, использующих SDL
90Summary(uk.UTF-8): Файли, необхідні для розробки програм, що використовують SDL
91Summary(zh_CN.UTF-8): SDL (Simple DirectMedia Layer) 开发库
7b1c9d40 92Group: Development/Libraries
c8088f36 93Requires: %{name} = %{version}-%{release}
123781fa
JB
94%{?with_directfb:Requires: DirectFB-devel >= 0.9.15}
95%{?with_aa:Requires: aalib-devel}
ecfe5ee2 96%{?with_caca:Requires: libcaca-devel}
123781fa 97%{?with_ggi:Requires: libggi-devel}
fdb0e5c9 98%{?with_nas:Requires: nas-devel}
123781fa 99%{?with_svga:Requires: svgalib-devel >= 1.4.0}
5249f883 100
101%description devel
b1002eee 102SDL - Header files.
103
ff50bd69
JR
104%description devel -l pl.UTF-8
105SDL - Pliki nagłówkowe.
edc688e6 106
ff50bd69
JR
107%description devel -l pt_BR.UTF-8
108Esse pacote contém bibliotecas, arquivos de cabeçalho e outros
9870d18a 109recursos para o desenvolvimento de aplicativos com SDL.
f3665afb 110
ff50bd69
JR
111%description devel -l ru.UTF-8
112Этот пакет содержит файлы, необходимые для разработки программ,
113использующих SDL.
07254893 114
ff50bd69
JR
115%description devel -l uk.UTF-8
116Цей пакет містить файли, необхідні для розробки програм, що
117використовують SDL.
07254893 118
b1002eee 119%package static
b1002eee 120Summary: SDL - static libraries
6251189d
ER
121Summary(pl.UTF-8): SDL - biblioteki statyczne
122Summary(pt_BR.UTF-8): Biblioteca estática para desenvolvimento de aplicações com a SDL
123Summary(ru.UTF-8): Статические библиотеки для разработки с использованием SDL
124Summary(uk.UTF-8): Статичні бібліотеки для розробки з використанням SDL
7b1c9d40 125Group: Development/Libraries
c8088f36 126Requires: %{name}-devel = %{version}-%{release}
b1002eee 127
128%description static
129SDL - static libraries.
5249f883 130
ff50bd69 131%description static -l pl.UTF-8
edc688e6
AM
132SDL - biblioteki statyczne.
133
ff50bd69
JR
134%description static -l pt_BR.UTF-8
135Biblioteca estática para desenvolvimento de aplicações com a SDL.
f3665afb 136
ff50bd69
JR
137%description static -l ru.UTF-8
138Этот пакет содержит статические библиотеки для разработки программ,
139использующих SDL.
07254893 140
ff50bd69
JR
141%description static -l uk.UTF-8
142Цей пакет містить статичні бібліотеки для розробки програм, що
143використовують SDL.
07254893 144
6a8871ba 145%package examples
95c00871 146Summary: SDL - example programs
6251189d 147Summary(pl.UTF-8): SDL - programy przykładowe
7b1c9d40 148Group: Development/Libraries
c8088f36 149Requires: %{name}-devel = %{version}-%{release}
6a8871ba 150
151%description examples
152SDL - example programs.
153
ff50bd69
JR
154%description examples -l pl.UTF-8
155SDL - przykładowe programy.
6a8871ba 156
5249f883 157%prep
123781fa 158%setup -q
abea0376 159%patch0 -p1
56098bb7 160%patch1 -p1
123781fa
JB
161#%patch2 -p1 # needs rewrite
162
7186edde 163%{!?with_alsa:echo 'AC_DEFUN([AM_PATH_ALSA],[$3])' >> acinclude.m4}
31d1406a 164%{!?with_esd:echo 'AC_DEFUN([AM_PATH_ESD],[$3])' >> acinclude.m4}
f3708463 165
7063d372 166%build
98894b54 167%{__libtoolize}
ef907b8e 168%{__aclocal}
a960bb5d 169%{__autoconf}
8ae8ff19 170%configure \
4e352645 171%ifarch %{ix86}
172 --enable-nasm \
173%else
79a52426 174 --disable-nasm \
4e352645 175%endif
123781fa
JB
176 --disable-rpath \
177 %{!?with_alsa:--disable-alsa} \
178 %{!?with_arts:--disable-arts} \
179 --enable-dga \
180 %{!?with_esd:--disable-esd} \
181 %{!?with_nas:--disable-nas} \
8ae8ff19 182 --enable-pthreads \
03c04e2a 183 --enable-pthread-sem \
fdb0e5c9 184 %{?with_aalib:--enable-video-aalib} \
6e5d899e 185 %{?with_caca:--enable-video-caca} \
123781fa 186 %{!?with_directfb:--disable-video-directfb} \
4e352645 187 --enable-video-dga \
fdb0e5c9
JB
188 --enable-video-fbcon \
189 %{?with_ggi:--enable-video-ggi} \
190 --enable-video-opengl \
123781fa 191 %{!?with_svga:--disable-video-svga} \
2a1e13a3 192 --enable-video-x11-dgamouse \
4e352645 193 --enable-video-x11-vm \
123781fa
JB
194 --enable-video-x11-xinerama \
195 --enable-video-x11-xme \
196 --enable-video-x11-xrandr \
4e352645 197 --enable-video-x11-xv \
123781fa 198 --with-x
cee13441 199
123781fa 200%{__make}
a960bb5d 201
5249f883 202%install
cee13441 203rm -rf $RPM_BUILD_ROOT
07254893 204install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
c1a764ca 205
693a2990 206%{__make} install \
ee831bf0 207 DESTDIR=$RPM_BUILD_ROOT \
b2dddb33 208 m4datadir=%{_aclocaldir}
c1a764ca 209
6a8871ba 210install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
211
123781fa 212rm -rf docs/man3
8ae8ff19 213
5249f883 214%clean
215rm -rf $RPM_BUILD_ROOT
216
423adad9 217%post -p /sbin/ldconfig
ef907b8e
JB
218%postun -p /sbin/ldconfig
219
5249f883 220%files
cee13441 221%defattr(644,root,root,755)
fdb0e5c9 222%doc BUGS CREDITS README TODO WhatsNew
123781fa 223%attr(755,root,root) %{_libdir}/libSDL-*.so.*.*
5249f883 224
225%files devel
cee13441 226%defattr(644,root,root,755)
fdb0e5c9 227%doc docs.html docs
8ae8ff19 228%attr(755,root,root) %{_bindir}/sdl-config
123781fa
JB
229%attr(755,root,root) %{_libdir}/libSDL.so
230%{_libdir}/libSDL.la
3975d0d9 231%{_libdir}/libSDLmain.a
9dac0b07 232%{_includedir}/SDL
123781fa 233%{_aclocaldir}/sdl.m4
b27448c3 234%{_pkgconfigdir}/sdl.pc
bffece7c 235%{_mandir}/man3/*
5249f883 236
cee13441 237%files static
1b424fce 238%defattr(644,root,root,755)
95c00871 239%{_libdir}/libSDL.a
123781fa
JB
240
241%files examples
242%defattr(644,root,root,755)
243%{_examplesdir}/%{name}-%{version}
This page took 0.088176 seconds and 4 git commands to generate.