blob: e9f9dfcd59630624bcfe4e357313fc9898b4f057 (
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
64
65
66
67
68
69
70
|
# Modified from https://src.fedoraproject.org/rpms/lpcnetfreedv/blob/rawhide/f/lpcnetfreedv.spec
%undefine __cmake_in_source_build
%global sover 0.5
Name: lpcnetfreedv
Version: 0.5
Release: 1
Summary: LPCNet for FreeDV
License: BSD-3-Clause
URL: https://github.com/drowe67/LPCNet
Source0: https://github.com/drowe67/LPCNet/archive/v%{version}/LPCNet-%{version}.tar.gz
Source1: http://rowetel.com/downloads/deep/lpcnet_191005_v1.0.tgz
Patch0: lpcnetfreedv-libm.patch
BuildRequires: cmake gcc
%description
Experimental version of LPCNet that has been used to develop FreeDV 2020 - a HF
radio Digial Voice mode for over the air experimentation with Neural Net speech
coding. Possibly the first use of Neural Net speech coding in real world
operation.
%package devel
Requires: %{name}%{?_isa} = %{version}-%{release}
Summary: Development files and tools for LPCNet
%description devel
%{summary}.
%prep
%autosetup -p1 -n LPCNet-%{version}
%build
# Add model data archive to the build directory so CMake finds it.
mkdir -p %{_vpath_builddir}
cp %{SOURCE1} %{__cmake_builddir}/
%cmake
%cmake_build
%install
%cmake_install
%check
# Test scripts incorrectly assume build directory name. Need to fix.
#ctest
%files
%license COPYING
%doc README.md
%{_libdir}/lib%{name}.so.%{sover}
%files devel
%{_bindir}/*
%{_includedir}/lpcnet/
%{_libdir}/cmake/lpcnetfreedv/
%{_libdir}/lib%{name}.so
%changelog
* Tue Jan 14 2025 Suyun <ziyu.oerv@isrc.iscas.ac.cn> - 0.5-1
- Init package at 0.5
|