From af893977fb8e0ff9e4721900637576e253b07791 Mon Sep 17 00:00:00 2001 From: zhangxiaoyu Date: Wed, 19 Oct 2022 10:00:41 +0800 Subject: [PATCH] add required package lcr lower and upper version Signed-off-by: zhangxiaoyu (cherry picked from commit 234abd28588fdca54bac25766f36b20b237bb9d0) --- iSulad.spec | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/iSulad.spec b/iSulad.spec index 62c06a9..18d1400 100644 --- a/iSulad.spec +++ b/iSulad.spec @@ -1,5 +1,5 @@ %global _version 2.0.17 -%global _release 2 +%global _release 3 %global is_systemd 1 %global enable_shimv2 1 %global is_embedded 1 @@ -38,10 +38,13 @@ BuildRequires: sqlite-devel Requires: sqlite %endif -%define lcrver 2.0.8 -%define clibcniver 2.0.7 +%define lcrver_lower 2.0.8-0 +%define lcrver_upper 2.0.9-0 +%define clibcniver_lower 2.0.7-0 +%define clibcniver_upper 2.0.8-0 -BuildRequires: lcr-devel >= %{lcrver} clibcni-devel >= %{clibcniver} +BuildRequires: lcr-devel > %{lcrver_lower} lcr-devel < %{lcrver_upper} +BuildRequires: clibcni-devel > %{clibcniver_lower} clibcni-devel < %{clibcniver_upper} BuildRequires: cmake gcc-c++ yajl-devel lxc lxc-devel BuildRequires: grpc grpc-plugins grpc-devel protobuf-devel BuildRequires: libcurl libcurl-devel libarchive-devel device-mapper-devel @@ -53,7 +56,8 @@ BuildRequires: lib-shim-v2 lib-shim-v2-devel %endif -Requires: clibcni >= %{clibcniver} lcr >= %{lcrver} +Requires: lcr > %{lcrver_lower} lcr < %{lcrver_upper} +Requires: clibcni > %{clibcniver_lower} clibcni < %{clibcniver_upper} Requires: grpc protobuf lxc Requires: libcurl Requires: http-parser libseccomp @@ -235,6 +239,12 @@ fi %endif %changelog +* Wed Oct 19 2022 zhangxiaoyu - 2.0.17-3 +- Type: enhancement +- ID: NA +- SUG: NA +- DESC: add required package lcr clibcni lower and upper version + * Mon Oct 10 2022 zhangxiaoyu - 2.0.17-2 - Type: enhancement - ID: NA