File BYOD.spec of Package BYOD
#
# spec file for package BYOD
#
# 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: BYOD
Version: 1.3.0+git.5.e2b6798
Release: 0
Summary: Build-your-own guitar distortion!
License: GPL-3.0-only
Group: Productivity/Multimedia/Sound/Midi
URL: https://github.com/Chowdhury-DSP/BYOD
Source0: %{name}-%{version}.tar.xz
Source1: %{name}.desktop
Source9: CPM.cmake
BuildRequires: Mesa-libGL-devel
BuildRequires: cmake >= 3.22
%if 0%{?is_opensuse} && 0%{?suse_version} < 1600
BuildRequires: gcc12
BuildRequires: gcc12-c++
%else
BuildRequires: gcc-c++
%endif
BuildRequires: libXcursor-devel
BuildRequires: libXrandr-devel
BuildRequires: libcurl-devel
BuildRequires: libjack-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xinerama)
%description
BYOD is a guitar distortion plugin with a customisable signal chain that allows users to create their own guitar
distortion effects. The plugin contains a wide variety of distortion effects from analog modelled circuits to purely
digital creations, along with some musical tone-shaping filters, and a handful of other useful processing blocks.
%package -n vst3-%{name}
Summary: Build-your-own guitar distortion! (VST3)
%description -n vst3-%{name}
BYOD is a guitar distortion plugin with a customisable signal chain that allows users to create their own guitar
distortion effects. The plugin contains a wide variety of distortion effects from analog modelled circuits to purely
digital creations, along with some musical tone-shaping filters, and a handful of other useful processing blocks.
%package -n lv2-%{name}
Summary: Build-your-own guitar distortion! (LV2)
%description -n lv2-%{name}
BYOD is a guitar distortion plugin with a customisable signal chain that allows users to create their own guitar
distortion effects. The plugin contains a wide variety of distortion effects from analog modelled circuits to purely
digital creations, along with some musical tone-shaping filters, and a handful of other useful processing blocks.
%package -n clap-%{name}
Summary: Build-your-own guitar distortion! (CLAP)
%description -n clap-%{name}
BYOD is a guitar distortion plugin with a customisable signal chain that allows users to create their own guitar
distortion effects. The plugin contains a wide variety of distortion effects from analog modelled circuits to purely
digital creations, along with some musical tone-shaping filters, and a handful of other useful processing blocks.
%prep
%setup -q
%autopatch
cp %{SOURCE9} modules/RTNeural/cmake/
sed -i '/include <tuple>/a #include <thread>' modules/chowdsp_utils/modules/common/chowdsp_listeners/third_party/rocket.hpp
%build
%if 0%{?is_opensuse} && 0%{?suse_version} < 1600
%cmake -DCMAKE_CXX_COMPILER=g++-12
%else
%cmake
%endif
%cmake_build
%install
mkdir -p %{buildroot}%{_bindir}
install build/%{name}_artefacts/RelWithDebInfo/Standalone/* %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_libdir}/vst3
cp -r build/%{name}_artefacts/RelWithDebInfo/VST3/*.vst3 %{buildroot}%{_libdir}/vst3/
mkdir -p %{buildroot}%{_libdir}/lv2
cp -r build/%{name}_artefacts/RelWithDebInfo/LV2/*.lv2 %{buildroot}%{_libdir}/lv2/
mkdir -p %{buildroot}%{_libdir}/clap
cp -r build/%{name}_artefacts/RelWithDebInfo/CLAP/*.clap %{buildroot}%{_libdir}/clap/
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp res/logo.png %{buildroot}%{_datadir}/pixmaps/BYOD.png
mkdir -p %{buildroot}%{_datadir}/applications
cp %{SOURCE1} %{buildroot}%{_datadir}/applications/
%files
%{_bindir}/*
%license LICENSE
%doc README.md
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%files -n vst3-%{name}
%{_libdir}/vst3/
%doc README.md
%license LICENSE
%files -n lv2-%{name}
%{_libdir}/lv2/
%doc README.md
%license LICENSE
%files -n clap-%{name}
%{_libdir}/clap/
%doc README.md
%license LICENSE
%changelog