File dpf-plugins.spec of Package dpf-plugins

# spec file for package dpf-plugins
#
# Copyright (c) 2019 Fabio Pesari
# 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 http://bugs.opensuse.org/

Name:          dpf-plugins
Version:       @SERVICE@
Release:       %{?dist}
Summary:       Collection of audio plugins based on the DPF framework from DISTHRO Project
License:       ISC and MIT and GPL-2.0 and GPL-3.0 and LGPL-3.0
Group:         Productivity/Multimedia/Sound/Utilities
URL:           https://github.com/DISTRHO/DPF-Plugins
Source0:       DPF-Plugins-%{version}.tar.xz
Source1:       distrho-icon.png
BuildRoot:     %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc gcc-c++
BuildRequires: cairo-devel
BuildRequires: libjack-devel
BuildRequires: update-desktop-files
Requires:      %{name}-common = %{version}-%{release}

%description
Collection of audio plugins based on the DPF framework from DISTHRO Project.

This is a standalone applications

Contains the following plugins:
* 3BandEQ
* 3BandSplitter
* AmplitudeImposer
* CycleShifter
* glBars
* Kars
* MaBitcrush
* MaFreeverb
* MaGigaverb
* MaPitchshift
* MVerb
* Nekobi (aka Nekobee)
* PingPongPan
* SoulForce

%package common
Summary:       Common files for dpf-plugins
%description common
Common files for dpf-plugins.

%package -n lv2-%{name}
Requires:      %{name}-common = %{version}-%{release}
Summary:       dpf-plugins in LV2 format
%description -n lv2-dpf-plugins
Collection of audio plugins based on the DPF framework from DISTHRO Project (LV2 version).

Contains the following plugins:
* 3BandEQ
* 3BandSplitter
* AmplitudeImposer
* CycleShifter
* glBars
* Kars
* MaBitcrush
* MaFreeverb
* MaGigaverb
* MaPitchshift
* MVerb
* Nekobi (aka Nekobee)
* PingPongPan
* SoulForce

%package -n dssi-%{name}
Requires:      %{name}-common = %{version}-%{release}
Summary:       dpf-plugins in DSSI format
BuildRequires: liblo-devel

%description -n dssi-dpf-plugins
Collection of audio plugins based on the DPF framework from DISTHRO Project (DSSI version).

Contains the following plugins:
* 3BandEQ
* 3BandSplitter
* AmplitudeImposer
* CycleShifter
* glBars
* Kars
* MaBitcrush
* MaFreeverb
* MaGigaverb
* MaPitchshift
* MVerb
* Nekobi (aka Nekobee)
* PingPongPan
* SoulForce

%package -n ladspa-%{name}
Requires:      %{name}-common = %{version}-%{release}
Summary:       dpf-plugins in LADSPA format

%description -n ladspa-dpf-plugins
Collection of audio plugins based on the DPF framework from DISTHRO Project (LADSPA version).

Contains the following plugins:
* 3BandEQ
* 3BandSplitter
* AmplitudeImposer
* CycleShifter
* glBars
* Kars
* MaBitcrush
* MaFreeverb
* MaGigaverb
* MaPitchshift
* MVerb
* Nekobi (aka Nekobee)
* PingPongPan
* SoulForce

%package -n %{name}-vst
Requires:      %{name}-common = %{version}-%{release}
Summary:       dpf-plugins in VST format

%description -n dpf-plugins-vst
Collection of audio plugins based on the DPF framework from DISTHRO Project (VST version).

Contains the following plugins:
* 3BandEQ
* 3BandSplitter
* AmplitudeImposer
* CycleShifter
* glBars
* Kars
* MaBitcrush
* MaFreeverb
* MaGigaverb
* MaPitchshift
* MVerb
* Nekobi (aka Nekobee)
* PingPongPan
* SoulForce

%package -n %{name}-jack
Requires:      %{name}-common = %{version}-%{release}
Summary:       dpf-plugins in standalone jack format

%description -n %{name}-jack
Collection of audio plugins based on the DPF framework from DISTHRO Project (jack version).

Contains the following plugins:
* 3BandEQ
* 3BandSplitter
* AmplitudeImposer
* CycleShifter
* glBars
* Kars
* MVerb
* Nekobi (aka Nekobee)
* PingPongPan
* SoulForce

%prep
%setup -q -n DPF-Plugins-%{version}

%build
sed -i 's=/lib/=/%{_lib}/=g' Makefile
make PREFIX=%{_prefix} LIBDIR=%{_libdir} DESTDIR=%{buildroot} %{?_smp_mflags}

%install
make PREFIX=%{_prefix} LIBDIR=%{_libdir} DESTDIR=%{buildroot} %{?_smp_mflags} install

#Clean Ma* nogui plugins binary
rm -rf %{buildroot}/%{_bindir}/Ma*

mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m 644 %{SOURCE1} %{buildroot}/%{_datadir}/pixmaps

%suse_update_desktop_file -c 3bandeq 3BandEQ "Three band equalizer" 3BandEQ "%{_datadir}/pixmaps/distrho-icon.png" AudioVideo Audio AudioVideoEditing
%suse_update_desktop_file -c 3bandsplitter 3BandSplitter "Three band audio splitter" 3BandSplitter "%{_datadir}/pixmaps/distrho-icon.png" AudioVideo Audio AudioVideoEditing
%suse_update_desktop_file -c pingpongpan PingPongPan "Ping Pong audio panner" PingPongPan "%{_datadir}/pixmaps/distrho-icon.png" AudioVideo Audio AudioVideoEditing
%suse_update_desktop_file -c amplitudeimposer AmplitudeImposer "Amplitude Imposer audio effect" AmplitudeImposer "%{_datadir}/pixmaps/distrho-icon.png" AudioVideo Audio AudioVideoEditing
%suse_update_desktop_file -c cycleshifter CycleShifter "Cycle Shifter audio effect" CycleShifter "%{_datadir}/pixmaps/distrho-icon.png" AudioVideo Audio AudioVideoEditing
%suse_update_desktop_file -c soulforce SoulForce "Waveshaping distortion audio effect with feedback" SoulForce "%{_datadir}/pixmaps/distrho-icon.png" AudioVideo Audio AudioVideoEditing
%suse_update_desktop_file -c mverb MVerb "Reverb audio effect" MVerb "%{_datadir}/pixmaps/distrho-icon.png" AudioVideo Audio AudioVideoEditing
%suse_update_desktop_file -c nekobi Nekobi "Single-oscillator synth, well-suited for bass sounds" Nekobi "%{_datadir}/pixmaps/distrho-icon.png" AudioVideo Audio AudioVideoEditing
%suse_update_desktop_file -c glbars glBars "Audio visualizer" glBars "%{_datadir}/pixmaps/distrho-icon.png" AudioVideo Audio AudioVideoEditing

%files common
%doc README.md
%license LICENSE

%files -n lv2-%{name}
%{_libdir}/lv2/

%files -n dssi-%{name}
%{_libdir}/dssi/

%files -n ladspa-%{name}
%{_libdir}/ladspa/

%files -n %{name}-vst
%{_libdir}/vst/

%files -n %{name}-jack
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*


%changelog