Make Ceph rbd support optional

Signed-off-by: Qiang Wei <qiang.wei@suse.com>
(cherry picked from commit c428a6f4835b983933d2554c75f8554f67a3fb8a)
This commit is contained in:
Qiang Wei 2022-12-08 15:38:11 +08:00 committed by openeuler-sync-bot
parent aa71f38225
commit 390d4de896

View File

@ -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 <qiang.wei@suse.com> - 3.29-2
- Make Ceph rbd support an optional feature.
* Fri Jan 14 2022 caodongxia <caodongxia@huawei.com> - 3.29-1
- Upgrade 3.29