forked from pool/libsoundio
Initial package for libsoundio OBS-URL: https://build.opensuse.org/request/show/836407 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libsoundio?expand=0&rev=1
90 lines
2.5 KiB
RPMSpec
90 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package libsoundio
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define sover 2
|
|
Name: libsoundio
|
|
Version: 2.0.0
|
|
Release: 0
|
|
Summary: A C99 library for realtime audio input/output
|
|
License: MIT
|
|
Group: Development/Libraries/C and C++
|
|
URL: https://libsound.io/
|
|
Source: https://github.com/andrewrk/libsoundio/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
BuildRequires: cmake
|
|
BuildRequires: gcc
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(alsa)
|
|
BuildRequires: pkgconfig(jack)
|
|
BuildRequires: pkgconfig(libpulse)
|
|
|
|
%description
|
|
This library is an abstraction; however in the delicate balance between
|
|
performance and power, and API convenience, the scale is tipped closer to
|
|
the former. Features that only exist in some sound backends are exposed.
|
|
|
|
%package -n libsoundio%{sover}
|
|
Summary: A C99 library for realtime audio input/output
|
|
Group: System/Libraries
|
|
|
|
%description -n libsoundio%{sover}
|
|
This appropriate for games, music players, digital audio workstations, and
|
|
various utilities.
|
|
|
|
This package contains the shared library.
|
|
|
|
%package devel
|
|
Summary: Development files for libsoundio
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libsoundio%{sover} = %{version}
|
|
|
|
%description devel
|
|
A C99 library for realtime audio input/output.
|
|
|
|
This package contains header files and libraries needed to develop
|
|
application that use libsoundio.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%cmake \
|
|
-DBUILD_STATIC_LIBS=OFF \
|
|
-DBUILD_EXAMPLE_PROGRAMS=OFF \
|
|
-DBUILD_TESTS=OFF \
|
|
-DENABLE_COREAUDIO=OFF \
|
|
-DENABLE_WASAPI=OFF
|
|
|
|
%make_build
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
%post -n libsoundio%{sover} -p /sbin/ldconfig
|
|
%postun -n libsoundio%{sover} -p /sbin/ldconfig
|
|
|
|
%files -n libsoundio%{sover}
|
|
%license LICENSE
|
|
%doc CHANGELOG.md README.md
|
|
%{_libdir}/libsoundio.so.%{sover}*
|
|
|
|
%files devel
|
|
%{_includedir}/soundio/
|
|
%{_libdir}/libsoundio.so
|
|
|
|
%changelog
|