File mingw64-sonivox.spec of Package mingw64-sonivox

#
# spec file for package mingw64-sonivox
#
# 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 sonivox
%_mingw64_package_header_debug
Name:           mingw64-%{realname}
Version:        3.6.16
Release:        0
Summary:        Fork of the AOSP 'platform_external_sonivox' project
License:        Apache-2.0
Group:          Development/Languages/C and C++
URL:            https://github.com/pedrolcl/sonivox
Source:         https://github.com/pedrolcl/sonivox/archive/refs/tags/v%{version}.tar.gz#/%{realname}-%{version}.tar.gz
BuildRequires:  mingw64-cross-cmake
BuildRequires:  mingw64-cross-gcc-c++
BuildArch:      noarch

%description
Sonivox is a fork of the Android Open Source Project 'platform_external_sonivox'
including a CMake based build system to be used not on Android, but on any other
Operating System.

This is a Wave Table synthesizer, not using external soundfont files but
embedded samples instead. It is also a real time GM synthesizer.
It may be indicated in projects for small embedded devices. There is neither
MIDI input nor Audio output facilities included in the library. You need to
provide your own input/output.

%package devel
Summary:        Development package for %{name}
Group:          Development/Languages/C and C++
Requires:       mingw64-%{realname} = %{version}

%description -n mingw64-%{realname}-devel
This subpackage contains libraries and header files for developing
applications that want to make use of %{name}.

%_mingw64_debug_package

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

%build
%{_mingw64_cmake} \
       -DBUILD_EXAMPLE:BOOL=FALSE \
       -DBUILD_TESTING:BOOL=FALSE
%{_mingw64_cmake_build}

%install
%{_mingw64_cmake_install}

%files
%{_mingw64_bindir}/libsonivox.dll

%files devel
%license LICENSE
%{_mingw64_includedir}/sonivox
%{_mingw64_libdir}/libsonivox-static.a
%{_mingw64_libdir}/libsonivox.dll.a
%{_mingw64_libdir}/pkgconfig/sonivox.pc
%{_mingw64_libdir}/pkgconfig/sonivox-static.pc
%{_mingw64_libdir}/cmake/sonivox

%changelog
openSUSE Build Service is sponsored by