packages: rtaudio/rtaudio.spec, rtaudio/rtaudio-link.patch (NEW)=?UTF-8?Q?=20?=- updated ...

qboosh qboosh at pld-linux.org
Mon Jun 18 17:51:26 CEST 2012


Author: qboosh                       Date: Mon Jun 18 15:51:25 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- updated to 4.0.11
- switched to included configure (changes soname to upstream's)
- enabled pulseaudio support, disabled oss (broken on Linux currently)- added link patch (fixes pulseaudio build)

---- Files affected:
packages/rtaudio:
   rtaudio.spec (1.10 -> 1.11) , rtaudio-link.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/rtaudio/rtaudio.spec
diff -u packages/rtaudio/rtaudio.spec:1.10 packages/rtaudio/rtaudio.spec:1.11
--- packages/rtaudio/rtaudio.spec:1.10	Sun Sep 11 15:54:04 2011
+++ packages/rtaudio/rtaudio.spec	Mon Jun 18 17:51:20 2012
@@ -2,17 +2,20 @@
 Summary:	RtAudio - set of C++ classes providing common API for realtime audio I/O
 Summary(pl.UTF-8):	RtAudio - zbiór klas C++ udostępniających wspólne API do we/wy dźwięku
 Name:		rtaudio
-Version:	4.0.10
+Version:	4.0.11
 Release:	1
 License:	MIT-like
 Group:		Libraries
 Source0:	http://www.music.mcgill.ca/~gary/rtaudio/release/%{name}-%{version}.tar.gz
-# Source0-md5:	68fc7fead74762e5fa3e8aa69ae1c10d
+# Source0-md5:	f383584987fa43affb848dc171d74fcd
+Patch0:		%{name}-link.patch
 URL:		http://www.music.mcgill.ca/~gary/rtaudio/
 BuildRequires:	alsa-lib-devel
+BuildRequires:	autoconf >= 2.50
 BuildRequires:	jack-audio-connection-kit-devel
 BuildRequires:	libstdc++-devel
 BuildRequires:	libtool
+BuildRequires:	pulseaudio-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -56,19 +59,25 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
-#configure is used only for examples
+%{__autoconf}
+%configure \
+	--with-alsa \
+	--with-jack \
+	--with-pulse
+# NOTE: --with-oss is broken on Linux currently
 
-libtool --mode=compile --tag=CXX %{__cxx} -c %{rpmcxxflags} -o RtAudio.lo RtAudio.cpp -D__LINUX_OSS__ -D__LINUX_ALSA__ -D__LINUX_JACK__ -Iinclude
-libtool --mode=link --tag=CXX %{__cxx} %{rpmldflags} -o librtaudio.la RtAudio.lo -rpath %{_libdir} -ljack -lasound -lpthread
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir}}
 
-libtool --mode=install install librtaudio.la $RPM_BUILD_ROOT%{_libdir}
-install RtAudio.h RtError.h $RPM_BUILD_ROOT%{_includedir}
+cp -dp librtaudio.* $RPM_BUILD_ROOT%{_libdir}
+cp -p RtAudio.h RtError.h $RPM_BUILD_ROOT%{_includedir}
+/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -80,13 +89,12 @@
 %defattr(644,root,root,755)
 %doc readme doc/release.txt
 %attr(755,root,root) %{_libdir}/librtaudio.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/librtaudio.so.0
+%attr(755,root,root) %ghost %{_libdir}/librtaudio.so.4
 
 %files devel
 %defattr(644,root,root,755)
 %doc doc/html/*
 %attr(755,root,root) %{_libdir}/librtaudio.so
-%{_libdir}/librtaudio.la
 %{_includedir}/RtAudio.h
 %{_includedir}/RtError.h
 
@@ -100,6 +108,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.11  2012/06/18 15:51:20  qboosh
+- updated to 4.0.11
+- switched to included configure (changes soname to upstream's)
+- enabled pulseaudio support, disabled oss (broken on Linux currently)- added link patch (fixes pulseaudio build)
+
 Revision 1.10  2011/09/11 13:54:04  qboosh
 - updated to 4.0.10
 

================================================================
Index: packages/rtaudio/rtaudio-link.patch
diff -u /dev/null packages/rtaudio/rtaudio-link.patch:1.1
--- /dev/null	Mon Jun 18 17:51:26 2012
+++ packages/rtaudio/rtaudio-link.patch	Mon Jun 18 17:51:20 2012
@@ -0,0 +1,11 @@
+--- rtaudio-4.0.11/configure.ac.orig	2012-06-13 22:27:59.000000000 +0200
++++ rtaudio-4.0.11/configure.ac	2012-06-18 17:04:11.471406165 +0200
+@@ -84,7 +84,7 @@
+   AC_ARG_WITH(pulse, [  --with-pulse = choose PulseAudio API support (linux only)], [
+     api="$api -D__LINUX_PULSE__"
+     AC_MSG_RESULT(using PulseAudio)
+-    AC_CHECK_LIB(pulse-simple, pa_simple_new, , AC_MSG_ERROR(PulseAudio support requires the pulse-simple library!))], )
++    AC_CHECK_LIB(pulse-simple, pa_simple_new, [LIBS="$LIBS -lpulse-simple -lpulse"], [AC_MSG_ERROR(PulseAudio support requires the pulse-simple library!)], -lpulse)], )
+ 
+   # Look for OSS flag
+   AC_ARG_WITH(oss, [  --with-oss = choose OSS API support (linux only)], [
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/rtaudio/rtaudio.spec?r1=1.10&r2=1.11



More information about the pld-cvs-commit mailing list