File wolf-shaper.spec of Package wolf-shaper

# spec file for package wolf-shaper
#
# 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:          wolf-shaper
Version:       1.0.2
Release:       0%{?dist}
Summary:       Waveshaper plugin with spline-based graph editor (Standalone JACK version)
License:       GPL-3.0
Group:         Productivity/Multimedia/Sound/Utilities
URL:           https://github.com/pdesaulniers/wolf-shaper
Source0:       %{name}-%{version}.tar.gz
Source1:       wolf-shaper.png
BuildRequires: gcc gcc-c++
BuildRequires: cmake
BuildRequires: pkgconfig(gl)
BuildRequires: cairo-devel
BuildRequires: liblo-devel
BuildRequires: libjack-devel
BuildRequires: update-desktop-files

%description
Wolf Shaper is a waveshaper plugin with a graph editor. 
This is the standalone JACK application.
It has the following features:
* Add up to 100 nodes in the graph
* Symmetrical and asymmetrical waveshaping
* Resizable vector-based UI

%package -n lv2-%{name}
Summary:       Waveshaper plugin with spline-based graph editor (LV2 Plugin)

%description -n lv2-%{name}
Wolf Shaper is a waveshaper plugin with a graph editor. This is the LV2 version.
It has the following features:
* Add up to 100 nodes in the graph
* Symmetrical and asymmetrical waveshaping
* Resizable vector-based UI

%package -n vst-%{name}
Summary:       Waveshaper plugin with spline-based graph editor (VST2 Plugin)

%description -n vst-%{name}
Wolf Shaper is a waveshaper plugin with a graph editor. This is the VST2 version.
It has the following features:
* Add up to 100 nodes in the graph
* Symmetrical and asymmetrical waveshaping
* Resizable vector-based UI

%package -n vst3-%{name}
Summary:       Waveshaper plugin with spline-based graph editor (VST3 Plugin)

%description -n vst3-%{name}
Wolf Shaper is a waveshaper plugin with a graph editor. This is the VST3 version.
It has the following features:
* Add up to 100 nodes in the graph
* Symmetrical and asymmetrical waveshaping
* Resizable vector-based UI

%package -n clap-%{name}
Summary:       Waveshaper plugin with spline-based graph editor (CLAP Plugin)

%description -n clap-%{name}
Wolf Shaper is a waveshaper plugin with a graph editor. This is the CLAP version.
It has the following features:
* Add up to 100 nodes in the graph
* Symmetrical and asymmetrical waveshaping
* Resizable vector-based UI

%package -n dssi-%{name}
Summary:       Waveshaper plugin with spline-based graph editor (DSSI Plugin)

%description -n dssi-%{name}
Wolf Shaper is a waveshaper plugin with a graph editor. This is the DSSI version.
It has the following features:
* Add up to 100 nodes in the graph
* Symmetrical and asymmetrical waveshaping
* Resizable vector-based UI

%prep
%setup -q

%build
%cmake
%cmake_build

%install

mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/pixmaps
mkdir -p %{buildroot}%{_libdir}/{lv2,vst,vst3,clap,dssi}
install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps
install -m 755 build/bin/wolf-shaper %{buildroot}%{_bindir}
cp -r build/bin/wolf-shaper.lv2 %{buildroot}%{_libdir}/lv2/
install -m 755 build/bin/wolf-shaper-vst.so %{buildroot}%{_libdir}/vst/
cp -r build/bin/wolf-shaper.vst3 %{buildroot}%{_libdir}/vst3/
install -m 755 build/bin/wolf-shaper.clap %{buildroot}%{_libdir}/clap/
install -m 755 build/bin/wolf-shaper-dssi.so %{buildroot}%{_libdir}/dssi/
cp -r build/bin/wolf-shaper-dssi %{buildroot}%{_libdir}/dssi/
%suse_update_desktop_file -c wolf-shaper "Wolf Shaper" "Waveshaper plugin w/ spline-based graph editor" wolf-shaper "%{_datadir}/pixmaps/wolf-shaper.png" AudioVideo Audio AudioVideoEditing

%files
%doc README.md
%license LICENSE
%{_bindir}/wolf-shaper
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*

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

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

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

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

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

%changelog
openSUSE Build Service is sponsored by