From 9b50ad4d8c137d8099ae89782eb700c348bf8c88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 28 Mar 2019 14:55:48 +0100 Subject: [PATCH] No more docs --- python-nose.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/python-nose.spec b/python-nose.spec index 4f8f021..760e2a7 100644 --- a/python-nose.spec +++ b/python-nose.spec @@ -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 ../..