File DelayArchitect.spec of Package DelayArchitect
# spec file for package DelayArchitect
#
# Copyright (c) 2021 Fabio Pesari
#
# 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 http://bugs.opensuse.org/
Name: DelayArchitect
Version: master
Release: 0
Summary: A visual musical editor for delay effects
License: GPL-3.0-or-later
Group: Productivity/Multimedia/Sound/Editors and Convertors
URL: https://github.com/jpcima/DelayArchitect
Source0: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc gcc-c++
BuildRequires: cmake
BuildRequires: alsa-devel
BuildRequires: freetype2-devel
BuildRequires: libcurl-devel
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
%description
DelayArchitect is a visual musical editor for delay effects.
%package -n vst3-%{name}
Summary: A visual musical editor for delay effects (VST3 plugin)
Group: Productivity/Multimedia/Sound/Editors and Convertors
%description -n vst3-%{name}
DelayArchitect is a visual musical editor for delay effects.
This is the VST3 version of the plugin.
%prep
%setup -q
%build
%cmake
%cmake_build
%install
mkdir -p %{buildroot}%{_libdir}/vst3
cd build
%make_install
mv 'DelayArchitect_artefacts/RelWithDebInfo/VST3/Delay Architect.vst3' %{buildroot}%{_libdir}/vst3
%files -n vst3-%{name}
%doc README.md
%license LICENSE.GPL-3.0-or-later LICENSE.BSD-2-Clause LICENSE.OFL-1.1
%dir %{_libdir}/vst3/
%{_libdir}/vst3/*
%changelog