From 8bc2edd055c02be43faae8156740e243fd4a1e80 Mon Sep 17 00:00:00 2001 From: Philipp Rudo Date: Tue, 1 Jul 2025 17:18:25 +0200 Subject: [PATCH] Add man page for drgn Upstream: RHEL-Only Resolves: RHEL-97801 Signed-off-by: Philipp Rudo --- python-drgn.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/python-drgn.spec b/python-drgn.spec index 100476e..d6ae222 100644 --- a/python-drgn.spec +++ b/python-drgn.spec @@ -15,7 +15,7 @@ scripting in Python.} Name: python-%{pypi_name} Version: 0.0.31 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Programmable debugger License: LGPL-2.1-or-later @@ -24,9 +24,9 @@ Source0: %{pypi_source} BuildRequires: python3-devel BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(sphinx) %if %{with docs} BuildRequires: sed -BuildRequires: python3dist(sphinx) BuildRequires: python3-docs BuildRequires: graphviz %endif @@ -83,6 +83,7 @@ fi %build # verbose build V=1 %py3_build +PYTHONPATH=${PWD} sphinx-build-3 -b man docs man docs/man/* %if %{with docs} # generate html docs @@ -95,6 +96,8 @@ rm -rf html/.{doctrees,buildinfo} %py3_install mkdir -p %{buildroot}%{_datadir}/drgn cp -PR contrib tools %{buildroot}%{_datadir}/drgn +mkdir -p %{buildroot}%{_mandir}/man1 +cp -PR man/drgn.1* %{buildroot}%{_mandir}/man1 %if %{with tests} %check @@ -107,6 +110,7 @@ cp -PR contrib tools %{buildroot}%{_datadir}/drgn %doc README.rst %{_bindir}/drgn %{_datadir}/drgn +%{_mandir}/man1/drgn.1* %{python3_sitearch}/_%{pypi_name}.pyi %{python3_sitearch}/_%{pypi_name}.cpython*.so %{python3_sitearch}/%{pypi_name} @@ -121,6 +125,10 @@ cp -PR contrib tools %{buildroot}%{_datadir}/drgn %endif %changelog +* Thu Jul 3 2025 Philipp Rudo - 0.0.31-3 +- Add man page for drgn + Resolves: RHEL-97801 + * Wed May 28 2025 Philipp Rudo - 0.0.31-2 - Rebuild for libkdumpfile 0.5.5 Resolves: RHEL-86263