Remove unused docs bcond

Sphinx 3 was available for years now and nobody bothered to turn this on.
I've tried enabling it and it doe snot work out of the box.
Instead of fixing this, i think we should just drop it.
There were no user reports about missing documentation
and packaging the HTML docs with bundled JavaScript and CSS properly isn't easy.
epel9
Miro Hrončok 2 years ago
parent 6073e56ca2
commit 0fa2f2859f

@ -20,15 +20,6 @@ BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm BuildRequires: python3-setuptools_scm
BuildRequires: python3-six BuildRequires: python3-six
# docs need sphinx >= 3
# docs need towncrier and that is not yet available when bootstrapping Python
%bcond_with docs
%if %{with docs}
BuildRequires: python3-sphinx
BuildRequires: python3-sphinx_rtd_theme
BuildRequires: python3-towncrier
%endif
%bcond_without tests %bcond_without tests
%if %{with tests} %if %{with tests}
BuildRequires: fish BuildRequires: fish
@ -83,15 +74,6 @@ written by Ian Bicking, and sponsored by the Open Planning Project. It is
licensed under an MIT-style permissive license licensed under an MIT-style permissive license
%if %{with docs}
%package -n python-virtualenv-doc
Summary: Documentation for python virtualenv
%description -n python-virtualenv-doc
Documentation for python virtualenv.
%endif
%prep %prep
%autosetup -p1 -n virtualenv-%{version} %autosetup -p1 -n virtualenv-%{version}
sed -i -e "1s|#!/usr/bin/env python||" tasks/update_embedded.py sed -i -e "1s|#!/usr/bin/env python||" tasks/update_embedded.py
@ -118,12 +100,6 @@ sed -i -e 's/distlib>=0.3.6/distlib>=0.3.2/' \
# Build code # Build code
%{py3_build} %{py3_build}
# Build docs
%if %{with docs}
PYTHONPATH=src %{python3} setup.py build_sphinx
rm -f build/sphinx/html/.buildinfo
%endif
%install %install
%{py3_install} %{py3_install}
@ -167,11 +143,6 @@ rm -r tmp_path
%{python3_sitelib}/virtualenv/ %{python3_sitelib}/virtualenv/
%{python3_sitelib}/virtualenv-*.egg-info/ %{python3_sitelib}/virtualenv-*.egg-info/
%if %{with docs}
%files -n python-virtualenv-doc
%doc build/sphinx/*
%endif
%changelog %changelog
* Mon Nov 14 2022 Lumír Balhar <lbalhar@redhat.com> - 20.16.7-1 * Mon Nov 14 2022 Lumír Balhar <lbalhar@redhat.com> - 20.16.7-1

Loading…
Cancel
Save