File AIDA-X.spec of Package AIDA-X
#
# spec file for package AIDA-X
#
# Copyright (c) 2023 SUSE LLC
#
# 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: AIDA-X
Version: 1.1.0+git.2.41eb988
Release: 0
Summary: Amp Model Player leveraging AI
License: GPL-3.0-only
URL: https://github.com/AidaDSP/AIDA-X
Source: %{name}-%{version}.tar.xz
%if 0%{?is_opensuse} && 0%{?suse_version} < 1600
BuildRequires: gcc12-c++
%else
BuildRequires: gcc-c++
%endif
BuildRequires: cmake
BuildRequires: pkgconfig
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(jack)
BuildRequires: pkgconfig(libpulse-simple)
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(liblo)
BuildRequires: pkgconfig(lv2)
BuildRequires: pkgconfig(x11)
%description
%package -n lv2-%{name}
Summary: Amp Model Player leveraging AI (LV2)
%description -n lv2-%{name}
AIDA-X is an Amp Model Player, allowing it to load models of AI trained music gear, which you can then play through.
%package -n vst-%{name}
Summary: Amp Model Player leveraging AI (VST)
%description -n vst-%{name}
AIDA-X is an Amp Model Player, allowing it to load models of AI trained music gear, which you can then play through.
%package jack
Summary: Amp Model Player leveraging AI
%description jack
AIDA-X is an Amp Model Player, allowing it to load models of AI trained music gear, which you can then play through.
%package -n clap-%{name}
Summary: Amp Model Player leveraging AI (CLAP)
%description -n clap-%{name}
AIDA-X is an Amp Model Player, allowing it to load models of AI trained music gear, which you can then play through.
%package -n vst3-%{name}
Summary: Amp Model Player leveraging AI (VST3)
%description -n vst3-%{name}
AIDA-X is an Amp Model Player, allowing it to load models of AI trained music gear, which you can then play through.
%prep
%autosetup
%build
%cmake \
%if 0%{?is_opensuse} && 0%{?suse_version} < 1600
-DCMAKE_C_COMPILER=gcc-12 \
-DCMAKE_CXX_COMPILER=g++-12 \
%endif
%cmake_build
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}/vst3
mkdir -p %{buildroot}%{_libdir}/vst
mkdir -p %{buildroot}%{_libdir}/lv2
mkdir -p %{buildroot}%{_libdir}/clap
cp build/bin/%{name} %{buildroot}%{_bindir}
cp build/bin/%{name}.clap %{buildroot}%{_libdir}/clap
cp -r build/bin/%{name}.lv2 %{buildroot}%{_libdir}/lv2
cp -r build/bin/%{name}.vst3 %{buildroot}%{_libdir}/vst3
cp build/bin/%{name}-vst2.so %{buildroot}%{_libdir}/vst
%files jack
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%files -n lv2-%{name}
%license LICENSE
%doc README.md
%{_libdir}/lv2/%{name}.lv2
%files -n vst3-%{name}
%license LICENSE
%doc README.md
%dir %{_libdir}/vst3
%{_libdir}/vst3/%{name}.vst3
%files -n clap-%{name}
%license LICENSE
%doc README.md
%dir %{_libdir}/clap
%{_libdir}/clap/%{name}.clap
%files -n vst-%{name}
%license LICENSE
%doc README.md
%dir %{_libdir}/vst
%{_libdir}/vst/%{name}-vst2.so
%changelog