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