public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-boolean.py] rawhide: Conditionalize docs
Date: Fri, 07 Aug 2026 03:19:25 GMT	[thread overview]
Message-ID: <178607276578.1.3697205884628334440.rpms-python-boolean.py-414af79fd95e@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-08-07  3:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178607276578.1.3697205884628334440.rpms-python-boolean.py-414af79fd95e@fedoraproject.org \
    --to=yselkowi@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox