File sMexoscope.spec of Package sMexoscope
#
# spec file for package sMexoscope
#
# Copyright (c) 2021 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: sMexoscope
Version: 1.0.1+git.7.439ccc7
Release: 0
Summary: The classic s(M)exoscope oscilloscope plugin using modern JUCE
License: GPL-3.0-only
URL: https://github.com/hollance/sMexoscope
Source0: %{name}-%{version}.tar.gz
Source1: clap-juce-extensions-git.24e70f7.tar.gz
BuildRequires: JUCE8_07-devel
BuildRequires: Mesa-libGL-devel
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libXcursor-devel
BuildRequires: libXrandr-devel
BuildRequires: libcurl-devel
BuildRequires: libjack-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xinerama)
%description
s(M)exoscope is an oscilloscope VST3/LV2/CLAP plugin.
You can use it to visually monitor audio wave forms.
%package -n vst3-%{name}
Summary: The classic s(M)exoscope oscilloscope plugin using modern JUCE (VST3)
%description -n vst3-%{name}
s(M)exoscope is an oscilloscope VST3/LV2/CLAP plugin.
You can use it to visually monitor audio wave forms.
%package -n lv2-%{name}
Summary: The classic s(M)exoscope oscilloscope plugin using modern JUCE (LV2)
%description -n lv2-%{name}
s(M)exoscope is an oscilloscope VST3/LV2/CLAP plugin.
You can use it to visually monitor audio wave forms.
%package -n clap-%{name}
Summary: The classic s(M)exoscope oscilloscope plugin using modern JUCE (CLAP)
%description -n clap-%{name}
s(M)exoscope is an oscilloscope VST3/LV2/CLAP plugin.
You can use it to visually monitor audio wave forms.
%prep
%setup -q
tar xf %{SOURCE1} --strip-components=1 --one-top-level=clap-juce-extensions
sed -i -e 's/# the external folder will automatically pull JUCE/find_package(JUCE CONFIG REQUIRED)/' CMakeLists.txt
sed -i -e 's/add_subdirectory(external)/add_subdirectory(clap-juce-extensions)/' CMakeLists.txt
%build
%cmake
%cmake_build
%install
mkdir -p %{buildroot}%{_bindir}
install build/Source/%{name}_artefacts/RelWithDebInfo/Standalone/%{name} %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_libdir}/vst3
cp -r build/Source/%{name}_artefacts/RelWithDebInfo/VST3/*.vst3 %{buildroot}%{_libdir}/vst3/
mkdir -p %{buildroot}%{_libdir}/lv2
cp -r build/Source/%{name}_artefacts/RelWithDebInfo/LV2/*.lv2 %{buildroot}%{_libdir}/lv2/
mkdir -p %{buildroot}%{_libdir}/clap
cp -r build/Source/%{name}_artefacts/RelWithDebInfo/CLAP/*.clap %{buildroot}%{_libdir}/clap/
%files
%{_bindir}/*
%license LICENSE.txt
%doc README.md
%files -n vst3-%{name}
%{_libdir}/vst3/
%doc README.md
%license LICENSE.txt
%files -n lv2-%{name}
%{_libdir}/lv2/
%doc README.md
%license LICENSE.txt
%files -n clap-%{name}
%{_libdir}/clap/
%doc README.md
%license LICENSE.txt
%changelog