File vst3-JS_Inflator.spec of Package vst3-JS_Inflator
#
# spec file for package vst3-JS_Inflator
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define _sdkversion 3.7.12_build_20
Name: vst3-JS_Inflator
Version: 2.0.3.2+git.5.4951be3
Release: 0
Summary: Oxford Inflator clone
License: GPL-3.0-only
URL: https://github.com/Kiriki-liszt/JS_Inflator
Source0: %{name}-%{version}.tar.xz
Source1: vst3sdk-%{_sdkversion}.tar.xz
Patch0: fix-naming.patch
# Patch1: rechoir-add-pango-library.patch
# Patch2: vst3sdk-fix-compilation-errors-with-GCC-14.patch
Patch9: vst3sdk-xkb-include.patch
BuildRequires: cmake
BuildRequires: fftw3-devel
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(gtkmm-3.0)
BuildRequires: pkgconfig(jack)
BuildRequires: pkgconfig(liblo)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcb-cursor)
BuildRequires: pkgconfig(xcb-keysyms)
BuildRequires: pkgconfig(xcb-util)
BuildRequires: pkgconfig(xcb-xkb)
BuildRequires: pkgconfig(xkbcommon)
BuildRequires: pkgconfig(xkbcommon-x11)
%description
JS Inflator is a copy of Sonnox Inflator.
Runs in double precision 64-bit internal processing.
Also double precision input / output if supported.
%prep
%setup -q -b 0
%setup -q -T -D -b 1
%patch -P 0 -p1
%patch -P 9 -p1 -d %{_builddir}/vst3sdk-%{_sdkversion}
%build
%cmake -Dvst3sdk_SOURCE_DIR=%{_builddir}/vst3sdk-%{_sdkversion} \
-DSMTG_ENABLE_VST3_HOSTING_EXAMPLES=OFF \
-DSMTG_ENABLE_VST3_PLUGIN_EXAMPLES=OFF \
-DSMTG_RUN_VST_VALIDATOR=OFF \
-DSMTG_CREATE_PLUGIN_LINK=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_STATIC_LIBS=ON
%cmake_build
%install
mkdir -p %{buildroot}%{_libdir}/vst3
cp -r build/VST3/RelWithDebInfo/*.vst3 %{buildroot}%{_libdir}/vst3/
%files
%license LICENSE
%doc README.md
%dir %{_libdir}/vst3
%{_libdir}/vst3/*
%changelog