rtaudio/rtaudio.spec

115 lines
3.8 KiB
RPMSpec

#
# spec file for package rtaudio
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define soname 6
Name: rtaudio
Version: 5.0.0
Release: 0
Summary: Real-time Audio I/O Library
License: MIT
Group: Development/Libraries/C and C++
URL: http://www.music.mcgill.ca/~gary/rtaudio/
Source0: http://www.music.mcgill.ca/~gary/rtaudio/release/rtaudio-5.0.0.tar.gz
BuildRequires: alsa-lib-devel
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: jack-audio-connection-kit-devel
BuildRequires: libpulse-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 -n librtaudio%{soname}
Summary: Library rtaudio
Group: System/Libraries
Provides: rtaudio = %{version}
Obsoletes: rtaudio < %{version}
%description -n librtaudio%{soname}
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:
%package devel
Summary: Real-time Audio I/O Library
Group: Development/Libraries/C and C++
Requires: librtaudio%{soname} = %{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
# remove proprietary content
rm -r include/ tests/Windows
# remove all hidden files
find . -name ".*" -delete
# extract livense from readme
sed -n '/license/,$p' readme > COPYING
%build
%configure --with-jack --with-alsa --with-pulse --disable-static --disable-silent-rules
make %{?_smp_mflags}
%install
%make_install
rm %{buildroot}%{_libdir}/lib%{name}.la
%post -n librtaudio%{soname} -p /sbin/ldconfig
%postun -n librtaudio%{soname} -p /sbin/ldconfig
%files -n librtaudio%{soname}
%doc readme doc/release.txt
%{_libdir}/lib%{name}.so.*
%license COPYING
%files devel
%doc doc/html
%license COPYING
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/lib%{name}.so
%changelog