From: Loic Dachary Date: Tue, 7 Apr 2015 09:47:28 +0000 (+0200) Subject: spec.in: sphinx -b man needs sphinx > 1.0 (part 2) X-Git-Tag: v9.0.0~30^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F4287%2Fhead;p=ceph.git spec.in: sphinx -b man needs sphinx > 1.0 (part 2) 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 --- diff --git a/ceph.spec.in b/ceph.spec.in index eeb622cb77a6..947bd14ee8aa 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -75,10 +75,10 @@ BuildRequires: python 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