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:
parent
24bf347350
commit
8e5fd5e7d6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user