File Sound-Analyser.spec of Package Sound-Analyser
#
# spec file for package Sound-Analyser
#
# Copyright (c) 2025 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: Sound-Analyser
Version: 1.0.1+git.23.3b0d296
Release: 0
Summary: Plug-in For Audio Analysis
License: GPL-3.0-only
Group: Productivity/Multimedia/Sound/
URL: https://github.com/adamstark/Sound-Analyser
Source0: %{name}-%{version}.tar.gz
Patch0: Sound-Analyser-jucer.patch
BuildRequires: JUCE8_04-Projucer
BuildRequires: JUCE8_04-devel JUCE8_04-juceaide
BuildRequires: Mesa-libGL-devel
BuildRequires: gcc-c++
BuildRequires: ladspa-devel
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(fftw3f)
BuildRequires: pkgconfig(speex)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xinerama)
%description
Sound Analyser is an audio plug-in for performing real-time audio analysis inside host applications such as Ableton Live or Logic Pro, and sending the result over Open Sound Control (OSC) so that the data can be used for sound-responsive applications.
%package -n vst3-%{name}
Summary: Plug-in For Audio Analysis (VST3)
%description -n vst3-%{name}
Sound Analyser is an audio plug-in for performing real-time audio analysis inside host applications such as Ableton Live or Logic Pro, and sending the result over Open Sound Control (OSC) so that the data can be used for sound-responsive applications.
%package -n vst-%{name}
Summary: Plug-in For Audio Analysis (VST)
%description -n vst-%{name}
Sound Analyser is an audio plug-in for performing real-time audio analysis inside host applications such as Ableton Live or Logic Pro, and sending the result over Open Sound Control (OSC) so that the data can be used for sound-responsive applications.
%package -n lv2-%{name}
Summary: Plug-in For Audio Analysis (LV2)
%description -n lv2-%{name}
Sound Analyser is an audio plug-in for performing real-time audio analysis inside host applications such as Ableton Live or Logic Pro, and sending the result over Open Sound Control (OSC) so that the data can be used for sound-responsive applications.
%prep
%autosetup -p1
Projucer --set-global-search-path linux defaultJuceModulePath %{_includedir}/JUCE-8.0.4/modules
Projucer --resave "Sound Analyser.jucer"
CONFIG=Release make %{?_smp_mflags} -C Builds/LinuxMakefile
%install
mkdir -p %{buildroot}%{_bindir}
install Builds/LinuxMakefile/build/"Sound Analyser" %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_libdir}/vst
install Builds/LinuxMakefile/build/"Sound Analyser.so" %{buildroot}%{_libdir}/vst/
mkdir -p %{buildroot}%{_libdir}/vst3
cp -r Builds/LinuxMakefile/build/*.vst3 %{buildroot}%{_libdir}/vst3/
mkdir -p %{buildroot}%{_libdir}/lv2
cp -r Builds/LinuxMakefile/build/*.lv2 %{buildroot}%{_libdir}/lv2/
%files
%{_bindir}/
%doc README.md
%license LICENSE.txt
%files -n vst-%{name}
%dir %{_libdir}/vst
%{_libdir}/vst/
%doc README.md
%license LICENSE.txt
%files -n vst3-%{name}
%dir %{_libdir}/vst3
%{_libdir}/vst3/
%doc README.md
%license LICENSE.txt
%files -n lv2-%{name}
%dir %{_libdir}/lv2
%{_libdir}/lv2/
%doc README.md
%license LICENSE.txt
%changelog