From 390d4de896de752334a1c70e012aa7ac26df08f9 Mon Sep 17 00:00:00 2001 From: Qiang Wei Date: Thu, 8 Dec 2022 15:38:11 +0800 Subject: [PATCH] Make Ceph rbd support optional Signed-off-by: Qiang Wei (cherry picked from commit c428a6f4835b983933d2554c75f8554f67a3fb8a) --- fio.spec | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/fio.spec b/fio.spec index 617c699..08f4507 100644 --- a/fio.spec +++ b/fio.spec @@ -1,11 +1,17 @@ +# Whether to support Ceph rbd storage +%bcond_without rbd + Name: fio Version: 3.29 -Release: 1 +Release: 2 Summary: Versatile IO workload generator License: GPLv2 URL: http://git.kernel.dk/?p=fio.git;a=summary Source: http://brick.kernel.dk/snaps/%{name}-%{version}.tar.bz2 -BuildRequires: libaio-devel python3-devel zlib-devel librbd1-devel numactl-devel librdmacm-devel gcc +BuildRequires: libaio-devel python3-devel zlib-devel numactl-devel librdmacm-devel gcc +%if %{with rbd} +BuildRequires: librbd1-devel +%endif %ifarch x86_64 BuildRequires: libpmem-devel libpmemblk-devel @@ -32,7 +38,9 @@ pathfix.py -i %{__python3} -pn \ t/steadystate_tests.py %build -./configure --disable-optimizations +./configure --disable-optimizations \ + %{!?with_rbd:--disable-rbd} + export EXTFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" %make_build V=1 @@ -50,6 +58,9 @@ export EXTFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" %{_mandir}/man1/* %changelog +* Tue Dec 6 2022 Qiang Wei - 3.29-2 +- Make Ceph rbd support an optional feature. + * Fri Jan 14 2022 caodongxia - 3.29-1 - Upgrade 3.29 -- Gitee