diff --git a/LPCNet-0.5.tar.gz b/LPCNet-0.5.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..aed973a3b71b5f48eea4322b6b4155d17cdf32d5 Binary files /dev/null and b/LPCNet-0.5.tar.gz differ diff --git a/files_in_srpm.txt b/files_in_srpm.txt new file mode 100644 index 0000000000000000000000000000000000000000..51b037a155901a67643b9895ac17c49bfd2bdbaa --- /dev/null +++ b/files_in_srpm.txt @@ -0,0 +1,4 @@ +LPCNet-0.5.tar.gz +lpcnet_191005_v1.0.tgz +lpcnetfreedv-libm.patch +lpcnetfreedv.spec diff --git a/lpcnet_191005_v1.0.tgz b/lpcnet_191005_v1.0.tgz new file mode 100644 index 0000000000000000000000000000000000000000..7599f59ccf29e3d5d0e91f84b2fda9f7bfce6bd6 Binary files /dev/null and b/lpcnet_191005_v1.0.tgz differ diff --git a/lpcnetfreedv-libm.patch b/lpcnetfreedv-libm.patch new file mode 100644 index 0000000000000000000000000000000000000000..00ec6e0928b4da9a7a8bdfba00533922fd4018e7 --- /dev/null +++ b/lpcnetfreedv-libm.patch @@ -0,0 +1,17 @@ +From https://src.fedoraproject.org/rpms/lpcnetfreedv/blob/rawhide/f/lpcnetfreedv-libm.patch + +Index: LPCNet-0.5/src/CMakeLists.txt +=================================================================== +--- LPCNet-0.5.orig/src/CMakeLists.txt ++++ LPCNet-0.5/src/CMakeLists.txt +@@ -42,6 +42,10 @@ endif(LPCNET_C_PROC_FLAGS) + + add_library(lpcnetfreedv SHARED ${lpcnet_freedv_srcs} ${codec2_import_srcs}) + ++if(UNIX) ++target_link_libraries(lpcnetfreedv m) ++endif() ++ + set_target_properties(lpcnetfreedv PROPERTIES + PUBLIC_HEADER lpcnet_freedv.h + VERSION ${LPCNET_VERSION} diff --git a/lpcnetfreedv.spec b/lpcnetfreedv.spec new file mode 100644 index 0000000000000000000000000000000000000000..10abef1972e2904ae258bc1b583338c9334a0415 --- /dev/null +++ b/lpcnetfreedv.spec @@ -0,0 +1,71 @@ +# 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 + +# 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_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 diff --git a/lpcnetfreedv.src.rpm b/lpcnetfreedv.src.rpm new file mode 100644 index 0000000000000000000000000000000000000000..ab1ec1405ff0abcd18327f5f78db974f5754cac1 Binary files /dev/null and b/lpcnetfreedv.src.rpm differ