File Frequalizer.spec of Package Frequalizer
#
# spec file for package juce
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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: Frequalizer
Version: 1.1.0
Release: 0
Summary: The Frequalizer is an 6-band EQ with integrated Analyzer
License: BSD-3-Clause
Group: Productivity/Multimedia/Sound/Utilities
URL: https://github.com/ffAudio/Frequalizer
Source0: %{name}-%{version}.tar.xz
BuildRequires: gcc-c++
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(jack)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(webkit2gtk-4.0)
BuildRequires: pkgconfig(gtk+-x11-3.0)
BuildRequires: libjack-devel
BuildRequires: libcurl-devel
BuildRequires: ladspa-devel
BuildRequires: JUCE-devel
BuildRequires: JUCE-Projucer
BuildRequires: xorg-x11-server
Requires: alsa
%description
This is a JUCE project using the new dsp module for an Equalizer. It features:
six individual bands
an input and an output analyser
solo each band
drag frequency and gain directly in the grap
This package contains standalone ALSA/Jack applincation and VST plugin.
%prep
%setup -q
%build
%define _lto_cflags %{nil}
%define X_display ":98"
sed -i -e /'<\/EXPORTFORMATS>/i <LINUX_MAKE targetFolder="Builds/LinuxMakefile">\ <CONFIGURATIONS>\ <CONFIGURATION isDebug="1" name="Debug"/>\ <CONFIGURATION isDebug="0" name="Release"/>\ </CONFIGURATIONS>\ <MODULEPATHS>\ </MODULEPATHS>\ </LINUX_MAKE>' Frequalizer.jucer
sed -i -e 's/pluginFormats="buildAU,buildStandalone,buildVST3"/pluginFormats="buildAU,buildStandalone,buildVST,buildVST3"/' Frequalizer.jucer
sed -i -e 's/useGlobalPath="0"/useGlobalPath="1"/' Frequalizer.jucer
sed -i -e 's/JUCEOPTIONS/JUCEOPTIONS JUCE_JACK="1" JUCE_WEB_BROWSER="0" JUCE_USE_CURL="0"/' Frequalizer.jucer
#############################################
### Launch a virtual framebuffer X server ###
#############################################
export DISPLAY=%{X_display}
Xvfb %{X_display} >& Xvfb.log &
trap "kill $! || true" EXIT
sleep 10
Projucer --set-global-search-path linux defaultJuceModulePath /usr/share/juce/modules
Projucer --resave %{name}.jucer
cd Builds/LinuxMakefile
TARGET_ARCH=-Wl,--as-needed CONFIG=Release make %{?_smp_mflags}
%install
mkdir -p %{buildroot}%{_bindir}
install Builds/LinuxMakefile/build/%{name}\ Free %{buildroot}%{_bindir}/%{name}Free
mkdir -p %{buildroot}%{_libdir}/vst
install Builds/LinuxMakefile/build/%{name}\ Free.so %{buildroot}%{_libdir}/vst/%{name}Free.so
mkdir -p %{buildroot}%{_docdir}/%{name}
install README.md %{buildroot}%{_docdir}/%{name}
install LICENSE.md %{buildroot}%{_docdir}/%{name}
%files
%{_bindir}/%{name}Free
%dir %{_libdir}/vst
%{_libdir}/vst/%{name}Free.so
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/*
%changelog