From 7710719decea7d66f02dbedacbf45a5427611b4e Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Wed, 22 Nov 2023 20:08:19 -0500 Subject: [PATCH] rpm: add system_qat option, default on for centos9 Signed-off-by: Casey Bodley --- ceph.spec.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ceph.spec.in b/ceph.spec.in index 1cb63f4c9db53..ed36746552776 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -111,6 +111,11 @@ # this is tracked in https://bugzilla.redhat.com/2152265 %bcond_with system_arrow %endif +%if 0%{?fedora} || 0%{?rhel} >= 9 +%bcond_without system_qat +%else +%bcond_with system_qat +%endif %if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} >= 8 || 0%{?openEuler} %global weak_deps 1 %endif @@ -332,6 +337,10 @@ BuildRequires: libarrow-devel BuildRequires: parquet-libs-devel BuildRequires: utf8proc-devel %endif +%if 0%{with system_qat} +BuildRequires: qatlib-devel +BuildRequires: qatzip-devel +%endif %if 0%{with seastar} BuildRequires: c-ares-devel BuildRequires: gnutls-devel @@ -1447,6 +1456,10 @@ cmake .. \ -DWITH_SYSTEM_ARROW:BOOL=ON \ -DWITH_SYSTEM_UTF8PROC:BOOL=ON \ %endif +%if 0%{with system_qat} + -DWITH_SYSTEM_QATLIB:BOOL=ON \ + -DWITH_SYSTEM_QATZIP:BOOL=ON \ +%endif %if 0%{with seastar} -DWITH_SEASTAR:BOOL=ON \ -DWITH_JAEGER:BOOL=OFF \ -- 2.39.5