#
# Conditional build:
# bcond_off_alsa - without ALSA support
+# bcond_off_esound - without esound support
+# bcond_off_arts - without arts support
# bcond_on_svgalib - with svgalib support
# bcond_on_aalib - with aalib support
#
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: 3
+Version: 1.2.0
+Release: 1
License: LGPL
Group: X11/Libraries
Group(de): X11/Libraries
Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
Patch0: SDL-svga.patch
URL: http://www.libsdl.org/
-BuildRequires: esound-devel
-BuildRequires: arts-devel
+%{!?bcond_off_esound:BuildRequires: esound-devel}
+%{!?bcond_off_arts:BuildRequires: arts-devel}
BuildRequires: gtk+-devel >= 1.2.1
BuildRequires: XFree86-devel
BuildRequires: OpenGL-devel
--enable-video-x11-dga \
--enable-video-x11-mtrr \
--enable-video-x11-dgamouse \
- --enable-esd \
- --enable-arts \
- --disable-alsa \
+ %{!?bcond_off_esound:--enable-esd} \
+ %{!?bcond_off_arts:--enable-arts} \
%{?bcond_on_svga:--enable-video-svga} \
%{?bcond_on_aalib:--enable-video-aalib}
DESTDIR=$RPM_BUILD_ROOT \
m4datadir=%{_aclocaldir}
+rm -rf docs/man3
+
gzip -9nf BUGS README WhatsNew
%post -p /sbin/ldconfig