[packages/lpcnetfreedv] - updated to 0.5 (new soname; breaks circular dependency with codec2)

qboosh qboosh at pld-linux.org
Fri Feb 16 17:18:26 CET 2024


commit a10098339cc250f316ad9ffccee5b585baf685fe
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Feb 16 16:46:04 2024 +0100

    - updated to 0.5 (new soname; breaks circular dependency with codec2)

 lpcnetfreedv-link.patch | 10 ++++++++++
 lpcnetfreedv.spec       |  9 +++++----
 2 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/lpcnetfreedv.spec b/lpcnetfreedv.spec
index 3eb13f7..5531cbe 100644
--- a/lpcnetfreedv.spec
+++ b/lpcnetfreedv.spec
@@ -7,18 +7,18 @@
 Summary:	LPCNet for FreeDV
 Summary(pl.UTF-8):	LPCNet dla FreeDV
 Name:		lpcnetfreedv
-Version:	0.3
+Version:	0.5
 Release:	1
 License:	BSD
 Group:		Libraries
 #Source0Download: https://github.com/drowe67/LPCNet/releases
 Source0:	https://github.com/drowe67/LPCNet/archive/v%{version}/LPCNet-%{version}.tar.gz
-# Source0-md5:	81b850852bddfd92c264ba5f9c05d089
+# Source0-md5:	5960a002a46e8df245f0294ba3a1c832
 Source1:	http://rowetel.com/downloads/deep/lpcnet_191005_v1.0.tgz
 # Source1-md5:	a86894b209a1869b50454fe591f047a1
+Patch0:		%{name}-link.patch
 URL:		https://github.com/drowe67/LPCNet
 BuildRequires:	cmake >= 3.0
-BuildRequires:	codec2-devel >= 0.9
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -47,6 +47,7 @@ Pliki programistyczne LPCNet.
 
 %prep
 %setup -q -n LPCNet-%{version}
+%patch0 -p1
 
 %build
 install -d build
@@ -77,7 +78,7 @@ rm -rf $RPM_BUILD_ROOT
 %doc COPYING README.md
 %attr(755,root,root) %{_bindir}/lpcnet_dec
 %attr(755,root,root) %{_bindir}/lpcnet_enc
-%attr(755,root,root) %{_libdir}/liblpcnetfreedv.so.0.3
+%attr(755,root,root) %{_libdir}/liblpcnetfreedv.so.0.5
 
 %files devel
 %defattr(644,root,root,755)
diff --git a/lpcnetfreedv-link.patch b/lpcnetfreedv-link.patch
new file mode 100644
index 0000000..81cca2e
--- /dev/null
+++ b/lpcnetfreedv-link.patch
@@ -0,0 +1,10 @@
+--- LPCNet-0.5/src/CMakeLists.txt.orig	2023-05-05 21:42:19.000000000 +0200
++++ LPCNet-0.5/src/CMakeLists.txt	2024-02-16 05:31:49.759488612 +0100
+@@ -42,6 +42,7 @@ endif(LPCNET_C_PROC_FLAGS)
+ 
+ add_library(lpcnetfreedv SHARED ${lpcnet_freedv_srcs} ${codec2_import_srcs})
+ 
++target_link_libraries(lpcnetfreedv m)
+ set_target_properties(lpcnetfreedv PROPERTIES
+     PUBLIC_HEADER lpcnet_freedv.h
+ 	VERSION ${LPCNET_VERSION}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lpcnetfreedv.git/commitdiff/a10098339cc250f316ad9ffccee5b585baf685fe



More information about the pld-cvs-commit mailing list