File mingw32-fluidsynth.spec of Package mingw32-fluidsynth
#
# spec file for package mingw32-fluidsynth
#
# 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 fluidsynth
%define lname mingw32-libfluidsynth3
Name: mingw32-fluidsynth
Version: 2.4.3
Release: 0
Summary: A Real-Time Software Synthesizer That Uses Soundfont(tm)
License: LGPL-2.1-or-later
Group: Productivity/Multimedia/Sound/Midi
URL: https://www.fluidsynth.orga/
Source: https://github.com/FluidSynth/fluidsynth/archive/refs/tags/v%{version}.tar.gz#/%{realname}-%{version}.tar.gz
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-cross-cmake
BuildRequires: mingw32-glib2-devel >= 2.6.5
BuildRequires: mingw32-portaudio-devel
BuildRequires: mingw32-libinstpatch-devel >= 1.1.0
BuildRequires: mingw32-libsndfile-devel
BuildRequires: mingw32-SDL2-devel
%_mingw32_package_header_debug
BuildArch: noarch
%description
FluidSynth (formerly IIWU Synth) is a real-time software synthesizer
based on the SoundFont(tm) 2 specifications. It can read MIDI events
from the MIDI input device and render them to the audio device. It
can also play MIDI files.
%package -n %lname
Summary: This package contains the shared library for Fluidsynth
Group: System/Libraries
%description -n %lname
This package contains the shared library for Fluidsynth.
%package -n mingw32-fluidsynth-devel
Summary: Development package for the fluidsynth library
Group: Development/Libraries/C and C++
Requires: mingw32-glib2-devel
Requires: %lname = %{version}
%description -n mingw32-fluidsynth-devel
This package contains the files needed to compile programs that use the
fluidsynth library.
%_mingw32_debug_package
%prep
%autosetup -p1 -n %{realname}-%{version}
%build
%{_mingw32_cmake} \
-Denable-portaudio=1 \
-Denable-dbus=0
%{_mingw32_cmake_build}
%install
%{_mingw32_cmake_install}
%files
%license LICENSE
%doc README.md
%{_mingw32_bindir}/fluidsynth.exe
%files -n %lname
%{_mingw32_bindir}/libfluidsynth-3.dll
%files -n mingw32-fluidsynth-devel
%{_mingw32_includedir}/fluidsynth.h
%{_mingw32_includedir}/fluidsynth
%{_mingw32_libdir}/libfluidsynth-3.dll.a
%{_mingw32_libdir}/pkgconfig/fluidsynth.pc
%{_mingw32_libdir}/cmake/fluidsynth
%changelog