From: Casey Bodley Date: Thu, 23 Nov 2023 01:08:19 +0000 (-0500) Subject: rpm: add system_qat option, default on for centos9 X-Git-Tag: v19.3.0~58^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7710719decea7d66f02dbedacbf45a5427611b4e;p=ceph.git rpm: add system_qat option, default on for centos9 Signed-off-by: Casey Bodley --- diff --git a/ceph.spec.in b/ceph.spec.in index 1cb63f4c9db5..ed3674655277 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 \