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