spec: use python-sphinx on RHEL/CentOS platforms

We use this spec file to build on CentOS as well. There,
`python2-sphinx` does not exist, only `python-sphinx`. Let's accommodate
this while still respecting guidelines on Fedora.

See also:
https://github.com/CentOS/sig-atomic-buildscripts/issues/324
This commit is contained in:
Jonathan Lebon 2018-04-18 15:28:05 -04:00
parent 24bf347350
commit 8e5fd5e7d6

View File

@ -40,7 +40,12 @@ BuildRequires: cmake
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(check)
BuildRequires: python2-devel
# https://github.com/CentOS/sig-atomic-buildscripts/issues/324
%if (0%{?rhel} != 0 && 0%{?rhel} <= 7)
BuildRequires: python-sphinx
%else
BuildRequires: python2-sphinx
%endif
%if (0%{?rhel} != 0 && 0%{?rhel} <= 7)
BuildRequires: libsolv-devel
%else