File airwin2rack.spec of Package airwin2rack
#
# spec file for package airwin2rack
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) Konstantin Voinov konstantin.voinov@gmail.com
#
# 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: airwin2rack
Version: 2.12.0+git.20251012.4f0dd90
Release: 0
Summary: Airwindows as a single DAW plugin
License: MIT
Group: Productivity/Multimedia/Sound
URL: https://github.com/baconpaul/airwin2rack
Source0: %{name}-%{version}.tar.gz
Source1: clap-juce-extensions-git.main.tar.xz
Source2: CPM.cmake
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(fontconfig)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xinerama)
%description
Airwindows, Consolidated into a single Library and DAW Plugin
%package -n vst3-%{name}
Summary: Airwindows as a single DAW pluginr (VST3)
%description -n vst3-%{name}
Airwindows, Consolidated into a single Library and DAW Plugin
%package -n lv2-%{name}
Summary: Airwindows as a single DAW plugin (LV2)
%description -n lv2-%{name}
Airwindows, Consolidated into a single Library and DAW Plugin
%package -n clap-%{name}
Summary: Airwindows as a single DAW plugin (CLAP)
%description -n clap-%{name}
Airwindows, Consolidated into a single Library and DAW Plugin
%prep
%autosetup
cp %{SOURCE2} cmake
tar xf %{SOURCE1}
%build
%cmake -DBUILD_JUCE_PLUGIN=TRUE \
-DCPM_LOCAL_PACKAGES_ONLY=ON \
-DCPM_clap-juce-extensions_SOURCE=%{_builddir}/%{name}-%{version}/clap-juce-extensions-git.main
%cmake_build
%install
mkdir -p %{buildroot}%{_bindir}
install "build/awcons-products/Airwindows Consolidated" %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_libdir}/clap
install build/awcons-products/*.clap %{buildroot}%{_libdir}/clap/
mkdir -p %{buildroot}%{_libdir}/vst3
cp -r build/awcons-products/*.vst3 %{buildroot}%{_libdir}/vst3/
mkdir -p %{buildroot}%{_libdir}/lv2
cp -r build/awcons-products/*.lv2 %{buildroot}%{_libdir}/lv2/
%files
%{_bindir}/
%doc README.md
%license LICENSE.md
%files -n clap-%{name}
%dir %{_libdir}/clap
%{_libdir}/clap/
%doc README.md
%license LICENSE.md
%files -n vst3-%{name}
%{_libdir}/vst3/
%doc README.md
%license LICENSE.md
%files -n lv2-%{name}
%{_libdir}/lv2/
%doc README.md
%license LICENSE.md
%changelog