Instead of listing the operating system versions that do not require the
python-sphinx10 package, switch to listing the operating system versions that
require the python-sphinx10 package. It's easier to maintain because
there only are a few.
Signed-off-by: Loic Dachary <ldachary@rehdat.com>
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