# # spec file for package pcaudiolib # # Copyright (c) 2024 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 0 Name: pcaudiolib Version: 1.2 Release: 2.3 Summary: Portable C Audio Library License: GPL-3.0-or-later Group: Development/Libraries/C and C++ URL: https://reecedunn.co.uk/espeak-for-android Source: https://github.com/espeak-ng/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: pkgconfig(alsa) BuildRequires: pkgconfig(libpulse) %description The Portable C Audio Library (pcaudiolib) provides a C API to different audio devices. %package -n libpcaudio%{sover} Summary: Cross platform audio library Group: System/Libraries %description -n libpcaudio%{sover} The Portable C Audio Library (pcaudiolib) provides a C API to different audio devices. %package devel Summary: Development files for libpcaudio0 Group: Development/Languages/C and C++ Requires: libpcaudio%{sover} = %{version} %description devel The Portable C Audio Library (pcaudiolib) provides a C API to different audio devices. %prep %autosetup %build ./autogen.sh %configure --disable-static --disable-silent-rules %make_build %install %make_install rm -vf %{buildroot}%{_libdir}/*.{a,la} %post -n libpcaudio%{sover} -p /sbin/ldconfig %postun -n libpcaudio%{sover} -p /sbin/ldconfig %files -n libpcaudio%{sover} %license COPYING %{_libdir}/libpcaudio.so.* %files devel %doc README.md %license COPYING %{_libdir}/libpcaudio.so %dir %{_includedir}/pcaudiolib %{_includedir}/pcaudiolib/audio.h %changelog * Sat Feb 24 2024 Jason Craig - Use %%autosetup in %%prep section. * Wed May 4 2022 Ferdinand Thiessen - Update to version 1.2 * Fix cancellation snappiness * Alsa: fixed sample_size calculation, multiply with channel count. * Fix some typos * Mon Apr 22 2019 Luigi Baldoni - Update to version 1.1 * Fix handling EBADFD, EPIPE and short write when writing to the ALSA device. * Fix audio echos when using `snd_pcm_drop` in ALSA devices. * Mon Mar 5 2018 jengelh@inai.de - Set RPM groups. Trim other-OS mentions. * Mon Feb 19 2018 aloisio@gmx.com - Spec cleanup * Sun Oct 1 2017 aavindraa@gmail.com - package for the first time