File sinensis.spec of Package sinensis

#
# spec file for package sinensis
#
# 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:           sinensis
Version:        1.0.1
Release:        0
Summary:        6 bandpass filters
License:        GPL-3.0-only
Group:          Productivity/Multimedia/Sound/Midi
URL:            https://github.com/LeNomDesFleurs/sinensis_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
Sinensis is 6 bandpass filters.
You interact with the relation between their gains and frequency. You can input MIDI to play the bands with notes.
https://lndf.fr/NOI/Sinensis.html

%package -n vst3-%{name}
Summary:        6 bandpass filters (VST3)

%description -n vst3-%{name}
Sinensis is 6 bandpass filters.
You interact with the relation between their gains and frequency. You can input MIDI to play the bands with notes.
https://lndf.fr/NOI/Sinensis.html

%prep
%autosetup -p1

sed -i -e 's#add_subdirectory(lib/JUCE)#find_package (JUCE CONFIG REQUIRED)#' CMakeLists.txt

%build
%cmake -DBUILD_SHARED_LIBS:BOOL=OFF -DBUILD_STATIC_LIBS:BOOL=ON
%cmake_build

%install
mkdir -p %{buildroot}%{_bindir}
install build/src/Sinensis_artefacts/RelWithDebInfo/Standalone/Sinensis %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_libdir}/vst3
cp -r build/src/Sinensis_artefacts/RelWithDebInfo/VST3/*.vst3 %{buildroot}%{_libdir}/vst3/

%files
%{_bindir}/Sinensis
%license LICENSE
%doc README.md

%files -n vst3-%{name}
%{_libdir}/vst3/
%doc README.md
%license LICENSE

%changelog
openSUSE Build Service is sponsored by