diff options
Diffstat (limited to 'lpcnetfreedv.spec')
-rw-r--r-- | lpcnetfreedv.spec | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/lpcnetfreedv.spec b/lpcnetfreedv.spec new file mode 100644 index 0000000..4236590 --- /dev/null +++ b/lpcnetfreedv.spec @@ -0,0 +1,68 @@ +# Modified from https://src.fedoraproject.org/rpms/lpcnetfreedv/blob/rawhide/f/lpcnetfreedv.spec + +Name: lpcnetfreedv +Version: 0.5 +Release: 1 +Summary: LPCNet for FreeDV + +# Automatically converted from old format: BSD - review is highly recommended. +License: LicenseRef-Callaway-BSD +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 -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo +cmake --build build + + +%install +DESTDIR="%{buildroot}" cmake --install build + + +%check +# Test scripts incorrectly assume build directory name. Need to fix. +#ctest + + +%files +%license COPYING +%doc README.md +%{_libdir}/lib%{name}.so.%{version} + +%files devel +%{_bindir}/* +%{_includedir}/lpcnet/ +%{_libdir}/cmake/lpcnetfreedv/ +%{_libdir}/lib%{name}.so + + +%changelog +* Fri Nov 22 2024 Suyun <ziyu.oerv@isrc.iscas.ac.cn> - 0.5-1 +- Init package at 0.5 |