]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: fix python coverage dependency for non-rhel distros 33361/head
authorKiefer Chang <kiefer.chang@suse.com>
Mon, 17 Feb 2020 04:09:46 +0000 (12:09 +0800)
committerKiefer Chang <kiefer.chang@suse.com>
Mon, 17 Feb 2020 04:12:26 +0000 (12:12 +0800)
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 <kiefer.chang@suse.com>
ceph.spec.in

index a1f259b6e64247b0af4c3b4849872541b5a7737b..2f5b1b4de79ae49c024629177077b4c915cc8406 100644 (file)
@@ -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