No more docs

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

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

Loading…
Cancel
Save