# 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 - 0.5-1 - Init package at 0.5