File dexed.spec of Package dexed
#
# spec file for package Dexed
#
# 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 Dexed
Name: dexed
Version: 1.0.1+git.0.bce5dee
Release: 0
Summary: Dexed - FM Plugin Synth
License: GPL-3.0-only
Group: Productivity/Multimedia/Sound/Midi
URL: https://asb2m10.github.io/dexed/
Source0: %{name}-%{version}.tar.xz
Patch0: dexed-cmake.patch
# Patch1: dexed-check-for-display.patch
BuildRequires: gcc-c++
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(freetype2)
BuildRequires: Mesa-libGL-devel
BuildRequires: libXrandr-devel
BuildRequires: libXcursor-devel
BuildRequires: libjack-devel
BuildRequires: JUCE7_11-source
BuildRequires: cmake
Conflicts: Dexed
%description
Dexed is a multi platform, multi format plugin synth that is closely modeled on the Yamaha DX7.
Under the hood it uses music-synthesizer-for-android for the synth engine and JUCE as an application/plugin wrapper.
The goal of this project is to be a tool/companion for the original DX7.
Sound engine with 'float' value parameters, different waveform à la TX81z would be great but anything that goes beyond the DX7 should and will be a fork of this project.
This is to keep the compatibility with the original machine.
%package -n lv2-%{name}
Summary: Dexed - FM Plugin Synth (LV2)
Conflicts: lv2-Dexed
%description -n lv2-%{name}
Dexed is a multi platform, multi format plugin synth that is closely modeled on the Yamaha DX7.
Under the hood it uses music-synthesizer-for-android for the synth engine and JUCE as an application/plugin wrapper.
The goal of this project is to be a tool/companion for the original DX7.
Sound engine with 'float' value parameters, different waveform à la TX81z would be great but anything that goes beyond the DX7 should and will be a fork of this project.
This is to keep the compatibility with the original machine.
%package -n vst-%{name}
Summary: Dexed - FM Plugin Synth (VST)
Conflicts: vst-Dexed
%description -n vst-%{name}
Dexed is a multi platform, multi format plugin synth that is closely modeled on the Yamaha DX7.
Under the hood it uses music-synthesizer-for-android for the synth engine and JUCE as an application/plugin wrapper.
The goal of this project is to be a tool/companion for the original DX7.
Sound engine with 'float' value parameters, different waveform à la TX81z would be great but anything that goes beyond the DX7 should and will be a fork of this project.
This is to keep the compatibility with the original machine.
%package -n vst3-%{name}
Summary: Dexed - FM Plugin Synth (VST3)
Conflicts: vst3-Dexed
%description -n vst3-%{name}
Dexed is a multi platform, multi format plugin synth that is closely modeled on the Yamaha DX7.
Under the hood it uses music-synthesizer-for-android for the synth engine and JUCE as an application/plugin wrapper.
The goal of this project is to be a tool/companion for the original DX7.
Sound engine with 'float' value parameters, different waveform à la TX81z would be great but anything that goes beyond the DX7 should and will be a fork of this project.
This is to keep the compatibility with the original machine.
%package -n clap-%{name}
Summary: Dexed - FM Plugin Synth (CLAP)
%description -n clap-%{name}
Dexed is a multi platform, multi format plugin synth that is closely modeled on the Yamaha DX7.
Under the hood it uses music-synthesizer-for-android for the synth engine and JUCE as an application/plugin wrapper.
The goal of this project is to be a tool/companion for the original DX7.
Sound engine with 'float' value parameters, different waveform à la TX81z would be great but anything that goes beyond the DX7 should and will be a fork of this project.
This is to keep the compatibility with the original machine.
%prep
%setup -q
%autopatch -p1
%build
ln -s %{_usrsrc}/JUCE7_11 libs/JUCE
%cmake -DBUILD_ID=%{version}
%cmake_build
%install
%{__mkdir_p} %{buildroot}%{_bindir} %{buildroot}%{_bindir}
install build/Source/Dexed_artefacts/RelWithDebInfo/Standalone/* %{buildroot}%{_bindir}/
%{__mkdir_p} %{buildroot}%{_bindir} %{buildroot}%{_libdir}/vst
install build/Source/Dexed_artefacts/RelWithDebInfo/VST/libDexed.so %{buildroot}%{_libdir}/vst/Dexed.so
%{__mkdir_p} %{buildroot}%{_libdir}/vst3
cp -r build/Source/Dexed_artefacts/RelWithDebInfo/VST3/*.vst3 %{buildroot}%{_libdir}/vst3/
%{__mkdir_p} %{buildroot}%{_libdir}/lv2
cp -r build/Source/Dexed_artefacts/RelWithDebInfo/LV2/*.lv2 %{buildroot}%{_libdir}/lv2/
%{__mkdir_p} %{buildroot}%{_libdir}/clap
cp -r build/Source/Dexed_artefacts/RelWithDebInfo/CLAP/*.clap %{buildroot}%{_libdir}/clap/
%files
%{_bindir}/Dexed
%license LICENSE
%doc README.md
%files -n lv2-%{name}
%{_libdir}/lv2/
%doc README.md
%license LICENSE
%files -n vst3-%{name}
%{_libdir}/vst3/
%doc README.md
%license LICENSE
%files -n vst-%{name}
%{_libdir}/vst/
%doc README.md
%license LICENSE
%files -n clap-%{name}
%{_libdir}/clap/
%doc README.md
%license LICENSE
%changelog