There is no more python2-sphinx to bootstrap with

This commit is contained in:
Miro Hrončok 2019-03-14 18:01:38 +01:00
parent 3be97e102a
commit de07ff7ad3

View File

@ -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 <releng@fedoraproject.org> - 2.6.0-6