Summary: Real-time Audio I/O Library Name: rtaudio Version: 4.0.11 Release: 4%{?dist} License: MIT Group: System Environment/Libraries URL: http://www.music.mcgill.ca/~gary/rtaudio/ # The original tarball contains nonfree bits. We remove them and create a free tarball: # VERSION=4.0.11 # wget -N http://www.music.mcgill.ca/~gary/rtaudio/release/rtaudio-$VERSION.tar.gz # tar zxf rtaudio-$VERSION.tar.gz # rm -fr rtaudio-$VERSION/include/ rtaudio-$VERSION/tests/Windows # tar zcf rtaudio-$VERSION-fe.tar.gz rtaudio-$VERSION Source0: %{name}-%{version}-fe.tar.gz BuildRequires: alsa-lib-devel BuildRequires: jack-audio-connection-kit-devel BuildRequires: pulseaudio-libs-devel %description RtAudio is a set of C++ classes that provide a common API for realtime audio input/output across different operating systems. RtAudio significantly simplifies the process of interacting with computer audio hardware. It was designed with the following objectives: * object-oriented C++ design * simple, common API across all supported platforms * allow simultaneous multi-api support * support dynamic connection of devices * provide extensive audio device parameter control * allow audio device capability probing * automatic internal conversion for data format, channel number compensation, (de)interleaving, and byte-swapping %package devel Summary: Real-time Audio I/O Library Group: System Environment/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel RtAudio is a set of C++ classes that provide a common API for realtime audio input/output across different operating systems. RtAudio significantly simplifies the process of interacting with computer audio hardware. It was designed with the following objectives: * object-oriented C++ design * simple, common API across all supported platforms * allow simultaneous multi-api support * support dynamic connection of devices * provide extensive audio device parameter control * allow audio device capability probing * automatic internal conversion for data format, channel number compensation, (de)interleaving, and byte-swapping %prep %setup -q # Fix encoding issues for file in tests/teststops.cpp; do sed 's|\r||' $file > $file.tmp iconv -f ISO-8859-1 -t UTF8 $file.tmp > $file.tmp2 touch -r $file $file.tmp2 mv -f $file.tmp2 $file done # Remove empty directory rm -fr tests/Debug # To pass the optflags properly sed -i '/CFLAGS *=/d' Makefile.in # To fix the ppc64 compilation issue cp -p /usr/lib/rpm/config.{sub,guess} config/ %build export CFLAGS="%optflags -fPIC" %configure --with-jack --with-alsa --with-pulse # parallel make fails here make %install mkdir -p %{buildroot}%{_includedir} %{buildroot}%{_libdir} cp -a RtAudio.h RtError.h %{buildroot}%{_includedir} cp -p lib%{name}.so.%{version} %{buildroot}%{_libdir}/ ln -s %{_libdir}/lib%{name}.so.%{version} %{buildroot}%{_libdir}/lib%{name}.so ldconfig -v -n %{buildroot}%{_libdir} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc readme doc/release.txt %{_libdir}/lib%{name}.so.* %files devel %doc doc/html doc/images tests %{_includedir}/*.h %{_libdir}/lib%{name}.so %changelog * Thu Feb 14 2013 Fedora Release Engineering - 4.0.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Nov 15 2012 Brendan Jones 4.0.11-3 - Update source comments * Sun Oct 28 2012 Brendan Jones 4.0.11-2 - Add pulse dependancies * Sun Oct 14 2012 Brendan Jones 4.0.11-1 - Update to 4.011 * Wed Feb 09 2011 Fedora Release Engineering - 4.0.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Feb 05 2010 Orcan Ogetbil 4.0.7-1 - Update to 4.0.7 - Upstream is supporting shared libraries now. Drop the static library * Sun Jul 26 2009 Fedora Release Engineering - 4.0.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Fri Jun 05 2009 Orcan Ogetbil 4.0.6-1 - Update to 4.0.6 * Sat Feb 28 2009 Orcan Ogetbil 4.0.5-3 - Don't remove the tests/Release directory * Fri Feb 27 2009 Orcan Ogetbil 4.0.5-2 - Build static library only * Tue Feb 24 2009 Orcan Ogetbil 4.0.5-1 - Initial build