File ChowCentaur.spec of Package ChowCentaur

#
# spec file for package ChowCentaur
#
# 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:           ChowCentaur
Version:        1.2.0+git0.ff75233
Release:        0
Summary:        Digital emulation of the Klon Centaur guitar pedal
License:        BSD-3-Clause
Group:          Productivity/Multimedia/Sound/Midi
URL:            https://github.com/jatinchowdhury18/KlonCentaur
Source0:        https://github.com/jatinchowdhury18/KlonCentaur/archive/v%{version}.tar.gz#/%{name}-%version.tar.xz
BuildRequires:  JUCE6-source
BuildRequires:  Mesa-libGL-devel
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  libXcursor-devel
BuildRequires:  libXrandr-devel
BuildRequires:  libcurl-devel
BuildRequires:  libjack-devel
BuildRequires:  lv2-devel
BuildRequires:  lv2_ttl_generator
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xinerama)

%description

Digital emulation of the Klon Centaur guitar pedal using RNNs, Wave Digital Filters, and more

%package -n vst-%{name}
Summary:        Digital emulation of the Klon Centaur guitar pedal (VST)

%description -n vst-%{name}
Digital emulation of the Klon Centaur guitar pedal using RNNs, Wave Digital Filters, and more

%package -n vst3-%{name}
Summary:        Digital emulation of the Klon Centaur guitar pedal (VST3)

%description -n vst3-%{name}

Digital emulation of the Klon Centaur guitar pedal using RNNs, Wave Digital Filters, and more

%package -n lv2-%{name}
Summary:        Digital emulation of the Klon Centaur guitar pedal (LV2)

%description -n lv2-%{name}

Digital emulation of the Klon Centaur guitar pedal using RNNs, Wave Digital Filters, and more

%prep
%setup -q

ln -s %{_prefix}/src/JUCE-6.[0-9].[0-9] modules/JUCE

sed -i -e 's/\# juce_set_vst2_sdk_path(C:\/SDKs\/VST_SDK\/VST2_SDK\/)/juce_set_vst2_sdk_path(\/usr\/include)/' CMakeLists.txt

%build
%cmake
%cmake_build

%install
mkdir -p %{buildroot}%{_bindir}
install build/ChowCentaur/ChowCentaur_artefacts/RelWithDebInfo/Standalone/* %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_libdir}/vst
install build/ChowCentaur/ChowCentaur_artefacts/RelWithDebInfo/VST/libChowCentaur.so %{buildroot}%{_libdir}/vst/ChowCentaurMono.so
mkdir -p %{buildroot}%{_libdir}/vst3
cp -r build/ChowCentaur/ChowCentaur_artefacts/RelWithDebInfo/VST3/*.vst3 %{buildroot}%{_libdir}/vst3/
mkdir -p %{buildroot}%{_libdir}/lv2
cp -r build/ChowCentaur/ChowCentaur_artefacts/RelWithDebInfo/LV2/*.lv2 %{buildroot}%{_libdir}/lv2/

%files
%{_bindir}/*
%license LICENSE
%doc README.md

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

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

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

%changelog
openSUSE Build Service is sponsored by