!746 enable nri support only on specified architecture

From: @liuxu180400617 
Reviewed-by: @taotao-sauce 
Signed-off-by: @taotao-sauce
This commit is contained in:
openeuler-ci-bot 2024-11-26 08:47:21 +00:00 committed by Gitee
commit a51e04f45a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,5 +1,5 @@
%global _version 2.1.5 %global _version 2.1.5
%global _release 12 %global _release 13
%global is_systemd 1 %global is_systemd 1
%global enable_criv1 1 %global enable_criv1 1
%global enable_cdi 1 %global enable_cdi 1
@ -7,6 +7,10 @@
%global is_embedded 1 %global is_embedded 1
%global cpp_std 17 %global cpp_std 17
%ifarch x86_64 aarch64
%global enable_nri 0
%endif
Name: iSulad Name: iSulad
Version: %{_version} Version: %{_version}
Release: %{_release} Release: %{_release}
@ -197,7 +201,9 @@ BuildRequires: libevhtp-devel libevent-devel
%if 0%{?enable_shimv2} %if 0%{?enable_shimv2}
BuildRequires: lib-shim-v2 lib-shim-v2-devel BuildRequires: lib-shim-v2 lib-shim-v2-devel
%endif %endif
%if 0%{?enable_nri}
BuildRequires: isula-rust-extensions-devel
%endif
Requires: libisula > %{lcrver_lower} libisula < %{lcrver_upper} Requires: libisula > %{lcrver_lower} libisula < %{lcrver_upper}
Requires: grpc protobuf Requires: grpc protobuf
@ -210,6 +216,9 @@ BuildRequires: libevhtp libevent
%if 0%{?enable_shimv2} %if 0%{?enable_shimv2}
Requires: lib-shim-v2 Requires: lib-shim-v2
%endif %endif
%if 0%{?enable_nri}
Requires: isula-rust-extensions
%endif
%description %description
This is a umbrella project for gRPC-services based Lightweight Container This is a umbrella project for gRPC-services based Lightweight Container
@ -231,6 +240,9 @@ cd build
%if 0%{?enable_cdi} %if 0%{?enable_cdi}
-DENABLE_CDI=ON \ -DENABLE_CDI=ON \
%endif %endif
%if 0%{?enable_nri}
-DENABLE_NRI=ON \
%endif
%endif %endif
%if 0%{?enable_shimv2} %if 0%{?enable_shimv2}
-DENABLE_SHIM_V2=ON \ -DENABLE_SHIM_V2=ON \
@ -413,6 +425,12 @@ fi
%endif %endif
%changelog %changelog
* Thu Nov 21 2024 zhongtao <zhongtao17@huawei.com> - 2.1.5-13
- Type: bugfix
- ID: NA
- SUG: NA
- DESC: enable nri support only on specified architecture
* Mon Oct 21 2024 wujichao <wujichao1@huawei.com> - 2.1.5-12 * Mon Oct 21 2024 wujichao <wujichao1@huawei.com> - 2.1.5-12
- Type: update - Type: update
- ID: NA - ID: NA