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-lz4] rawhide: Disable docs on RHEL
Date: Thu, 22 Oct 2026 01:12:12 GMT [thread overview]
Message-ID: <179263153251.1.5137814151762282175.rpms-python-lz4-6798b172751b@fedoraproject.org> (raw)
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
reply other threads:[~2026-10-22 1:12 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=179263153251.1.5137814151762282175.rpms-python-lz4-6798b172751b@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