public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-dateutil] rawhide: Do not build docs on RHEL
@ 2026-11-28 17:44 Mattia Verga
  0 siblings, 0 replies; only message in thread
From: Mattia Verga @ 2026-11-28 17:44 UTC (permalink / raw)
  To: git-commits

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

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

only message in thread, other threads:[~2026-11-28 17:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-28 17:44 [rpms/python-dateutil] rawhide: Do not build docs on RHEL Mattia Verga

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