From 5c465220b47e30f679ee8fc3f64077a89bbcf4f5 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Fri, 6 Mar 2020 12:18:29 +0100 Subject: [PATCH] spec: build and install man page Build and install the osbuild(1) man page. Requires rst2man, which is provided by the python3-docutils package. --- osbuild.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/osbuild.spec b/osbuild.spec index a6f39015..5ba1c5f0 100644 --- a/osbuild.spec +++ b/osbuild.spec @@ -18,6 +18,7 @@ BuildArch: noarch Summary: A build system for OS images BuildRequires: python3-devel +BuildRequires: python3-docutils Requires: bash Requires: coreutils @@ -50,6 +51,7 @@ A build system for OS images %build %py3_build +rst2man docs/%{name}.1.rst %{name}.1 %install %py3_install @@ -70,6 +72,10 @@ install -p -m 0755 $(find sources -type f) %{buildroot}%{pkgdir}/sources mkdir -p %{buildroot}%{pkgdir}/stages/osbuild mkdir -p %{buildroot}%{pkgdir}/assemblers/osbuild +# documentation +mkdir -p %{buildroot}%{_mandir}/man1 +install -m 644 osbuild.1 %{buildroot}%{_mandir}/man1/ + %check exit 0 # We have some integration tests, but those require running a VM, so that would @@ -78,6 +84,7 @@ exit 0 %files %license LICENSE %{_bindir}/osbuild +%{_mandir}/man1/%{name}.1* %{pkgdir} %files -n python3-%{pypi_name}