]> git.pld-linux.org Git - packages/SDL.git/blobdiff - SDL.spec
switch to new conditional builds macros (bcond_on_ -> _with_/bcond_off_ -> _without_...
[packages/SDL.git] / SDL.spec
index a1657380ffb373b6a68a25b754403edca73a9442..1c66c20943a6fabbc96147e659ce790addd61677 100644 (file)
--- a/SDL.spec
+++ b/SDL.spec
@@ -1,20 +1,39 @@
+#
+# 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
@@ -39,6 +58,7 @@ Summary:      SDL - Header files
 Summary(pl):   SDL - Pliki nag³ówkowe
 Group:         X11/Libraries
 Group(de):     X11/Libraries
+Group(es):     X11/Bibliotecas
 Group(pl):     X11/Biblioteki
 Requires:      %{name} = %{version}
 
@@ -53,6 +73,7 @@ Summary:      SDL - static libraries
 Summary(pl):   SDL - biblioteki statyczne
 Group:         X11/Libraries
 Group(de):     X11/Libraries
+Group(es):     X11/Bibliotecas
 Group(pl):     X11/Biblioteki
 Requires:      %{name} = %{version}
 
@@ -64,19 +85,27 @@ SDL - biblioteki statyczne.
 
 %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
@@ -85,6 +114,8 @@ rm -rf $RPM_BUILD_ROOT
        DESTDIR=$RPM_BUILD_ROOT \
        m4datadir=%{_aclocaldir}
 
+rm -rf docs/man3
+
 gzip -9nf BUGS README WhatsNew
 
 %post   -p /sbin/ldconfig
This page took 0.062241 seconds and 4 git commands to generate.