[SDL] Add esound and arts BRs

Petr Pisar ppisar at fedoraproject.org
Fri Jul 26 11:54:40 UTC 2013


commit 63275df7f69be17b0508ed51b77af27a05dc7c19
Author: Petr Písař <ppisar at redhat.com>
Date:   Fri Jul 26 13:19:04 2013 +0200

    Add esound and arts BRs
    
    This reverts commit 10f095468d4673db029841ee00256882437b21b6.
    
    It turned out that neither esound or arts have been removed from
    distribution. Adding support for these sound outputs.

 SDL.spec |   29 ++++++++++++++++++++++++++++-
 1 files changed, 28 insertions(+), 1 deletions(-)
---
diff --git a/SDL.spec b/SDL.spec
index eb2a7c0..6e677f4 100644
--- a/SDL.spec
+++ b/SDL.spec
@@ -1,6 +1,14 @@
+%if 0%{?rhel}
+%bcond_with arts
+%bcond_with esound
+%else
+%bcond_without arts
+%bcond_without esound
+%endif
+
 Name:       SDL
 Version:    1.2.15
-Release:    9%{?dist}
+Release:    10%{?dist}
 Summary:    A cross-platform multimedia library
 Group:      System Environment/Libraries
 URL:        http://www.libsdl.org/
@@ -24,7 +32,13 @@ Patch3:     SDL-1.2.15-const_XData32.patch
 Patch4:     SDL-1.2.15-add_sdl_config_man.patch
 
 BuildRequires:  alsa-lib-devel
+%if %{with arts}
+BuildRequires:  arts-devel
+%endif
 BuildRequires:  audiofile-devel
+%if %{with esound}
+BuildRequires:  esound-devel
+%endif
 BuildRequires:  mesa-libGL-devel
 BuildRequires:  mesa-libGLU-devel
 BuildRequires:  libXext-devel
@@ -85,8 +99,10 @@ for F in CREDITS; do
     touch --reference "$F" "${F}.utf"
     mv "${F}.utf" "$F"
 done
+%if %{without esound}
 # Compilation without ESD
 sed -i -e 's/.*AM_PATH_ESD.*//' configure.in
+%endif
 # Update config.sub to support aarch64, bug #926510
 cp -p %{_datadir}/automake-*/config.{sub,guess} build-scripts
 
@@ -99,8 +115,16 @@ autoconf
     --disable-video-ggi \
     --disable-video-aalib \
     --enable-sdl-dlopen \
+%if %{with arts}
+    --enable-arts-shared \
+%else
     --disable-arts \
+%endif
+%if %{with esound}
+    --enable-esd-shared \
+%else
     --disable-esd \
+%endif
     --enable-pulseaudio-shared \
     --enable-alsa \
     --disable-video-ps3 \
@@ -140,6 +164,9 @@ rm -f %{buildroot}%{_libdir}/*.la
 %{_libdir}/lib*.a
 
 %changelog
+* Fri Jul 26 2013 Petr Pisar <ppisar at redhat.com> - 1.2.15-10
+- Add esound and arts support (bug #851349)
+
 * Wed Jun 19 2013 Petr Pisar <ppisar at redhat.com> - 1.2.15-9
 - Add sdl-config(1) manual page (bug #948864)
 


More information about the scm-commits mailing list