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