+#
+# Conditional build:
+# _without_alsa - without ALSA support
+# _without_esound - without esound support
+# _without_arts - without arts support
+# _with_svgalib - with svgalib support
+# _with_aalib - with aalib support
+#
+%ifarch alpha
+%define _without_arts 1
+%endif
+
Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library
+Summary(pl): SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
Name: SDL
-Version: 1.1.7
-Release: 1
+Version: 1.2.0
+Release: 3
License: LGPL
Group: X11/Libraries
Group(de): X11/Libraries
+Group(es): X11/Bibliotecas
Group(pl): X11/Biblioteki
Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
+Patch0: %{name}-svga.patch
+Patch1: %{name}-byteorder.patch
URL: http://www.libsdl.org/
+%{!?_without_esound:BuildRequires: esound-devel}
+%{!?_without_arts:BuildRequires: arts-devel}
+BuildRequires: gtk+-devel >= 1.2.1
+BuildRequires: XFree86-devel >= 4.0.2
+BuildRequires: OpenGL-devel
%ifnarch sparc sparc64
-BuildRequires: alsa-lib-devel
+%{!?_without_alsa:BuildRequires: alsa-lib-devel}
%endif
-BuildRequires: esound-devel
-BuildRequires: gtk+-devel >= 1.2.1
-BuildRequires: XFree86-devel
-BuildRequires: XFree86-OpenGL-devel
+%{?_with_svgalib:BuildRequires: svgalib-devel}
+%{?_with_aalib:BuildRequires: aalib-devel}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _prefix /usr/X11R6
Summary(pl): SDL - Pliki nag³ówkowe
Group: X11/Libraries
Group(de): X11/Libraries
+Group(es): X11/Bibliotecas
Group(pl): X11/Biblioteki
Requires: %{name} = %{version}
Summary(pl): SDL - biblioteki statyczne
Group: X11/Libraries
Group(de): X11/Libraries
+Group(es): X11/Bibliotecas
Group(pl): X11/Biblioteki
Requires: %{name} = %{version}
%prep
%setup -q
+%patch0 -p1
+%patch1 -p1
+
%build
%configure \
%ifnarch sparc sparc64
- --enable-alsa \
+ %{!?_without_alsa:--enable-alsa} \
%endif
--enable-nasm \
--enable-pthreads \
+ --enable-pthread-sem \
--with-x \
+ --enable-video-x11-vm \
--enable-video-x11-dga \
--enable-video-x11-mtrr \
--enable-video-x11-dgamouse \
- --enable-esd \
- --disable-video-svga
+ --enable-video-opengl \
+ %{!?_without_esound:--enable-esd} \
+ %{!?_without_arts:--enable-arts} \
+ %{?_with_svga:--enable-video-svga} \
+ %{?_with_aalib:--enable-video-aalib}
%install
rm -rf $RPM_BUILD_ROOT
DESTDIR=$RPM_BUILD_ROOT \
m4datadir=%{_aclocaldir}
+rm -rf docs/man3
+
gzip -9nf BUGS README WhatsNew
%post -p /sbin/ldconfig