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