From 02d56cf7b0e77960bb5f690ba8a2c6af376416d2 Mon Sep 17 00:00:00 2001 From: Kiefer Chang Date: Mon, 17 Feb 2020 12:09:46 +0800 Subject: [PATCH] ceph.spec.in: fix python coverage dependency for non-rhel distros The coverage package under openSUSE (and other distros) are named as python{major_version}-coverage (without minor version). Fixes: https://tracker.ceph.com/issues/44164 Signed-off-by: Kiefer Chang --- ceph.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceph.spec.in b/ceph.spec.in index a1f259b6e642..2f5b1b4de79a 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -218,7 +218,7 @@ BuildRequires: python%{python3_version_nodots}-virtualenv BuildRequires: python%{python3_pkgversion}-six BuildRequires: python%{python3_pkgversion}-virtualenv %endif -%if 0%{?rhel} < 8 +%if 0%{?rhel} == 7 BuildRequires: python%{python3_version_nodots}-coverage %else BuildRequires: python%{python3_pkgversion}-coverage -- 2.47.3