File philodendron.spec of Package philodendron
#
# spec file for package philodendron
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) Konstantin Voinov konstantin.voinov@gmail.com
#
# 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: philodendron
Version: 0.0.2
Release: 0
Summary: Audio plugin based on ringbuffers
License: GPL-3.0-only
Group: Productivity/Multimedia/Sound/Midi
URL: https://github.com/LeNomDesFleurs/PHILODENDRON_JUCE
Source0: %{name}-%{version}.tar.gz
BuildRequires: JUCE7_12-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(fontconfig)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xinerama)
%description
Philodendron aim to give you handle on ringbuffer processes to beautifuly mess up your sound.
%package -n vst3-%{name}
Summary: Audio plugin based on ringbuffers (VST3)
%description -n vst3-%{name}
Philodendron aim to give you handle on ringbuffer processes to beautifuly mess up your sound.
%prep
%autosetup -p1
sed -i -e 's#add_subdirectory(lib/JUCE)#find_package (JUCE CONFIG REQUIRED)#' CMakeLists.txt
sed -i -e '170i return 0;' src/RingBuffer.cpp
%build
%cmake -DBUILD_SHARED_LIBS:BOOL=OFF -DBUILD_STATIC_LIBS:BOOL=ON
%cmake_build
%install
mkdir -p %{buildroot}%{_bindir}
install build/src/Philodendron_artefacts/RelWithDebInfo/Standalone/Philodendron %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_libdir}/vst3
cp -r build/src/Philodendron_artefacts/RelWithDebInfo/VST3/*.vst3 %{buildroot}%{_libdir}/vst3/
%files
%{_bindir}/Philodendron
%license LICENSE
%doc README.md
%files -n vst3-%{name}
%{_libdir}/vst3/
%doc README.md
%license LICENSE
%changelog