Fedora, suse as well as centos >= 7 and rhel >= 7
use the same name for python-sphinx so add these
conditionals.
Note: Until OBS supports EPEL I cant test builds on
centos and rhel so this extention of build deps is
untested by Owen Synge.
Signed-off-by: Owen Synge <osynge@suse.com>
%if ( 0%{?rhel} > 0 && 0%{?rhel} < 7 ) || ( 0%{?centos} > 0 && 0%{?centos} < 7 )
BuildRequires: python-sphinx10
%endif
+%if 0%{?fedora} || 0%{defined suse_version} || 0%{?rhel} >= 7 || 0%{?centos} >= 7
+BuildRequires: python-sphinx
+%endif
+
BuildRequires: python-virtualenv
BuildRequires: util-linux
BuildRequires: xfsprogs
%endif
%if 0%{defined suse_version}
-BuildRequires: python-sphinx
BuildRequires: net-tools
BuildRequires: libbz2-devel
BuildRequires: sharutils