File Manta.spec of Package Manta
#
# spec file for package juce
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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: Manta
Version: 20221115
Release: 0
Summary: A resonator with extra steps
License: GPL-3.0-only
Group: Productivity/Multimedia/Sound/Midi
URL: https://github.com/Mrugalla/Manta
Source0: %{name}-%{version}.tar.gz
Patch0: Manta-jucer.patch
%if 0%{?sle_version} == 150400 || 0%{?sle_version} == 150300 && 0%{?is_opensuse}
BuildRequires: gcc11-c++
%else
BuildRequires: gcc-c++
%endif
BuildRequires: pkgconfig(alsa)
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
BuildRequires: JUCE7-devel
BuildRequires: JUCE7-Projucer
%description
A parallel bandpass plugin made mainly with the intention of adding fatness to drums in mind,
but it also goes into some serious sounddesign territory if you want it to.
%package -n vst3-%{name}
Summary: A resonator with extra steps (VST3)
%description -n vst3-%{name}
A parallel bandpass plugin made mainly with the intention of adding fatness to drums in mind,
but it also goes into some serious sounddesign territory if you want it to.
%package -n vst-%{name}
Summary: A resonator with extra steps (VST)
%description -n vst-%{name}
A parallel bandpass plugin made mainly with the intention of adding fatness to drums in mind,
but it also goes into some serious sounddesign territory if you want it to.
%package -n lv2-%{name}
Summary: A resonator with extra steps (LV2)
%description -n lv2-%{name}
A parallel bandpass plugin made mainly with the intention of adding fatness to drums in mind,
but it also goes into some serious sounddesign territory if you want it to.
%prep
%autosetup -p1
sed -i -e 's/buildVST3/buildVST,buildVST3/' Project.jucer
%build
Projucer --set-global-search-path linux defaultJuceModulePath %{_libdir}/juce7/include/JUCE-*/modules
Projucer --resave Project.jucer
cd Builds/LinuxMakefile
%if 0%{?sle_version} == 150400 || 0%{?sle_version} == 150300 && 0%{?is_opensuse}
CXX=g++-11 CONFIG=Release make %{?_smp_mflags}
%else
CONFIG=Release make %{?_smp_mflags}
%endif
%install
mkdir -p %{buildroot}%{_bindir}
install Builds/LinuxMakefile/build/%{name} %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_libdir}/vst
install Builds/LinuxMakefile/build/%{name}.so %{buildroot}%{_libdir}/vst/
mkdir -p %{buildroot}%{_libdir}/vst3
cp -r Builds/LinuxMakefile/build/*.vst3 %{buildroot}%{_libdir}/vst3/
mkdir -p %{buildroot}%{_libdir}/lv2
cp -r Builds/LinuxMakefile/build/*.lv2 %{buildroot}%{_libdir}/lv2/
%files
%{_bindir}/%{name}
%license license.txt
%files -n vst-%{name}
%dir %{_libdir}/vst
%{_libdir}/vst/%{name}.so
%license license.txt
%files -n vst3-%{name}
%dir %{_libdir}/vst3
%{_libdir}/vst3/*
%license license.txt
%files -n lv2-%{name}
%dir %{_libdir}/lv2
%{_libdir}/lv2/*
%license license.txt
%changelog