!35 [sync] PR-31: 使用条件编译控制对Ceph rbd的依赖

From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-03-31 06:05:23 +00:00 committed by Gitee
commit 525163b449
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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