diff --git a/ceph.spec.in b/ceph.spec.in index eeb622cb77a6f..947bd14ee8aa5 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -75,10 +75,10 @@ BuildRequires: python BuildRequires: python-argparse BuildRequires: python-nose BuildRequires: python-requests -%if 0%{?rhel} >= 7 || 0%{?fedora} -BuildRequires: python-sphinx -%else +%if ( 0%{?rhel} > 0 && 0%{?rhel} < 7 ) || ( 0%{?centos} > 0 && 0%{?centos} < 7 ) BuildRequires: python-sphinx10 +%else +BuildRequires: python-sphinx %endif BuildRequires: python-virtualenv BuildRequires: util-linux