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
# PATCH-FIX-OPENSUSE vst3sdk-include_dirs.patch
Patch2: vst3sdk-include_dirs.patch
URL: https://www.steinberg.net/en/company/developers.html
BuildRequires: cmake >= 3.7
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(gtkmm-3.0)
BuildRequires: pkgconfig(pangocairo)
BuildRequires: pkgconfig(pangoft2)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xcb-cursor)
BuildRequires: pkgconfig(xcb-keysyms)
BuildRequires: pkgconfig(xcb-util)
BuildRequires: pkgconfig(xcb-xkb)
BuildRequires: pkgconfig(xkbcommon)
BuildRequires: pkgconfig(xkbcommon-x11)
ExcludeArch: %ix86
%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
%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.
%prep
%autosetup -p1
%build
###export CPATH=/usr/include:/usr/include/X11:/usr/include/libxkbcommon
###export CXXFLAGS="-include cstdio -include limits -std=c++2a"
###mkdir build && cd build
###cmake -SMTG_CREATE_PLUGIN_LINK=0 -DCMAKE_INSTALL_PREFIX=/usr ..
###make %%{?_smp_mflags}
%cmake \
-DCMAKE_BUILD_TYPE=Release
%cmake_build
%install
cd build
mkdir -p %{buildroot}%{_libdir}/vst3sdk
install -c -p -m 644 lib/Release/*.a %{buildroot}%{_libdir}/vst3sdk
mkdir -p %{buildroot}%{_libdir}/vst3
cp -a VST3/Release/* %{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 {} \;
%fdupes %{buildroot}
%files
%license LICENSE.txt
%{_libdir}/vst3
%files devel
%{_prefix}/include/vst3sdk
%{_libdir}/vst3sdk
%changelog