Do not build docs in RHEL builds
This package is buildroot only in RHEL, and building the docs pulls in unwanted dependencies.
This commit is contained in:
parent
6611c07f37
commit
a055bb0bac
@ -4,6 +4,9 @@
|
|||||||
Breathe is an extension to reStructuredText and Sphinx to be able to read and \
|
Breathe is an extension to reStructuredText and Sphinx to be able to read and \
|
||||||
render the Doxygen xml output.
|
render the Doxygen xml output.
|
||||||
|
|
||||||
|
# This is buildroot only in RHEL, and building the docs pulls in unwanted dependencies
|
||||||
|
%bcond doc %{undefined rhel}
|
||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 4.35.0
|
Version: 4.35.0
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
@ -32,8 +35,10 @@ BuildRequires: %{py3_dist Jinja2} >= 2.7.3
|
|||||||
BuildRequires: %{py3_dist MarkupSafe} >= 0.23
|
BuildRequires: %{py3_dist MarkupSafe} >= 0.23
|
||||||
BuildRequires: %{py3_dist Pygments} >= 1.6
|
BuildRequires: %{py3_dist Pygments} >= 1.6
|
||||||
BuildRequires: %{py3_dist pytest}
|
BuildRequires: %{py3_dist pytest}
|
||||||
|
%if %{with doc}
|
||||||
BuildRequires: %{py3_dist sphinx-copybutton}
|
BuildRequires: %{py3_dist sphinx-copybutton}
|
||||||
BuildRequires: %{py3_dist furo}
|
BuildRequires: %{py3_dist furo}
|
||||||
|
%endif
|
||||||
# NOTE: git is only needed because part of the build process checks if it's in
|
# NOTE: git is only needed because part of the build process checks if it's in
|
||||||
# a git repo
|
# a git repo
|
||||||
BuildRequires: git
|
BuildRequires: git
|
||||||
@ -67,10 +72,12 @@ This package contains documentation for developer documentation for %{srcname}.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
|
%if %{with doc}
|
||||||
# Build the documentation
|
# Build the documentation
|
||||||
%make_build DOXYGEN=$(which doxygen) PYTHONPATH=$(pwd) html
|
%make_build DOXYGEN=$(which doxygen) PYTHONPATH=$(pwd) html
|
||||||
# Remove temporary build files
|
# Remove temporary build files
|
||||||
rm documentation/build/html/.buildinfo
|
rm documentation/build/html/.buildinfo
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
@ -84,9 +91,11 @@ rm documentation/build/html/.buildinfo
|
|||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
|
%if %{with doc}
|
||||||
%files doc
|
%files doc
|
||||||
%doc documentation/build/html
|
%doc documentation/build/html
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
%autochangelog
|
%autochangelog
|
||||||
|
Loading…
Reference in New Issue
Block a user