public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-boolean.py] rawhide: Conditionalize docs
@ 2026-08-07  3:19 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-08-07  3:19 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-boolean.py
            Branch : rawhide
            Commit : 414af79fd95e0c86b13d56417278a80ee2196a5e
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2026-08-06T22:39:02-04:00
            Stats  : +11/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-boolean.py/c/414af79fd95e0c86b13d56417278a80ee2196a5e?branch=rawhide

            Log:
            Conditionalize docs

python-sphinxcontrib-apidoc is not included in RHEL.

---
diff --git a/python-boolean.py.spec b/python-boolean.py.spec
index 768d203..3b1b3c7 100644
--- a/python-boolean.py.spec
+++ b/python-boolean.py.spec
@@ -1,3 +1,6 @@
+# sphinxcontrib-apidoc is not included in RHEL
+%bcond docs %{undefined rhel}
+
 %global pypi_name boolean.py
 
 Name:           python-%{pypi_name}
@@ -13,8 +16,10 @@ Source0:        %{pypi_source boolean_py}
 BuildArch:      noarch
 
 BuildRequires:  python%{python3_pkgversion}-devel
+%if %{with docs}
 BuildRequires:  %{py3_dist Sphinx}
 BuildRequires:  %{py3_dist sphinxcontrib-apidoc}
+%endif
 BuildRequires:  %{py3_dist pytest}
 
 %global _description \
@@ -41,8 +46,10 @@ Python 3 version.
 
 %build
 %pyproject_wheel
+%if %{with docs}
 sphinx-build-%{python3_version} docs html
 rm -rf html/.{doctrees,buildinfo}
+%endif
 
 %install
 %pyproject_install
@@ -54,7 +61,10 @@ rm -rf html/.{doctrees,buildinfo}
 %pytest
 
 %files -n python%{python3_pkgversion}-%{pypi_name} -f %{pyproject_files}
-%doc CHANGELOG.rst README.rst html/
+%doc CHANGELOG.rst README.rst
+%if %{with docs}
+%doc html/
+%endif
 
 %changelog
 %autochangelog

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-07  3:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-07  3:19 [rpms/python-boolean.py] rawhide: Conditionalize docs Yaakov Selkowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox