File ninjas2.spec of Package ninjas2
# spec file for package ninjas2
#
# Copyright (c) 2021 Fabio Pesari
#
# 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: ninjas2
Version: 0.2.0+git.13.21740d3
Release: 0
Summary: Sample slicer (standalone version)
License: GPL-3.0
Group: Productivity/Multimedia/Sound/Editors and Convertors
URL: https://github.com/clearly-broken-software/ninjas2
Source0: %{name}-%{version}.tar.gz
BuildRequires: gcc gcc-c++
BuildRequires: Mesa-libGL-devel
BuildRequires: jack-devel
BuildRequires: libsamplerate-devel
BuildRequires: libsndfile-devel
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xrandr)
%description
Rewrite of Ninjas, a sample slicer audio plugin.
%package -n lv2-%{name}
Summary: Sample slicer (LV2 version)
%description -n lv2-%{name}
Rewrite of Ninjas, a sample slicer audio plugin.
%package -n vst-%{name}
Summary: Sample slicer (VST version)
%description -n vst-%{name}
Rewrite of Ninjas, a sample slicer audio plugin.
This is the VST version of the plugin.
%prep
%setup -q
%ifarch x86_64 aarch64
sed -i -e 's/(PREFIX)\/lib/(PREFIX)\/lib64/' Makefile
%endif
%build
%make_build
%install
PREFIX=%{_prefix} %make_install
install bin/%{name} %{buildroot}%{_bindir}/
%files
%doc README.md AUTHORS
%license LICENSE
%{_bindir}/*
%files -n lv2-%{name}
%doc README.md AUTHORS
%license LICENSE
%dir %{_libdir}/lv2/
%{_libdir}/lv2/*
%files -n vst-%{name}
%doc README.md AUTHORS
%license LICENSE
%dir %{_libdir}/vst/
%{_libdir}/vst/*
%changelog