File noise-suppression-for-voice.spec of Package noise-suppression-for-voice

#
# spec file for package noise-suppression-for-voice
#
# Copyright (c) 2020 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:           noise-suppression-for-voice
Version:        0.9
Release:        0
## the VST2 plugin is not being built, see if anything should be done about it
Summary:        Real-time Noise Suppression Plugin (LV2 and LADSPA)
License:        GPL-3.0-only
URL:            https://github.com/werman/noise-suppression-for-voice
Source0:        https://github.com/werman/noise-suppression-for-voice/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE noise-suppression-for-voice-includes.patch
Patch0:         noise-suppression-for-voice-includes.patch
BuildRequires:  cmake
BuildRequires:  gcc-c++
# we would also need the plus variant
###BuildRequires:  ladspa-devel
# see if headers are actually being used
BuildRequires:  lv2-devel
###Requires:       

%description
A real-time noise suppression plugin for voice based on Xiph's RNNoise.

The plugin is meant to suppress a wide range of noise origins:
computer fans, office, crowd, airplane, car, train, construction.

ts mild background noise is always suppressed, loud sounds, like clicking
of mechanical keyboard, are suppressed while there is no voice however
they are only reduced in volume when voice is present.

The plugin is made to work with 1 channel and/or 2 channels (ladspa
plugin), 16 bit, 48000 Hz audio input. Other sample rates may work,
or not...

%package -n ladspa-librnnoise
Summary:        Real-time Noise Suppression Plugin (LADSPA)
Requires:       ladspa

%description -n ladspa-librnnoise
A real-time noise suppression plugin for voice based on Xiph's RNNoise.

The plugin is meant to suppress a wide range of noise origins:
computer fans, office, crowd, airplane, car, train, construction.

ts mild background noise is always suppressed, loud sounds, like clicking
of mechanical keyboard, are suppressed while there is no voice however
they are only reduced in volume when voice is present.

The plugin is made to work with 1 channel and/or 2 channels (ladspa
plugin), 16 bit, 48000 Hz audio input. Other sample rates may work,
or not...

%package -n lv2-librnnoise
Summary:        Real-time Noise Suppression Plugin (LV2)
Requires:       lv2

%description -n lv2-librnnoise
A real-time noise suppression plugin for voice based on Xiph's RNNoise.

The plugin is meant to suppress a wide range of noise origins:
computer fans, office, crowd, airplane, car, train, construction.

ts mild background noise is always suppressed, loud sounds, like clicking
of mechanical keyboard, are suppressed while there is no voice however
they are only reduced in volume when voice is present.

The plugin is made to work with 1 channel and/or 2 channels (ladspa
plugin), 16 bit, 48000 Hz audio input. Other sample rates may work,
or not...

%prep
%autosetup -p1
# recheck this one
###rm src/ladspa_plugin/ladspa*

%build
%cmake
%cmake_build

%install
%cmake_install

%files -n ladspa-librnnoise
%license LICENSE
%doc README.md
%dir %{_libdir}/ladspa
%{_libdir}/ladspa/librnnoise_ladspa.so

%files -n lv2-librnnoise
%license LICENSE
%doc README.md
%{_libdir}/lv2/librnnoise_lv2.so

%changelog
openSUSE Build Service is sponsored by