File helm-synth.spec of Package helm-synth

#
# spec file for package helm
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 Konstantin Voinov
# Copyright (c) 2019 Jo Boschetti
#
# 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:           helm-synth
Version:        0.9.1
Release:        0
Summary:        Helm is a free polyphonic synth with lots of modulation
License:        GPL-3.0-only
Group:          Productivity/Multimedia/Sound/Midi
URL:            http://tytel.org/helm
Source0:        %{name}-%{version}.tar.gz
Source1:        helm.appdata.xml
Patch0:         helm-cmake-fixes.patch
BuildRequires:  JUCE8_04-devel JUCE8_04-juceaide
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(freetype2)
BuildRequires:  pkgconfig(fontconfig)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xinerama)
Requires: %{name}-data

%description
Helm is a free, cross-platform, polyphonic synthesizer that runs on GNU/Linux,
Mac, and Windows as a standalone program and as a LV2/VST/AU/AAX plugin.
You can install helm (standalone), or lv2-helm that is LV2 plugin.

%package -n lv2-%{name}
Summary:        Helm LV2 plugin is a free polyphonic synth with lots of modulation
Requires: %{name}-data

%description -n lv2-%{name}
Helm is a free, cross-platform, polyphonic synthesizer that runs on GNU/Linux,
Mac, and Windows as a standalone program and as a LV2/VST/AU/AAX plugin.
This package installs the LV2 plugin.

%package -n vst-%{name}
Summary:        Helm VST plugin is a free polyphonic synth with lots of modulation
Requires: %{name}-data

%description -n vst-%{name}
Helm is a free, cross-platform, polyphonic synthesizer that runs on GNU/Linux,
Mac, and Windows as a standalone program and as a LV2/VST/AU/AAX plugin.
This package installs the VST plugin.

%package -n vst3-%{name}
Summary:        Helm VST3 plugin is a free polyphonic synth with lots of modulation
Requires: %{name}-data

%description -n vst3-%{name}
Helm is a free, cross-platform, polyphonic synthesizer that runs on GNU/Linux,
Mac, and Windows as a standalone program and as a LV2/VST/AU/AAX plugin.
This package installs the VST plugin.

%package data
Summary:        Presets for Helm polyphonic synth
BuildArch: noarch

%description data
Helm is a free, cross-platform, polyphonic synthesizer that runs on GNU/Linux,
Mac, and Windows as a standalone program and as a LV2/VST/AU/AAX plugin.
This package installs presets for plugin and standalone app.

%package doc
Summary:        Documentation for Helm polyphonic synth
BuildArch: noarch

%description doc
Helm is a free, cross-platform, polyphonic synthesizer that runs on GNU/Linux,
Mac, and Windows as a standalone program and as a LV2/VST/AU/AAX plugin.
This package installs documentation for Helm.

%prep
%autosetup -p1
cp %{SOURCE1} standalone/

sed -i -e 's/FORMATS VST3/FORMATS VST VST3/' src/CMakeLists.txt
sed -i -e 's/Exec=helm/Exec=Helm/' standalone/helm.desktop

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

%install
%cmake_install

mkdir -p %{buildroot}%{_libdir}/vst
cp build/src/helm_artefacts/RelWithDebInfo/VST/libHelm.so %{buildroot}%{_libdir}/vst/helm.so

%files -n lv2-%{name}
%license COPYING
%{_libdir}/lv2

%files -n vst-%{name}
%license COPYING
%{_libdir}/vst

%files -n vst3-%{name}
%license COPYING
%{_libdir}/vst3

%files -n %{name}
%doc README.md
%license COPYING
%{_bindir}/Helm
%{_datadir}/applications
%{_datadir}/metainfo/helm.appdata.xml
%{_datadir}/icons
%{_mandir}

%files doc
%license COPYING
%{_docdir}/%{name}/helm_manual.pdf

%files data
%license COPYING
%{_datadir}/helm

%changelog
openSUSE Build Service is sponsored by