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