File speclet.spec of Package speclet

#
# spec file for package speclet
#
# Copyright (c) 2022 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:           speclet
Version:        1.0.1.git6.fd4e526
Release:        0
Summary:        Audio Spectrum Analyzer Plugin using Fourier- and Wavelet-Transformation
License:        GPL-3.0-only
Group:          Productivity/Multimedia/Sound
URL:            https://github.com/JohT/speclet
Source0:        %{name}-%{version}.tar.gz
Source1:        span-1647862971.117fbad.tar.gz
Patch0:         01-speclet-cmake.patch
BuildRequires:  JUCE6-devel
BuildRequires:  Mesa-libGL-devel
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  fftw3-threads-devel
BuildRequires:  libXcursor-devel
BuildRequires:  libXrandr-devel
BuildRequires:  libcurl-devel
BuildRequires:  libjack-devel
BuildRequires:  lv2-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xinerama)
BuildRequires:  lv2_ttl_generator

%description
Speclet is a Audio Spectrum Analyzer Plugin using Fourier- and Wavelet-Transformation.
It was written in 2011 for graduation at Hochschule Mittweida - University of Applied Science in Germany.

Speclet shows the difference between FFT and Wavelet spectral transformation, their variations and parameters.
It might not keep up with other analyzers currently available regarding features, but might help to get an overview of the fourier- and wavelet-transform and how to implement an analyzer with it.

Speclet is for the curious folks getting familiar with spectrum transformation and audio plugin development.

%package -n vst-%{name}
Summary:        Audio Spectrum Analyzer Plugin using Fourier- and Wavelet-Transformation (VST)

%description -n vst-%{name}
Speclet is a Audio Spectrum Analyzer Plugin using Fourier- and Wavelet-Transformation.
It was written in 2011 for graduation at Hochschule Mittweida - University of Applied Science in Germany.

Speclet shows the difference between FFT and Wavelet spectral transformation, their variations and parameters.
It might not keep up with other analyzers currently available regarding features, but might help to get an overview of the fourier- and wavelet-transform and how to implement an analyzer with it.

Speclet is for the curious folks getting familiar with spectrum transformation and audio plugin development.



%package -n vst3-%{name}
Summary:        Audio Spectrum Analyzer Plugin using Fourier- and Wavelet-Transformation (VST3)

%description -n vst3-%{name}
Speclet is a Audio Spectrum Analyzer Plugin using Fourier- and Wavelet-Transformation.
It was written in 2011 for graduation at Hochschule Mittweida - University of Applied Science in Germany.

Speclet shows the difference between FFT and Wavelet spectral transformation, their variations and parameters.
It might not keep up with other analyzers currently available regarding features, but might help to get an overview of the fourier- and wavelet-transform and how to implement an analyzer with it.

Speclet is for the curious folks getting familiar with spectrum transformation and audio plugin development.



%package -n lv2-%{name}
Summary:        Audio Spectrum Analyzer Plugin using Fourier- and Wavelet-Transformation (LV2)

%description -n lv2-%{name}
Speclet is a Audio Spectrum Analyzer Plugin using Fourier- and Wavelet-Transformation.
It was written in 2011 for graduation at Hochschule Mittweida - University of Applied Science in Germany.

Speclet shows the difference between FFT and Wavelet spectral transformation, their variations and parameters.
It might not keep up with other analyzers currently available regarding features, but might help to get an overview of the fourier- and wavelet-transform and how to implement an analyzer with it.

Speclet is for the curious folks getting familiar with spectrum transformation and audio plugin development.



%prep
%setup -q
%autopatch -p1

rm cmake/Environment.cmake
tar xf %{SOURCE1} --strip-components=1 --one-top-level=lib/span

%build
cmake -B cmake-build -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/usr/lib64/juce -DLV2_TTL_GENERATOR=/usr/bin/lv2_ttl_generator
# FIXME: you should use the %%cmake macros
cmake --build cmake-build %{?_smp_mflags}

%install

%define binname Speclet

mkdir -p %{buildroot}%{_bindir}
install cmake-build/%{binname}_artefacts/Release/Standalone/* %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_libdir}/vst
install cmake-build/%{binname}_artefacts/Release/VST/* %{buildroot}%{_libdir}/vst/
mkdir -p %{buildroot}%{_libdir}/vst3
cp -r cmake-build/%{binname}_artefacts/Release/VST3/*.vst3 %{buildroot}%{_libdir}/vst3/
mkdir -p %{buildroot}%{_libdir}/lv2
cp -r cmake-build/%{binname}_artefacts/Release/LV2/*.lv2 %{buildroot}%{_libdir}/lv2/

%files
%{_bindir}/*
%license LICENSE
%doc README.md

%files -n vst-%{name}
%dir %{_libdir}/vst
%{_libdir}/vst/
%doc README.md
%license LICENSE

%files -n vst3-%{name}
%{_libdir}/vst3/
%doc README.md
%license LICENSE

%files -n lv2-%{name}
%{_libdir}/lv2/
%doc README.md
%license LICENSE

%changelog
openSUSE Build Service is sponsored by