File IEMPluginSuite.spec of Package IEMPluginSuite

#
# spec file for package IEMPluginSuite
#
# Copyright (c) 2023 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:           IEMPluginSuite
Version:        1.14.1
Release:        0
Summary:        IEM Plug-in Suite (Standalone)
License:        GPL-3.0-only
Group:          Productivity/Multimedia/Sound/Utilities
URL:            https://plugins.iem.at/
Source0:        https://git.iem.at/audioplugins/IEMPluginSuite/-/archive/v%{version}/IEMPluginSuite-v%{version}.tar.bz2
BuildRequires:  JUCE7_05-devel
BuildRequires:  Mesa-libGL-devel
BuildRequires:  cmake
BuildRequires:  fftw3-devel
BuildRequires:  gcc-c++
BuildRequires:  ladspa-devel
BuildRequires:  libXcursor-devel
BuildRequires:  libXrandr-devel
BuildRequires:  libjack-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xinerama)

%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 -n vst-%{name}
Summary:        IEM Plug-in Suite (VST)
Group:          Productivity/Multimedia/Sound/Midi

%description -n vst-%{name}

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/

%package -n vst3-%{name}
Summary:        IEM Plug-in Suite (VST3)
Group:          Productivity/Multimedia/Sound/Midi

%description -n vst3-%{name}

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/

%package -n lv2-%{name}
Summary:        IEM Plug-in Suite (LV2)
Group:          Productivity/Multimedia/Sound/Midi

%description -n lv2-%{name}

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 -n %{name}-v%{version}

sed -i -e 's/message (FATAL_ERROR "You have to/# message (FATAL_ERROR "You have to/' CMakeLists.txt

%build
%cmake               -DIEM_USE_SYSTEM_JUCE=ON \
                     -DIEM_BUILD_VST2=ON \
                     -DIEM_BUILD_VST3=ON \
                     -DIEM_BUILD_LV2=ON \
                     -DVST2SDKPATH=%{_includedir} \
                     -DIEM_BUILD_STANDALONE=ON \
                     -DIEM_POST_BUILD_INSTALL=NO
%cmake_build

%install
mkdir -p %{buildroot}%{_bindir}
for i in `find ./build/ -path "*/Standalone/*" -type f -executable`; do cp $i %{buildroot}%{_bindir}/; done

mkdir -p %{buildroot}%{_libdir}/vst/IEM
for i in `find ./build/ -path "*/VST/*" -type f -name "*.so"`; do cp $i %{buildroot}%{_libdir}/vst/IEM/; done

mkdir -p %{buildroot}%{_libdir}/vst3/IEM
for i in `find ./build/ -type d -name "*.vst3"`; do cp -r $i %{buildroot}%{_libdir}/vst3/IEM/; done

mkdir -p %{buildroot}%{_libdir}/lv2/IEM
for i in `find ./build/ -type d -name "*.lv2"`; do cp -r $i %{buildroot}%{_libdir}/lv2/IEM/; done

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

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

%files -n vst3-%{name}
%doc README.md
%dir %{_libdir}/vst3
%dir %{_libdir}/vst3/IEM
%{_libdir}/vst3/IEM/

%files -n lv2-%{name}
%doc README.md
%dir %{_libdir}/lv2
%dir %{_libdir}/lv2/IEM
%{_libdir}/lv2/IEM/

%changelog
openSUSE Build Service is sponsored by