No more docs

f38
Miro Hrončok 6 years ago
parent 78a81614cb
commit 9b50ad4d8c

@ -1,7 +1,8 @@
%global modname nose
# Enable building without docs to avoid a circular dependency between this and python-sphinx
%bcond_without docs
# The docs are Python 2 only and there is no more Python 2 Sphinx
# Given the state of nose, I (mhroncok) decided not to fix this
%bcond_with docs
%global desc nose extends the test loading and running features of unit test, making\
it easier to write, find and run tests.\
@ -52,7 +53,7 @@ BuildRequires: dos2unix
%package docs
Summary: Nose Documentation
%if %{with docs}
BuildRequires: %{_bindir}/sphinx-build
BuildRequires: python3-sphinx
%endif
%description docs
@ -123,7 +124,7 @@ ln -sf nosetests-2 %{buildroot}%{_bindir}/nosetests
ln -sf nosetests-2.1 %{buildroot}%{_mandir}/man1/nosetests.1
%if %{with docs}
pushd python2/doc
pushd python3/doc
sphinx-build -b html -d .build/doctrees . .build/html
rm -vrf .build/html/.buildinfo .build/html/_sources
mv .build/html ../..

Loading…
Cancel
Save