From 20647a929a4e6a50fee6aceb152bda40da57ed89 Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Mon, 14 Mar 2022 22:22:52 +0100 Subject: [PATCH] Bootstrap may be needed to break circular dependencies between codec2 and lpcnetfreedv --- codec2.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/codec2.spec b/codec2.spec index f976512..0f0bbc5 100644 --- a/codec2.spec +++ b/codec2.spec @@ -1,6 +1,10 @@ %undefine __cmake_in_source_build %{?rhel: %global cmake %cmake3} +# Bootstrap may be needed to break circular dependencies between +# codec2 and lpcnetfreedv +%bcond_with bootstrap + Name: codec2 Version: 1.0.3 Release: 1%{?dist} @@ -13,7 +17,9 @@ Source0: https://github.com/drowe67/codec2/archive/v%{version}/%{name}-%{ BuildRequires: cmake%{?rhel:3} BuildRequires: gcc gcc-c++ BuildRequires: libsamplerate-devel +%if %{without bootstrap} BuildRequires: lpcnetfreedv-devel +%endif BuildRequires: speex-devel %if ! 0%{?rhel} < 8 BuildRequires: speexdsp-devel @@ -50,7 +56,9 @@ Example code for Codec 2 %build %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \ +%if %{without bootstrap} -DLPCNET=ON +%endif %cmake_build