public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mattia Verga <mattia.verga@proton.me>
To: git-commits@fedoraproject.org
Subject: [rpms/python-dateutil] rawhide: Do not build docs on RHEL
Date: Sat, 28 Nov 2026 17:44:19 GMT [thread overview]
Message-ID: <179588785920.1.7273740868880280171.rpms-python-dateutil-dc63c580c648@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-dateutil
Branch : rawhide
Commit : dc63c580c648decfc0babd1d01e898c777c80cf1
Author : Mattia Verga <mattia.verga@proton.me>
Date : 2026-11-28T18:43:57+01:00
Stats : +12/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-dateutil/c/dc63c580c648decfc0babd1d01e898c777c80cf1?branch=rawhide
Log:
Do not build docs on RHEL
---
diff --git a/python-dateutil.spec b/python-dateutil.spec
index c7b155b..ec7827f 100644
--- a/python-dateutil.spec
+++ b/python-dateutil.spec
@@ -28,13 +28,19 @@ Patch: fix-tests-utc.patch
# on RHEL, we do not have or want all test dependencies
%bcond tests %{undefined rhel}
+# there's no need to ship the docs in EL
+# additionally, they pull in sphinx-rtd-theme which is unwanted
+%bcond doc %{undefined rhel}
+
BuildArch: noarch
BuildRequires: python3-devel
# For docs
+%if %{with doc}
BuildRequires: make
BuildRequires: python3dist(sphinx)
BuildRequires: python3dist(sphinx-rtd-theme)
+%endif
# For tests
%if %{with tests}
@@ -58,10 +64,12 @@ Requires: tzdata
%description -n python3-%{modname} %_description
+%if %{with doc}
%package doc
Summary: API documentation for python-dateutil
%description doc
This package contains %{summary}.
+%endif
%prep
@@ -83,7 +91,9 @@ mv NEWS.new NEWS
%pyproject_wheel
# project sphinx makefile tries to set up a venv downloading packages
# from pypi
+%if %{with doc}
sphinx-build -M html ./docs ./docs/_build
+%endif
%install
@@ -105,9 +115,11 @@ sphinx-build -M html ./docs ./docs/_build
%doc NEWS README.rst
+%if %{with doc}
%files doc
%license LICENSE
%doc docs/_build/html
+%endif
%changelog
reply other threads:[~2026-11-28 17:44 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=179588785920.1.7273740868880280171.rpms-python-dateutil-dc63c580c648@fedoraproject.org \
--to=mattia.verga@proton.me \
--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