File odin2.spec of Package odin2
#
# spec file for package Odin 2
#
# 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 Odin2
Name: odin2
Version: 2.4.1+git.0.265e9e22
Release: 0
Summary: Semimodular Synthesizer Plugin
License: GPL-3.0-only
Group: Productivity/Multimedia/Sound/Midi
URL: https://github.com/TheWaveWarden/odin2
Source0: %{name}-%{version}.tar.xz
Source1: clap-juce-extensions-1654605390.f11e8c3.tar.xz
Source2: tuning-library-1595612592.8eb7232.tar.xz
Source3: json-1720340537.960b763e.tar.xz
Patch0: odin2-CMakeLists.patch
Patch1: odin2-Linux-font-fix.patch
BuildRequires: cmake
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: JUCE6-devel
BuildRequires: lv2-devel
BuildRequires: lv2_ttl_generator
%description
24-voice polyphonic synthesizer. It covers about every type of synthesis out there:
Three Osc Slots: Choose from eleven different modules
Draw Oscillator Waves / Spectra
Three Filter Slots: High quality analog filter emulations (Ladder, KRG-35, SEM and more).
FX Included: Delay, Phaser, Flanger, Chorus Distortion and Reverb.
Flexible Routing
Four ADSRs
Four LFOs
XY-Pad
Big Modulation Matrix
Arpeggiator
Preset Library
Microtuning (.kbm and .scl files)
Please note, that since version 2.3.0 user presets and config are placed in the ~/.loca/share/odin2 directory.
%package -n lv2-%{name}
Summary: Semimodular Synthesizer Plugin (LV2)
%description -n lv2-%{name}
24-voice polyphonic synthesizer. It covers about every type of synthesis out there:
Three Osc Slots: Choose from eleven different modules
Draw Oscillator Waves / Spectra
Three Filter Slots: High quality analog filter emulations (Ladder, KRG-35, SEM and more).
FX Included: Delay, Phaser, Flanger, Chorus Distortion and Reverb.
Flexible Routing
Four ADSRs
Four LFOs
XY-Pad
Big Modulation Matrix
Arpeggiator
Preset Library
Microtuning (.kbm and .scl files)
Please note, that since version 2.3.0 user presets and config are placed in the ~/.loca/share/odin2 directory.
%package -n vst-%{name}
Summary: Semimodular Synthesizer Plugin (VST)
%description -n vst-%{name}
24-voice polyphonic synthesizer. It covers about every type of synthesis out there:
Three Osc Slots: Choose from eleven different modules
Draw Oscillator Waves / Spectra
Three Filter Slots: High quality analog filter emulations (Ladder, KRG-35, SEM and more).
FX Included: Delay, Phaser, Flanger, Chorus Distortion and Reverb.
Flexible Routing
Four ADSRs
Four LFOs
XY-Pad
Big Modulation Matrix
Arpeggiator
Preset Library
Microtuning (.kbm and .scl files)
Please note, that since version 2.3.0 user presets and config are placed in the ~/.loca/share/odin2 directory.
%package -n vst3-%{name}
Summary: Semimodular Synthesizer Plugin (VST3)
%description -n vst3-%{name}
24-voice polyphonic synthesizer. It covers about every type of synthesis out there:
Three Osc Slots: Choose from eleven different modules
Draw Oscillator Waves / Spectra
Three Filter Slots: High quality analog filter emulations (Ladder, KRG-35, SEM and more).
FX Included: Delay, Phaser, Flanger, Chorus Distortion and Reverb.
Flexible Routing
Four ADSRs
Four LFOs
XY-Pad
Big Modulation Matrix
Arpeggiator
Preset Library
Microtuning (.kbm and .scl files)
Please note, that since version 2.3.0 user presets and config are placed in the ~/.loca/share/odin2 directory.
%package -n clap-%{name}
Summary: Semimodular Synthesizer Plugin (CLAP)
%description -n clap-%{name}
24-voice polyphonic synthesizer. It covers about every type of synthesis out there:
Three Osc Slots: Choose from eleven different modules
Draw Oscillator Waves / Spectra
Three Filter Slots: High quality analog filter emulations (Ladder, KRG-35, SEM and more).
FX Included: Delay, Phaser, Flanger, Chorus Distortion and Reverb.
Flexible Routing
Four ADSRs
Four LFOs
XY-Pad
Big Modulation Matrix
Arpeggiator
Preset Library
Microtuning (.kbm and .scl files)
%package doc
Summary: Manual for Odin 2 synth
BuildArch: noarch
%description doc
Full documentation for Odin 2 synthesizer.
%prep
%autosetup -p1
tar xf %{SOURCE1} --strip-components=1 --one-top-level=libs/clap-juce-extensions
tar xf %{SOURCE2} --strip-components=1 --one-top-level=libs/tuning-library
tar xf %{SOURCE3} --strip-components=1 --one-top-level=libs/json
%build
%cmake -DCMAKE_PREFIX_PATH=/usr/lib64/juce -DLV2_TTL_GENERATOR=/usr/bin/lv2_ttl_generator -DODIN2_COPY_PLUGIN_AFTER_BUILD=OFF
%cmake_build
%install
%cmake_install
mkdir -p %{buildroot}%{_libdir}/vst
install build/%{binname}_artefacts/RelWithDebInfo/VST/* %{buildroot}%{_libdir}/vst/%{binname}.so
mkdir -p %{buildroot}%{_docdir}/odin2
cp manual/manual.pdf %{buildroot}%{_docdir}/odin2/
%files
%{_bindir}/
%license LICENSE
%doc README.md change_log.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
%files doc
%dir %{_docdir}/odin2
%{_docdir}/odin2/manual.pdf
%changelog