From 8e5fd5e7d64c45f36146e13080544e74c02a2612 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Wed, 18 Apr 2018 15:28:05 -0400 Subject: [PATCH] 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 --- rpm-ostree.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpm-ostree.spec b/rpm-ostree.spec index 4dfeae4..0cdc13c 100644 --- a/rpm-ostree.spec +++ b/rpm-ostree.spec @@ -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