diff --git a/babel.spec b/babel.spec index f8788b9..58567e7 100644 --- a/babel.spec +++ b/babel.spec @@ -41,9 +41,7 @@ BuildRequires: python3-freezegun # build the documentation BuildRequires: make -%if %{bootstrap} && %{with_python2} -BuildRequires: python2-sphinx -%else +%if !%{bootstrap} BuildRequires: python3-sphinx %endif Requires: python3-babel @@ -97,6 +95,7 @@ Babel is composed of two major parts: providing access to various locale display names, localized number and date formatting, etc. +%if !%{bootstrap} %package doc Summary: Documentation for Babel Provides: python-babel-doc = %{version}-%{release} @@ -105,6 +104,7 @@ Provides: python3-babel-doc = %{version}-%{release} %description doc Documentation for Babel +%endif %prep %autosetup -n %{srcname}-%{version} @@ -117,17 +117,16 @@ Documentation for Babel BUILDDIR="$PWD/built-docs" rm -rf "$BUILDDIR" + +%if !%{bootstrap} pushd docs make \ -%if !%{bootstrap} SPHINXBUILD=sphinx-build-3 \ -%else - SPHINXBUILD=sphinx-build \ -%endif BUILDDIR="$BUILDDIR" \ html popd rm -f "$BUILDDIR/html/.buildinfo" +%endif %install %if %{with_python2} @@ -159,8 +158,10 @@ export TZ=America/New_York %{python3_sitelib}/Babel-%{version}-py*.egg-info %{python3_sitelib}/babel +%if !%{bootstrap} %files doc %doc built-docs/html/* +%endif %changelog * Thu Jan 31 2019 Fedora Release Engineering - 2.6.0-6