From: Kiefer Chang Date: Mon, 17 Feb 2020 04:09:46 +0000 (+0800) Subject: ceph.spec.in: fix python coverage dependency for non-rhel distros X-Git-Tag: v15.1.1~395^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F33361%2Fhead;p=ceph.git 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 --- 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