]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: add system_qat option, default on for centos9
authorCasey Bodley <cbodley@redhat.com>
Thu, 23 Nov 2023 01:08:19 +0000 (20:08 -0500)
committerCasey Bodley <cbodley@redhat.com>
Wed, 7 Feb 2024 16:13:21 +0000 (11:13 -0500)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
ceph.spec.in

index 1cb63f4c9db5318facd375f8229b26f453cfd5d2..ed36746552776f5194cf6bc5e823f6e29510d02d 100644 (file)
 # 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 \