2018-01-22 11:21:52 +00:00
|
|
|
#
|
|
|
|
# spec file for package rtaudio
|
|
|
|
#
|
2019-06-09 19:36:36 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2018-01-22 11:21:52 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-06-09 19:36:36 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-01-22 11:21:52 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-01-22 14:56:09 +00:00
|
|
|
%define sover 6
|
2018-01-22 11:21:52 +00:00
|
|
|
Name: rtaudio
|
2019-06-09 19:36:36 +00:00
|
|
|
Version: 5.1.0
|
2018-01-22 11:21:52 +00:00
|
|
|
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/
|
2019-06-09 19:36:36 +00:00
|
|
|
Source0: http://www.music.mcgill.ca/~gary/rtaudio/release/rtaudio-%{version}.tar.gz
|
2018-01-22 11:21:52 +00:00
|
|
|
BuildRequires: alsa-lib-devel
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: jack-audio-connection-kit-devel
|
|
|
|
BuildRequires: libpulse-devel
|
|
|
|
|
|
|
|
%description
|
2018-01-22 14:56:09 +00:00
|
|
|
RtAudio is a set of C++ classes that provide a common API for
|
|
|
|
realtime audio input/output across different operating systems.
|
|
|
|
|
|
|
|
%package -n librtaudio%{sover}
|
|
|
|
Summary: Real-time audio I/O library
|
2018-01-22 11:21:52 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2018-01-22 14:56:09 +00:00
|
|
|
%description -n librtaudio%{sover}
|
|
|
|
RtAudio is a set of C++ classes that provide a common API for
|
|
|
|
realtime audio input/output across different operating systems.
|
|
|
|
RtAudio allows simultaneous multi API support, supports dynamic
|
|
|
|
connection of devices, provides extensive audio device parameter
|
|
|
|
control, allows audio device capability probing, and has automatic
|
|
|
|
internal conversion for data format, channel number compensation,
|
|
|
|
(de)interleaving, and byte-swapping.
|
2018-01-22 11:21:52 +00:00
|
|
|
|
|
|
|
%package devel
|
2018-01-22 14:56:09 +00:00
|
|
|
Summary: Development files for rtaudio
|
2018-01-22 11:21:52 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-01-22 14:56:09 +00:00
|
|
|
Requires: librtaudio%{sover} = %{version}-%{release}
|
2018-01-22 11:21:52 +00:00
|
|
|
|
|
|
|
%description devel
|
2018-01-22 14:56:09 +00:00
|
|
|
RtAudio is a set of C++ classes that provide a common API for
|
|
|
|
realtime audio input/output across different operating systems.
|
|
|
|
|
|
|
|
This subpackage contains the headers for rtaudio.
|
2018-01-22 11:21:52 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
# remove proprietary content
|
|
|
|
rm -r include/ tests/Windows
|
|
|
|
# remove all hidden files
|
|
|
|
find . -name ".*" -delete
|
|
|
|
# extract livense from readme
|
2019-06-09 19:36:36 +00:00
|
|
|
sed -n '/license/,$p' README.md > COPYING
|
2018-01-22 11:21:52 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2018-01-22 14:56:09 +00:00
|
|
|
%post -n librtaudio%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n librtaudio%{sover} -p /sbin/ldconfig
|
2018-01-22 11:21:52 +00:00
|
|
|
|
2018-01-22 14:56:09 +00:00
|
|
|
%files -n librtaudio%{sover}
|
2019-06-09 19:36:36 +00:00
|
|
|
%doc README.md doc/release.txt
|
2018-01-22 11:21:52 +00:00
|
|
|
%{_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
|