File guitarix-vst.spec of Package guitarix-vst

#
# spec file for package guitarix-vst
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) Konstantin Voinov konstantin.voinov@gmail.com
#
# 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/
#

%if %{defined fedora}
%undefine _hardened_build
%global optflags %(echo %{optflags} | sed 's/-Wp,-D_GLIBCXX_ASSERTIONS / /')
%endif
Name:           guitarix-vst
Version:        0.3+git.5.3164b9f
Release:        0
Summary:        Guitarix VST3 wrapper for Linux 
License:        GPL-3.0-only
URL:            https://github.com/brummer10/guitarix.vst
Source0:        %{name}-%{version}.tar.gz
Source1:        LICENSE
%if 0%{?is_opensuse} && 0%{?suse_version} < 1600
BuildRequires:  gcc12
BuildRequires:  gcc12-c++
%else
BuildRequires:  gcc-c++
%endif
BuildRequires:  libboost_headers-devel
BuildRequires:  pkgconfig(xrandr)
BuildRequires:  pkgconfig(xcursor)
BuildRequires:  pkgconfig(lilv-0)
BuildRequires:  pkgconfig(avahi-gobject)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(gtk+-x11-3.0)
BuildRequires:  pkgconfig(glibmm-2.4)
BuildRequires:  pkgconfig(giomm-2.4)
BuildRequires:  pkgconfig(avahi-glib)
BuildRequires:  pkgconfig(avahi-client)
BuildRequires:  pkgconfig(sndfile)
BuildRequires:  pkgconfig(eigen3)
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(fftw3f)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xinerama)

%description
Guitarix.vst is the full blown guitarix stack as VST3 plugin for Linux, 
using Juce to wrap the guitarix engine into a VST3 plugin.
It allow to load/save your presets, download presets from online and load
external LV2 plugs and IR Files, like the guitarix stand-alone version.
But all that as a VST3 plugin in your DAW. All parameters been exposed to the DAW, so accessible for automation.
Other than the stand-alone, the VST3 version allows to switch the input to a real stereo input,
so it may match better your channel strip in the DAW.
For Hdpi users, the GUI is full scalable.

%package -n vst3-%{name}
Summary: %summary

%description -n vst3-%{name}
Guitarix.vst is the full blown guitarix stack as VST3 plugin for Linux, 
using Juce to wrap the guitarix engine into a VST3 plugin.
It allow to load/save your presets, download presets from online and load
external LV2 plugs and IR Files, like the guitarix stand-alone version.
But all that as a VST3 plugin in your DAW. All parameters been exposed to the DAW, so accessible for automation.
Other than the stand-alone, the VST3 version allows to switch the input to a real stereo input,
so it may match better your channel strip in the DAW.
For Hdpi users, the GUI is full scalable.

%prep
%autosetup -p1
cp %{SOURCE1} ./

%build
%if 0%{?suse_version} < 1600
export CC=gcc-12
export CXX=g++-12
%endif
%make_build

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

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

%changelog
openSUSE Build Service is sponsored by