jreznik pushed to arts (epel7). "- arts support for mixed multilib usage (#444484) (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Apr 2 15:11:06 UTC 2015


>From f81f55d13c62f105dbecb9df524fca792a456991 Mon Sep 17 00:00:00 2001
From: Rex Dieter <rdieter at fedoraproject.org>
Date: Thu, 15 May 2008 17:05:40 +0000
Subject: - arts support for mixed multilib usage (#444484) - f10+: drop
 optional esd, jack, nas support


diff --git a/arts-1.5.9-rh#444484.patch b/arts-1.5.9-rh#444484.patch
new file mode 100644
index 0000000..cfa6ce0
--- /dev/null
+++ b/arts-1.5.9-rh#444484.patch
@@ -0,0 +1,52 @@
+--- branches/arts/1.5/arts/artsc/artsdsp.in	2005/07/26 18:54:59	438982
++++ branches/arts/1.5/arts/artsc/artsdsp.in	2008/04/03 16:18:49	793315
+@@ -89,45 +89,16 @@
+     fi
+ fi
+ 
+-# setup artsdsp preload to hijack calls made to /dev/dsp
+-origargs="$@"
+-binary=`which $1`
+-machine=`uname -m`
+-
+-set `file -L $binary`
+-
+-case $2 in
+-    ELF)
+-       ;;
+-    *)
+-       echo "artsdsp works only for binaries"
+-       exit 1
+-    esac
+-
+-case $3 in
+-    32-bit)
+-       arch_libdir=lib
+-       ;;
+-    64-bit)
+-       arch_libdir=lib64
+-       ;;
+-    *)
+-       exit 1
+-esac
+-
+-set $origargs
+-
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+-libdir=${prefix}/${arch_libdir}
+ 
+ if test "$single_thread" = 1; then
+-  LD_PRELOAD=${libdir}/libartsdsp_st.so.0
++  LD_PRELOAD=${exec_prefix}/\\$LIB/libartsdsp_st.so.0
+ else
+-  LD_PRELOAD=${libdir}/libartsdsp.so.0:${libdir}/libartsc.so.0
++  LD_PRELOAD=${exec_prefix}/\\$LIB/libartsdsp.so.0:${exec_prefix}/\\$LIB/libartsc.so.0
+ fi
+-if test -f ${libdir}/libdl.so.2; then
+-  LD_PRELOAD=$LD_PRELOAD:${libdir}/libdl.so.2
++if test -f ${exec_prefix}/\\$LIB/libdl.so.2; then
++  LD_PRELOAD=$LD_PRELOAD:${exec_prefix}/\\$LIB/libdl.so.2
+ fi
+ export LD_PRELOAD
+ 
diff --git a/arts.spec b/arts.spec
index 7288285..3f98187 100644
--- a/arts.spec
+++ b/arts.spec
@@ -5,12 +5,20 @@
 %define qt_version 3.3.8
 %define make_cvs 1
 
+%if 0%{?fedora} < 10
+%define _with_esd --with-esd
+%define _with_nas --with-nas
+%if 0%{?rhel} == 0
+%define _with_jack --with-jack
+%endif
+%endif
+
 Name:    arts
 Summary: aRts (analog realtime synthesizer) - the KDE sound system 
 Group:   System Environment/Daemons
 Epoch:   8
 Version: 1.5.9
-Release: 2%{?dist}
+Release: 3%{?dist}
 
 License: LGPLv2+
 Url: http://www.kde.org
@@ -28,6 +36,8 @@ Patch8: arts-1.5.2-multilib.patch
 Patch50: arts-1.5.4-dlopenext.patch
 Patch51: kde-3.5-libtool-shlibext.patch
 # upstream patches
+# http://websvn.kde.org/branches/arts/1.5/arts/artsc/artsdsp.in?r1=438982&r2=793315&pathrev=793315
+Patch100: arts-1.5.9-rh#444484.patch
 
 # used in artsdsp
 Requires: which
@@ -40,11 +50,9 @@ BuildRequires: alsa-lib-devel
 BuildRequires: glib2-devel
 BuildRequires: libvorbis-devel
 BuildRequires: audiofile-devel
-BuildRequires: esound-devel
-%if 0%{?fedora} > 4
-BuildRequires: jack-audio-connection-kit-devel
-%endif
-BuildRequires: nas-devel
+%{?_with_jack:BuildRequires: jack-audio-connection-kit-devel}
+%{?_with_esd:BuildRequires: esound-devel}
+%{?_with_nas:BuildRequires: nas-devel}
 BuildRequires: findutils sed
 %if %{make_cvs}
 BuildRequires: automake libtool
@@ -71,8 +79,7 @@ Requires: qt3-devel
 Requires: pkgconfig
 Requires: glib2-devel
 %description devel
-Install arts-devel if you intend to write applications using arts (such as
-KDE applications using sound).
+Install %{name}-devel if you intend to write applications using aRts.
 
 
 %prep
@@ -86,6 +93,7 @@ KDE applications using sound).
 
 %patch50 -p1 -b .dlopenext
 %patch51 -p1 -b .libtool-shlibext
+%patch100 -p4 -b .rh#444484
 
 %if %{make_cvs}
   make -f admin/Makefile.common cvs
@@ -102,7 +110,11 @@ unset QTDIR && . /etc/profile.d/qt.sh
   --disable-dependency-tracking \
   --enable-new-ldflags \
   --disable-libmad \
-%if %{final}
+  --with-alsa \
+  %{?_with_esd} %{!?_with_esd:--without-esd} \
+  %{?_with_jack} %{!?_with_jack:--without-jack}\
+  %{?_with_nas} %{!?_with_nas:--without-nas} \
+%if 0%{?final}
   --enable-final
 %endif
 
@@ -188,6 +200,10 @@ rm -rf  %{buildroot}
 
 
 %changelog
+* Thu May 15 2008 Rex Dieter <rdieter at fedoraproject.org> 8:1.5.9-3
+- arts support for mixed multilib usage (#444484)
+- f10+: drop optional esd, jack, nas support
+
 * Wed Mar 12 2008 Rex Dieter <rdieter at fedoraproject.org> 8:1.5.9-2
 - s/qt-devel/qt3-devel/
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/arts.git/commit/?h=epel7&id=f81f55d13c62f105dbecb9df524fca792a456991


More information about the scm-commits mailing list