# 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
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
%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