File IEMPluginSuite.spec of Package IEMPluginSuite-git
#
# spec file for package IEMPluginSuite
#
# 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: IEMPluginSuite
Version: 1.10.2+git.61ae972
Release: 1
Summary: IEM Plug-in Suite (Standalone)
License: GPL-3.0-only
Group: Productivity/Multimedia/Sound/Utilities
URL: https://git.iem.at/audioplugins/IEMPluginSuite/-/archive/v1.10.2/IEMPluginSuite-v1.10.2.tar.bz2
Source0: %{name}-%{version}.tar.gz
Source1: install.sh
BuildRequires: xorg-x11-libs
BuildRequires: gcc-c++
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(webkit2gtk-4.0)
BuildRequires: pkgconfig(gtk+-x11-3.0)
BuildRequires: fftw3-devel
BuildRequires: libjack-devel
BuildRequires: libcurl-devel
BuildRequires: ladspa-devel
BuildRequires: JUCE-devel
BuildRequires: JUCE-Projucer
BuildRequires: xorg-x11-server
Requires: alsa
%description
The IEM Plug-in Suite is a free and Open-Source audio plugin suite including Ambisonic plug-ins up to 7th order created by staff and students of the
Institute of Electronic Music and Acoustics.
https://plugins.iem.at/
%package vst
Summary: IEM Plug-in Suite (VST)
Group: Productivity/Multimedia/Sound/Midi
%description vst
The IEM Plug-in Suite is a free and Open-Source audio plugin suite including Ambisonic plug-ins up to 7th order created by staff and students of the
Institute of Electronic Music and Acoustics.
This package contains VST plugins.
https://plugins.iem.at/
%prep
%setup -q
cp %{SOURCE1} .
chmod +x ./install.sh
%build
NUMCPUS=`echo %{?_smp_mflags}|tail -c 2`
sed -i -e "s/PARALLEL =/PARALLEL = $NUMCPUS/" Makefile
#%define _lto_cflags %{nil}
%define X_display ":98"
#TARGET_ARCH=-Wl,--as-needed CONFIG=Release make -j4 %{?_smp_mflags}
#CONFIG=Release make -j4
#############################################
### Launch a virtual framebuffer X server ###
#############################################
export DISPLAY=%{X_display}
Xvfb %{X_display} >& Xvfb.log &
trap "kill $! || true" EXIT
sleep 10
CONFIG=Release make
%install
mkdir _bin
mkdir _vst
find . -mindepth 1 -maxdepth 2 -type f -name "*.jucer" -not -name "_*" -not -wholename "*/_*" -print0 | LC_COLLATED=C sort -z | xargs -r0 ./install.sh
mkdir -p %{buildroot}%{_bindir}
install _bin/* %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_libdir}/vst
install _vst/*.so %{buildroot}%{_libdir}/vst/
%files
%{_bindir}/*
%files vst
%dir %{_libdir}/vst
%{_libdir}/vst/*.so
%changelog