Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37867213
en ru br
ALT Linux repos
S:0.12.2-alt1

Group :: Sound
RPM: noisetorch

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: noisetorch
Version: 0.12.2
Release: alt1

Summary: Real-time microphone noise suppression on Linux

License: GPL-3.0-or-later
Group: Sound
Url: https://github.com/NoiseTorch/NoiseTorch

# Source-url: https://github.com/noisetorch/NoiseTorch/archive/refs/tags/v%version.tar.gz

Source: %name-%version.tar

#Source1: %name-development-%version.tar


# Source2-url: https://github.com/noisetorch/c-ringbuf/archive/refs/heads/master.zip

Source2: %name-c-ringbuf-%version.tar

Patch1: noisetorch-rnnoise.patch

BuildRequires: gcc-c++
BuildRequires: cmake
#BuildRequires: git-core
BuildRequires: hicolor-icon-theme
BuildRequires: golang >= 1.18
BuildRequires: librnnoise-devel

%description
NoiseTorch is an easy to use open source application for Linux with PulseAudio.
It creates a virtual microphone that suppresses noise, in any application. Use
whichever conferencing or VOIP application you like and simply select the
NoiseTorch Virtual Microphone as input to torch the sound of your mechanical
keyboard, computer fans, trains and the likes.

%prep
%setup -a2
%patch1 -p2

%build
pushd c/ladspa
%make_build
ldd rnnoise_ladspa.so
popd
go generate
# -tags release would enable the auto-updater (update.go)

CGO_ENABLED=0 GOOS=linux go build \
%ifnarch ppc64
   -buildmode=pie \
%endif
   -a -ldflags '-w -X main.version=%version -X main.distribution=rpm' .

%install
install -D -m 644 assets/icon/noisetorch.png %buildroot/%_iconsdir/hicolor/256x256/apps/noisetorch.png
install -D -m 644 assets/noisetorch.desktop %buildroot/%_desktopdir/noisetorch.desktop
install -D -m 755 noisetorch %buildroot/%_bindir/noisetorch

%files
%doc LICENSE
%doc README.md
#caps(cap_sys_resource+ep) %_bindir/noisetorch
%_bindir/noisetorch
%_desktopdir/noisetorch.desktop
%_iconsdir/hicolor/256x256/apps/noisetorch.png

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin