From ac063cb2e76d64a907f96bf0b6a29da4eb484ebc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabiano=20Fid=C3=AAncio?= Date: Sat, 7 Dec 2019 16:35:24 +0100 Subject: [PATCH] spec: Adjust librbd / librados dependency names MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit librbd1-devel and librados2-devel have their package name changed to librbd-devel and librados-devel on all the supported Fedora versions and CentOS / RHEL 8. For more info about this change, please, refer to the following page: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/considerations_in_adopting_rhel_8/index Signed-off-by: Fabiano Fidêncio Reviewed-by: Daniel P. Berrangé --- libvirt.spec.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libvirt.spec.in b/libvirt.spec.in index 5955dd6f5a..01f28e62d6 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -335,9 +335,14 @@ BuildRequires: device-mapper-devel # For XFS reflink clone support BuildRequires: xfsprogs-devel %if %{with_storage_rbd} +%if 0%{?fedora} || 0%{?rhel} > 7 +BuildRequires: librados-devel +BuildRequires: librbd-devel +%else BuildRequires: librados2-devel BuildRequires: librbd1-devel %endif +%endif %if %{with_storage_gluster} BuildRequires: glusterfs-api-devel >= 3.4.1 BuildRequires: glusterfs-devel >= 3.4.1 -- 2.47.2