File SocaLabs-plugins.spec of Package SocaLabs-plugins
#
# spec file for package slPlugins
#
# 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/
#
%define distname slPlugins
Name: SocaLabs-plugins
Version: 20251123
Release: 0
Summary: Various VST/LV2 Plugins from SocaLabs.com
License: BSD-3-Clause
Group: Productivity/Multimedia/Sound/Midi
URL: https://github.com/FigBug/slPlugins
Source0: slPlugins-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: Mesa-libGL-devel
BuildRequires: libXrandr-devel
BuildRequires: libXcursor-devel
BuildRequires: libjack-devel
BuildRequires: libcurl-devel
BuildRequires: JUCE8_10-source
%description
https://socalabs.com/
SocaLabs Audio Plugins
%package -n lv2-%{name}
Summary: Various VST/LV2 Plugins from SocaLabs.com (LV2)
%description -n lv2-%{name}
https://socalabs.com/
SocaLabs Audio Plugins
%package -n vst-%{name}
Summary: Various VST/LV2 Plugins from SocaLabs.com (VST)
%description -n vst-%{name}
https://socalabs.com/
SocaLabs Audio Plugins
%package -n vst3-%{name}
Summary: Various VST/LV2 Plugins from SocaLabs.com (VST3)
%description -n vst3-%{name}
https://socalabs.com/
SocaLabs Audio Plugins
%prep
%setup -qn %{distname}-%{version}
ln -s %{_usrsrc}/JUCE8_10 modules/juce
sed -i -e 's#juce_set_vst2_sdk_path(plugin_sdk/vstsdk2.4)##' modules/CMakeLists.txt
sed -i -e 's#${CMAKE_SOURCE_DIR}/../../#${CMAKE_SOURCE_DIR}/#' plugins/PitchTrack/CMakeLists.txt
%build
%cmake
%cmake_build
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}/vst
mkdir -p %{buildroot}%{_libdir}/lv2
mkdir -p %{buildroot}%{_libdir}/vst3
cat ci/pluginlist.txt | while read PLUGIN; do
PLUGIN=$(echo $PLUGIN|tr -d '\n\r ')
install build/plugins/${PLUGIN}/${PLUGIN}_artefacts/RelWithDebInfo/Standalone/* %{buildroot}%{_bindir}/
cp build/plugins/${PLUGIN}/${PLUGIN}_artefacts/RelWithDebInfo/VST/lib${PLUGIN}.so %{buildroot}%{_libdir}/vst/
cp -r build/plugins/${PLUGIN}/${PLUGIN}_artefacts/RelWithDebInfo/LV2/${PLUGIN}.lv2 %{buildroot}%{_libdir}/lv2/
cp -r build/plugins/${PLUGIN}/${PLUGIN}_artefacts/RelWithDebInfo/VST3/${PLUGIN}.vst3 %{buildroot}%{_libdir}/vst3/
done
%files
%{_bindir}/*
%license LICENSE.md
%doc README.md
%files -n lv2-%{name}
%{_libdir}/lv2/
%doc README.md
%license LICENSE.md
%files -n vst3-%{name}
%{_libdir}/vst3/
%doc README.md
%license LICENSE.md
%files -n vst-%{name}
%{_libdir}/vst/
%doc README.md
%license LICENSE.md
%changelog