File mingw64-libadlmidi.spec of Package mingw64-libadlmidi
#
# spec file for package mingw64-libadlmidi
#
# 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 libadlmidi
Name: mingw64-%{realname}
Version: 1.6.1
Release: 0
Summary: A software MIDI synthesizer library with OPL3 emulation
License: GPL-3.0-only AND LGPL-3.0-only
Group: Development/Languages/C and C++
URL: https://github.com/Wohlstand/libADLMIDI
Source: https://github.com/Wohlstand/libADLMIDI/archive/refs/tags/v%{version}.tar.gz#/libADLMIDI-%{version}.tar.gz
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-libSDL2-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
A software MIDI synthesizer library with OPL3 emulation (FM synthesis).
The library is based on the ADLMIDI, a multiplatform MIDI player with OPL3 emulation:
https://bisqwit.iki.fi/source/adlmidi.html
%package -n mingw64-%{realname}-devel
Summary: Development package for %{name}
Group: Development/Languages/C and C++
Requires: mingw64-%{realname} = %{version}
%description -n mingw64-%{realname}-devel
Development and header files for libADLMIDI.
%_mingw64_debug_package
%prep
%autosetup -p1 -n libADLMIDI-%{version}
%build
%{_mingw64_cmake}
%{_mingw64_cmake_build}
%install
%{_mingw64_cmake_install}
rm -Rv %{buildroot}%{_mingw64_datadir}/doc/
%files
%license LICENSE LICENSE.GPL-3.txt LICENSE.LGPL-2.1.txt
%doc README.md
%{_mingw64_bindir}/libADLMIDI.dll
%files -n mingw64-%{realname}-devel
%{_mingw64_includedir}/adlmidi.h
%{_mingw64_libdir}/libADLMIDI.dll.a
%{_mingw64_libdir}/pkgconfig/libADLMIDI.pc
%{_mingw64_libdir}/cmake/libADLMIDI
%changelog