public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-lz4] rawhide: Disable docs on RHEL
@ 2026-10-22  1:12 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-10-22  1:12 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-lz4
            Branch : rawhide
            Commit : 6798b172751b3293addecf764d30fa1c5cce83c2
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2026-10-21T13:14:59-04:00
            Stats  : +7/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-lz4/c/6798b172751b3293addecf764d30fa1c5cce83c2?branch=rawhide

            Log:
            Disable docs on RHEL

This is a new dependency of criu/crit, but RHEL does not include
sphinx-bootstrap-theme.

---
diff --git a/python-lz4.spec b/python-lz4.spec
index fe042cd..5dd13f2 100644
--- a/python-lz4.spec
+++ b/python-lz4.spec
@@ -1,3 +1,5 @@
+%bcond docs %{undefined rhel}
+
 %global srcname lz4
 
 Name:           python-%{srcname}
@@ -17,9 +19,11 @@ BuildRequires:  gcc
 
 # For tests
 BuildRequires:  python3-psutil
+%if %{with docs}
 # For docs
 BuildRequires:  python3-sphinx
 BuildRequires:  python3-sphinx-bootstrap-theme
+%endif
 
 
 %description
@@ -57,11 +61,13 @@ rm lz4libs/lz4*.[ch]
 find %{buildroot}%{python3_sitearch} -name 'lz4*.so' \
     -exec chmod 0755 {} \;
 
+%if %{with docs}
 # Build HTML docs
 pushd docs
 PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitearch} make html
 popd
 mv docs/_build/html ./html
+%endif
 
 
 %check
@@ -70,7 +76,7 @@ mv docs/_build/html ./html
 
 %files -n python3-lz4 -f %{pyproject_files}
 %license LICENSE
-%doc README.rst html
+%doc README.rst %{?with_docs:html}
 
 
 %changelog

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

only message in thread, other threads:[~2026-10-22  1:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-22  1:12 [rpms/python-lz4] rawhide: Disable docs on RHEL Yaakov Selkowitz

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