File mingw64-fluidsynth.spec of Package mingw64-fluidsynth
#
# spec file for package mingw64-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
Name: mingw64-fluidsynth
Version: 2.4.8
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: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-glib2-devel >= 2.6.5
BuildRequires: mingw64-portaudio-devel
BuildRequires: mingw64-libinstpatch-devel >= 1.1.0
BuildRequires: mingw64-libsndfile-devel
BuildRequires: mingw64-SDL2-devel
%_mingw64_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 mingw64-libfluidsynth3
Summary: This package contains the shared library for Fluidsynth
Group: System/Libraries
%description -n mingw64-libfluidsynth3
This package contains the shared library for Fluidsynth.
%package -n mingw64-fluidsynth-devel
Summary: Development package for the fluidsynth library
Group: Development/Libraries/C and C++
Requires: mingw64-glib2-devel
Requires: mingw64-libfluidsynth3 = %{version}
%description -n mingw64-fluidsynth-devel
This package contains the files needed to compile programs that use the
fluidsynth library.
%_mingw64_debug_package
%prep
%autosetup -p1 -n %{realname}-%{version}
%build
%{_mingw64_cmake} \
-Denable-portaudio=1 \
-Denable-dbus=0
%{_mingw64_cmake_build}
%install
%{_mingw64_cmake_install}
%files
%license LICENSE
%doc README.md
%{_mingw64_bindir}/fluidsynth.exe
%files -n mingw64-libfluidsynth3
%{_mingw64_bindir}/libfluidsynth-3.dll
%files -n mingw64-fluidsynth-devel
%{_mingw64_includedir}/fluidsynth.h
%{_mingw64_includedir}/fluidsynth
%{_mingw64_libdir}/libfluidsynth-3.dll.a
%{_mingw64_libdir}/pkgconfig/fluidsynth.pc
%{_mingw64_libdir}/cmake/fluidsynth
%changelog