%bcond_without esd # without EsounD audio support
#
Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library
-Summary(es): Simple DirectMedia Layer
Summary(pl): SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
-Summary(pt_BR): Simple DirectMedia Layer
-Summary(ru): Simple DirectMedia Layer
-Summary(uk): Simple DirectMedia Layer
Summary(zh_CN): SDL (Simple DirectMedia Layer) Generic APIs - ÓÎÏ·/¶àýÌå¿â
Name: SDL
-Version: 1.2.7
-Release: 1
+Version: 1.2.8
+Release: 2
License: LGPL
Group: X11/Libraries
Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
-# Source0-md5: d29b34b6ba3ed213893fc9d8d35e357a
+# Source0-md5: 37aaf9f069f9c2c18856022f35de9f8c
Patch0: %{name}-byteorder.patch
Patch1: %{name}-amfix.patch
Patch2: %{name}-lpthread.patch
URL: http://www.libsdl.org/
%{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.15}
BuildRequires: OpenGL-devel
-BuildRequires: XFree86-devel >= 4.0.2
%{?with_aalib:BuildRequires: aalib-devel}
%{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0}
%{?with_arts:BuildRequires: artsc-devel >= 1.1}
BuildRequires: nasm
%endif
BuildRequires: perl-modules
-%{?with_directfb:BuildRequires: pkgconfig >= 0.7}
+%{?with_directfb:BuildRequires: pkgconfig >= 1:0.7}
%{?with_svgalib:BuildRequires: svgalib-devel >= 1.4.0}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Summary(zh_CN): SDL (Simple DirectMedia Layer) ¿ª·¢¿â
Group: X11/Development/Libraries
Requires: %{name} = %{version}-%{release}
+%if %{with xlibs}
+Requires: libX11-devel
+Requires: libXext-devel
+%else
Requires: XFree86-devel >= 4.0.2
+%endif
%{?with_alsa:Requires: alsa-lib-devel}
%{?with_caca:Requires: libcaca-devel}
%{?with_nas:Requires: nas-devel}
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
+%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files