Make it buildable on RHEL again

This commit is contained in:
Davide Cavalca 2022-09-08 10:09:42 +01:00
parent c6e3dd59ea
commit b220de3e24

View File

@ -1,6 +1,6 @@
Name: fio
Version: 3.32
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Multithreaded IO generation tool
License: GPLv2
@ -9,9 +9,15 @@ Source0: http://brick.kernel.dk/snaps/%{name}-%{version}.tar.bz2
Source1: https://brick.kernel.dk/snaps/%{name}-%{version}.tar.bz2.asc
Source2: https://git.kernel.org/pub/scm/docs/kernel/pgpkeys.git/plain/keys/F7D358FB2971E0A6.asc
%if 0%{?rhel} && 0%{?rhel} < 10
%bcond_without nbd
%bcond_without rbd
%bcond_without rados
%else
%bcond nbd 1
%bcond rbd 1
%bcond rados 1
%endif
BuildRequires: gcc
BuildRequires: gnupg2
@ -241,6 +247,9 @@ make install prefix=%{_prefix} mandir=%{_mandir} libdir=%{_libdir}/fio DESTDIR=$
%endif
%changelog
* Thu Sep 08 2022 Davide Cavalca <dcavalca@fedoraproject.org> - 3.32-3
- Make it buildable on RHEL again
* Wed Sep 07 2022 Amit Shah <amitshah@fedoraproject.org> - 3.32-2
- Allow building without nbd, rbd, rados support