File ORCHESTOOLS-GENESYN-2.spec of Package ORCHESTOOLS-GENESYN-2

#
# spec file for package ORCHESTOOLS-GENESYN
#
# Copyright (c) 2022 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/
#


Name:           ORCHESTOOLS-GENESYN-2
Version:        1.0.1
Release:        0
Summary:        4 generator additive synth
License:        GPL-3.0-only
URL:            https://github.com/ilirbajri/ORCHESTOOLS-GENESYN-2/
Source0:        %{name}-%{version}.tar.gz
BuildRequires:  HISE
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(jack)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xinerama)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  Mesa-libGL-devel
BuildRequires:  libXrandr-devel
BuildRequires:  libXcursor-devel
BuildRequires:  libjack-devel
BuildRequires:  libcurl-devel
BuildRequires:  ladspa-devel

%description
The second version of ORCHESTOOLS | GENESYN the 4 generator additive synth.

Built with HISE http://hise.audio which is released under GPLv3 open source license.
ORCHESTOOLS | GENESYN 2 is a GPLv3 open source licensed public domain instrument.

%package -n vst3-%{name}
Summary:        4 generator additive synth (VST3)
Obsoletes:      %{name} <= 1.0.1
%description -n vst3-%{name}
The second version of ORCHESTOOLS | GENESYN the 4 generator additive synth.

Built with HISE http://hise.audio which is released under GPLv3 open source license.
ORCHESTOOLS | GENESYN 2 is a GPLv3 open source licensed public domain instrument.

%prep
%setup -q

%build
HISE set_hise_folder -p:/usr/lib64/HISE
sed -i 's/UseIPP value="Yes"/UseIPP value="No"/' ~/.hise/compilerSettings.xml
HISE set_project_folder -p:`pwd`
HISE export_ci Presets/OT\ GENESYN\ 2.hip -p:VST3 -a:x86x64 -t:instrument
#sed -i -e 's/JUCEOPTIONS/JUCEOPTIONS JUCE_VST3_CAN_REPLACE_VST2="0"/' Binaries/AutogeneratedProject.jucer
/usr/lib64/HISE/tools/projucer/Projucer --resave Binaries/AutogeneratedProject.jucer

CONFIG=Release make %{?_smp_mflags} -C Binaries/Builds/LinuxMakefile/

%install
mkdir -p %{buildroot}%{_libdir}/vst3
cp -r Binaries/Builds/LinuxMakefile/build/*.vst3 %{buildroot}%{_libdir}/vst3/

%files -n vst3-%{name}
%license LICENSE
%doc README.md
%{_libdir}/vst3/

%changelog
openSUSE Build Service is sponsored by