File mingw64-pcaudiolib.spec of Package mingw64-pcaudiolib

#
# spec file for package mingw64-pcaudiolib
#
# Copyright (c) 2025, Martin Hauke <mardnh@gmx.de>
#
# 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 realname pcaudiolib
Name:           mingw64-%{realname}
Version:        1.3
Release:        0
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/%{realname}/archive/%{version}.tar.gz#/%{realname}-%{version}.tar.gz
BuildRequires:  libtool
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  mingw64-cross-gcc-c++
%_mingw64_package_header_debug
BuildArch:      noarch

%description
The Portable C Audio Library (pcaudiolib) provides a C API to different audio devices.

%package -n mingw64-%{realname}-devel
Summary:        Development files for %{name}
Group:          Development/Libraries/C and C++

%description -n mingw64-%{realname}-devel
The mingw64-%{realname}-devel package contains libraries and header files
for developing applications that use %{name}.

%_mingw64_debug_package

%prep
%autosetup -p1 -n %{realname}-%{version}

%build
./autogen.sh
%{_mingw64_configure}
%{_mingw64_make} %{?_smp_mflags}

%install
%{_mingw64_make_install}

%files -n mingw64-%{realname}-devel
%license COPYING
%{_mingw64_includedir}/pcaudiolib
%{_mingw64_libdir}/libpcaudio.a

%changelog
openSUSE Build Service is sponsored by