]> git.puffer.fish Git - matthieu/frr.git/commitdiff
redhat: Update CentOS6 to use python27-sphinx package
authorMartin Winter <mwinter@opensourcerouting.org>
Thu, 1 Mar 2018 21:28:57 +0000 (13:28 -0800)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 2 Mar 2018 06:57:43 +0000 (01:57 -0500)
sphinx > 1.1 is needed which is provided by the non-standard
python27-sphinx for CentOS 6 / RedHat 6

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
redhat/frr.spec.in

index 9c7848499abb78634dc4b76074c880884bd38c40..310d7ab93996f25b1c5d995c7bc0411241893d10 100644 (file)
 
 # defines for configure
 %define     _localstatedir  /var/run/frr
+
+# define for sphinx-build binary
+%if 0%{?rhel} && 0%{?rhel} < 7
+%define     sphinx sphinx-build2.7
+%else
+%define     sphinx sphinx-build
+%endif
 ############################################################################
 
 #### Version String tweak
@@ -140,7 +147,7 @@ BuildRequires:  readline readline-devel ncurses ncurses-devel
 BuildRequires:  json-c-devel bison >= 2.7 flex make
 %if 0%{?rhel} && 0%{?rhel} < 7
 #python27-devel is available from ius community repo for RedHat/CentOS 6
-BuildRequires:  python27-devel python-sphinx10
+BuildRequires:  python27-devel python27-sphinx
 %else
 BuildRequires:  python-devel >= 2.7 python-sphinx
 %endif
@@ -299,16 +306,16 @@ developing OSPF-API and frr applications.
 %endif
     --enable-poll=yes
 
-make %{?_smp_mflags} MAKEINFO="makeinfo --no-split"
+make %{?_smp_mflags} MAKEINFO="makeinfo --no-split" SPHINXBUILD=%{sphinx}
 
 pushd doc
-make frr.info
+make SPHINXBUILD=%{sphinx} frr.info
 popd
 
 %install
 mkdir -p %{buildroot}/etc/{frr,sysconfig,logrotate.d,pam.d,default} \
          %{buildroot}/var/log/frr %{buildroot}%{_infodir}
-make DESTDIR=%{buildroot} INSTALL="install -p" CP="cp -p" install
+make DESTDIR=%{buildroot} INSTALL="install -p" CP="cp -p" SPHINXBUILD=%{sphinx} install
 
 # Remove this file, as it is uninstalled and causes errors when building on RH9
 rm -rf %{buildroot}/usr/share/info/dir