File stochas.spec of Package stochas

#
# spec file for package stochas
#
# 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/
#

Name:           stochas
Version:        1.3.12+git.0.c49e2a1
Release:        0
Summary:        Advanced probabilistic polyrhythmic sequencer
License:        GPL-3.0-only
Group:          Productivity/Multimedia/Sound/Midi
URL:            https://stochas.org/
Source0:        https://github.com/surge-synthesizer/stochas/archive/v1.3.4.tar.gz#/%{name}-%{version}.tar.gz
Patch0:         stochas-cmake.patch
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xinerama)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(fontconfig)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  libjack-devel
BuildRequires:  Mesa-libGL-devel
BuildRequires:  libXrandr-devel
BuildRequires:  libXcursor-devel
BuildRequires:  JUCE8_06-devel
BuildRequires:  cmake

%description

Stochas is at it’s core a step sequencer, which means it generates MIDI notes.
As such it does not generate any sound of it’s own but can be used to sequence other plugins and/or hardware synthesizers.
Although it can be used for basic step sequencing, it’s main function is to provide randomness to the step sequencing process.

%package -n vst-%{name}
Summary:        Advanced probabilistic polyrhythmic sequencer (VST)

%description -n vst-%{name}
Stochas is at it’s core a step sequencer, which means it generates MIDI notes.
As such it does not generate any sound of it’s own but can be used to sequence other plugins and/or hardware synthesizers.
Although it can be used for basic step sequencing, it’s main function is to provide randomness to the step sequencing process.

%package -n vst3-%{name}
Summary:        Advanced probabilistic polyrhythmic sequencer (VST3)

%description -n vst3-%{name}

Stochas is at it’s core a step sequencer, which means it generates MIDI notes.
As such it does not generate any sound of it’s own but can be used to sequence other plugins and/or hardware synthesizers.
Although it can be used for basic step sequencing, it’s main function is to provide randomness to the step sequencing process.

%package -n lv2-%{name}
Summary:        Advanced probabilistic polyrhythmic sequencer (LV2)

%description -n lv2-%{name}

Stochas is at it’s core a step sequencer, which means it generates MIDI notes.
As such it does not generate any sound of it’s own but can be used to sequence other plugins and/or hardware synthesizers.
Although it can be used for basic step sequencing, it’s main function is to provide randomness to the step sequencing process.

%package -n clap-%{name}
Summary:        Advanced probabilistic polyrhythmic sequencer (CLAP)

%description -n clap-%{name}

Stochas is at it’s core a step sequencer, which means it generates MIDI notes.
As such it does not generate any sound of it’s own but can be used to sequence other plugins and/or hardware synthesizers.
Although it can be used for basic step sequencing, it’s main function is to provide randomness to the step sequencing process.

%prep
%autosetup -p1

%build
%cmake -DVST2_PATH=/usr/include -DSTOCHAS_VERSION=$(cat ../VERSION)
%cmake_build

%install
mkdir -p %{buildroot}%{_bindir}
install build/stochas_artefacts/RelWithDebInfo/Standalone/* %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_libdir}/vst
install build/stochas_artefacts/RelWithDebInfo/VST/libStochas.so %{buildroot}%{_libdir}/vst/Stochas.so
mkdir -p %{buildroot}%{_libdir}/vst3
cp -r build/stochas_artefacts/RelWithDebInfo/VST3/*.vst3 %{buildroot}%{_libdir}/vst3/
mkdir -p %{buildroot}%{_libdir}/lv2
cp -r build/stochas_artefacts/RelWithDebInfo/LV2/*.lv2 %{buildroot}%{_libdir}/lv2/
mkdir -p %{buildroot}%{_libdir}/clap
cp -r build/stochas_artefacts/RelWithDebInfo/CLAP/*.clap %{buildroot}%{_libdir}/clap/

%files
%{_bindir}/*
%license COPYING
%doc README.md
%files -n vst-%{name}
%dir %{_libdir}/vst
%{_libdir}/vst/
%doc README.md
%license COPYING
%files -n vst3-%{name}
%{_libdir}/vst3/
%doc README.md
%license COPYING
%files -n lv2-%{name}
%{_libdir}/lv2/
%doc README.md
%license COPYING
%files -n clap-%{name}
%{_libdir}/clap/
%doc README.md
%license COPYING

%changelog
openSUSE Build Service is sponsored by