diff --git a/build/rpm/pcp.spec.in b/build/rpm/pcp.spec.in index 5579bc79cb..aa3873031c 100755 --- a/build/rpm/pcp.spec.in +++ b/build/rpm/pcp.spec.in @@ -1858,7 +1858,7 @@ Requires: python3-pcp python3-lxml %if "%{_vendor}" == "suse" Requires: python3-libvirt-python %else -%if 0%{?centos_ver} == 7 +%if 0%{?centos_ver}%{?rhel} == 7 Requires: python36-libvirt %else Requires: libvirt-python3