From 11031ea9c6417c008a8e319262cf3b7b356cffa4 Mon Sep 17 00:00:00 2001 From: zhongtao Date: Mon, 19 Aug 2024 10:32:57 +0800 Subject: [PATCH] open nri support in build Signed-off-by: zhongtao --- iSulad.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/iSulad.spec b/iSulad.spec index 6db1f73..9d27fbf 100644 --- a/iSulad.spec +++ b/iSulad.spec @@ -3,6 +3,7 @@ %global is_systemd 1 %global enable_criv1 1 %global enable_cdi 1 +%global enable_nri 1 %global enable_shimv2 1 %global is_embedded 1 %global cpp_std 17 @@ -177,7 +178,9 @@ BuildRequires: libevhtp-devel libevent-devel %if 0%{?enable_shimv2} BuildRequires: lib-shim-v2 lib-shim-v2-devel %endif - +%if 0%{?enable_nri} +BuildRequires: isula-rust-extensions-devel +%endif Requires: libisula > %{lcrver_lower} libisula < %{lcrver_upper} Requires: grpc protobuf @@ -190,6 +193,9 @@ BuildRequires: libevhtp libevent %if 0%{?enable_shimv2} Requires: lib-shim-v2 %endif +%if 0%{?enable_nri} +Requires: isula-rust-extensions +%endif %description This is a umbrella project for gRPC-services based Lightweight Container @@ -211,6 +217,9 @@ cd build %if 0%{?enable_cdi} -DENABLE_CDI=ON \ %endif +%if 0%{?enable_nri} + -DENABLE_NRI=ON \ +%endif %endif %if 0%{?enable_shimv2} -DENABLE_SHIM_V2=ON \ -- Gitee