File three_osc.spec of Package three_osc
# spec file for package three_osc
#
# Copyright (c) 2022 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: three_osc
Version: 0.2.0
Release: 0
Summary: Extended clone of Triple Oscillator from LMMS
License: GPL-3.0-only
Group: Productivity/Multimedia/Sound/Midi
URL: https://github.com/Madadog/three_osc
Source0: %{name}-%{version}.tar.gz
BuildRequires: rust cargo
%description
An LV2 synthesizer based on Triple Oscillator,
a polyphonic subtractive synthesizer with three oscillators
that can modulate each other in various ways.
Extends the original with several useful QOL features,
including bandlimited synthesis by default,
unison with many detuned voices, and legato.
%package -n lv2-%{name}
Group: Productivity/Multimedia/Sound/Midi
Summary: Extended clone of Triple Oscillator from LMMS (LV2 plugin)
%description -n lv2-%{name}
An LV2 synthesizer based on Triple Oscillator,
a polyphonic subtractive synthesizer with three oscillators
that can modulate each other in various ways.
Extends the original with several useful QOL features,
including bandlimited synthesis by default,
unison with many detuned voices, and legato.
This is the LV2 version of the plugin.
%prep
%setup -q -n %{name}-%{version}
%build
cargo build --offline --all-features --release
%install
mkdir -p %{buildroot}%{_libdir}/lv2
cp -v ./target/release/libthree_osc.so ./three_osc.lv2
cp -r three_osc.lv2 %{buildroot}%{_libdir}/lv2
%files -n lv2-%{name}
%doc README.md
%license LICENSE.txt
%dir %{_libdir}/lv2/
%{_libdir}/lv2/*
%changelog