File monique-monosynth.spec of Package monique-monosynth
#
# spec file for package monique-monosynth
#
# 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 binname MoniqueMonosynth
Name: monique-monosynth
Version: 1.2.0+git.83.17c6c1b
Release: 0
Summary: Monique monosynth
License: GPL-3.0 or MIT
Group: Productivity/Multimedia/Sound/Midi
URL: https://github.com/surge-synthesizer/monique-monosynth
Source0: https://github.com/surge-synthesizer/monique-monosynth/archive/refs/tags/Nightly.tar.gz#/%{name}-%{version}.tar.gz
Patch0: check-for-display.patch
BuildRequires: gcc-c++
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(freetype2)
BuildRequires: libjack-devel
BuildRequires: libcurl-devel
BuildRequires: Mesa-libGL-devel
BuildRequires: libXrandr-devel
BuildRequires: libXcursor-devel
BuildRequires: JUCE7-source
BuildRequires: cmake
%description
Monique is a monophonic synth from Thomas Arndt which, in December 2021 became open source as part of the surge-synth-team family of products.
%package -n vst-%{name}
Summary: Monique monosynth (VST)
%description -n vst-%{name}
Monique is a monophonic synth from Thomas Arndt which, in December 2021 became open source as part of the surge-synth-team family of products.
%package -n vst3-%{name}
Summary: Monique monosynth (VST3)
%description -n vst3-%{name}
Monique is a monophonic synth from Thomas Arndt which, in December 2021 became open source as part of the surge-synth-team family of products.
%package -n lv2-%{name}
Summary: Monique monosynth (LV2)
%description -n lv2-%{name}
Monique is a monophonic synth from Thomas Arndt which, in December 2021 became open source as part of the surge-synth-team family of products.
%package -n clap-%{name}
Summary: Monique monosynth (CLAP)
%description -n clap-%{name}
Monique is a monophonic synth from Thomas Arndt which, in December 2021 became open source as part of the surge-synth-team family of products.
%prep
%autosetup -p1
%build
export VST2SDK_DIR=/usr/include
cmake -B cmake-build -DMONIQUE_JUCE_PATH=/usr/src/JUCE7 -DBUILD_LV2=ON -DCMAKE_BUILD_TYPE=Release
cmake --build cmake-build %{?_smp_mflags}
%install
mkdir -p %{buildroot}%{_bindir}
install cmake-build/%{binname}_artefacts/Release/Standalone/* %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_libdir}/vst
install cmake-build/%{binname}_artefacts/Release/VST/* %{buildroot}%{_libdir}/vst/
mkdir -p %{buildroot}%{_libdir}/vst3
cp -r cmake-build/%{binname}_artefacts/Release/VST3/*.vst3 %{buildroot}%{_libdir}/vst3/
mkdir -p %{buildroot}%{_libdir}/lv2
cp -r cmake-build/%{binname}_artefacts/Release/LV2/*.lv2 %{buildroot}%{_libdir}/lv2/
mkdir -p %{buildroot}%{_libdir}/clap
cp -r cmake-build/%{binname}_artefacts/Release/CLAP/*.clap %{buildroot}%{_libdir}/clap/
%files
%{_bindir}/*
%license LICENSE
%doc README.md
%files -n vst-%{name}
%dir %{_libdir}/vst
%{_libdir}/vst/
%doc README.md
%license LICENSE
%files -n vst3-%{name}
%{_libdir}/vst3/
%doc README.md
%license LICENSE
%files -n lv2-%{name}
%{_libdir}/lv2/
%doc README.md
%license LICENSE
%files -n clap-%{name}
%{_libdir}/clap/
%doc README.md
%license LICENSE
%changelog