File vst3sdk.spec of Package vst3sdk
#
# spec file for package vst3sdk
#
# Copyright (c) 2021 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 package_name vst3sdk
%define package_version 3.7.3
%define build_id 20
%define vstgui_version 4_10_1
Name: %{package_name}
Version: 3.7.3
Release: 0
Summary: VST3 Software Development Kit
License: GPL-3.0
Group: Productivity/Multimedia/Sound/Utilities
#NOTE:JK: no proper download link
#Source0: https://www.steinberg.net/vst3sdk
#Source0: vst-sdk_3.7.2_build-28_2021-03-30.zip
Source0: %{package_name}-%{version}.tar.gz
Patch1: vst3sdk.1-fix-cxx-syntax.patch
URL: https://www.steinberg.net/en/company/developers.html
BuildRequires: gcc-c++
BuildRequires: libstdc++-devel
BuildRequires: cmake
BuildRequires: libxcb-devel
BuildRequires: xcb-util-devel
BuildRequires: xcb-proto-devel
BuildRequires: xcb-util-cursor-devel
BuildRequires: libxkbcommon-x11-devel
BuildRequires: xcb-util-keysyms-devel
BuildRequires: fontconfig-devel
BuildRequires: cairo-devel
BuildRequires: gtkmm3-devel
BuildRequires: sqlite3-devel
%description
A VST plug-in is an audio processing component that is utilized
within a host application. This software development kit contains
following development files:
* The VST 3 API
* VST 3 Implementation Helper Classes
* AAX, AU, AUv3 and VST 2 wrappers
* VST 3 plug-ins Examples
%prep
%autosetup -p0
%build
export CPATH=/usr/include:/usr/include/X11:/usr/include/libxkbcommon
export CXXFLAGS="-include cstdio -include limits -std=c++2a"
%cmake -SMTG_CREATE_PLUGIN_LINK=0 -DCMAKE_INSTALL_PREFIX=/usr ..
%make_jobs
%install
mkdir -p %{buildroot}%{_libdir}/vst3sdk
install -c -p -m 644 lib/*.a %{buildroot}%{_libdir}/vst3sdk
mkdir -p %{buildroot}%{_libdir}/vst3
cp -a VST3/Debug/* %{buildroot}%{_libdir}/vst3
mkdir -p %{buildroot}%{_prefix}/include/vst3sdk
cd ..
find . -type f -name "LICENSE.txt" -exec cp --parents {} %{buildroot}%{_prefix}/include/vst3sdk \;
find . -type f -name "*.h" -exec cp --parents {} %{buildroot}%{_prefix}/include/vst3sdk \;
find . -type f -name "*.cpp" -exec cp --parents {} %{buildroot}%{_prefix}/include/vst3sdk \;
find %{buildroot}%{_prefix}/include/vst3sdk -type f -name "LICENSE.txt" -exec chmod 644 {} \;
find %{buildroot}%{_prefix}/include/vst3sdk -type f -name "*.h" -exec chmod 644 {} \;
find %{buildroot}%{_prefix}/include/vst3sdk -type f -name "*.cpp" -exec chmod 644 {} \;
%files
%{_libdir}/vst3
%package devel
Summary: VST3 SDK development files
Group: Development/Libraries/C and C++
%description devel
A VST plug-in is an audio processing component that is utilized
within a host application. This contains the sample plugins of
the SDK.
%files devel
%{_prefix}/include/vst3sdk
%{_libdir}/vst3sdk
%changelog