blob: 275cc78d8df73465fbf04af2772ae43d2a653bae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
%global date 20210312
Name: rnnoise
Version: 0
Release: 0.4
Summary: Recurrent neural network for audio noise reduction
License: BSD-3-Clause
URL: https://gitlab.xiph.org/xiph/rnnoise
Source0: %{name}-%{version}.%{date}.tar.gz
Source1: %{name}.manifest
%description
RNNoise is a noise suppression library based on a recurrent neural network.
While it is meant to be used as a library, a simple command-line tool is
provided as an example. It operates on RAW 16-bit (machine endian) mono PCM
files sampled at 48 kHz. It can be used as:
./examples/rnnoise_demo <noisy speech> <output denoised>
The output is also a 16-bit raw PCM file.
%package devel
Summary: Devel files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Devel files for %{name}.
%prep
%setup -q
cp %{SOURCE1} .
cat > 'package_version' <<-EOF
PACKAGE_VERSION=%{date}
EOF
%build
./autogen.sh
%configure \
--disable-static
%make_build
%install
make install DESTDIR=%{buildroot} INSTALL="install -p"
rm -fv %{buildroot}%{_libdir}/lib*.la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
%license COPYING
%{_libdir}/lib%{name}.so.0*
%exclude %{_datadir}/doc/%{name}/AUTHORS
%exclude /usr/share/doc/%{name}/COPYING
%exclude /usr/share/doc/%{name}/README
%files devel
%{_includedir}/*.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/*.pc
|