From 8045190badff1d99e2a9ecb1bed2cb6efcfa61e6 Mon Sep 17 00:00:00 2001 From: Eduardo Otubo Date: Wed, 8 Sep 2021 11:33:15 +0200 Subject: [PATCH] Adding man pages to spec file BZ: 1952568 Signed-off-by: Eduardo Otubo --- cloud-init.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/cloud-init.spec b/cloud-init.spec index bc105f7..74d18f8 100644 --- a/cloud-init.spec +++ b/cloud-init.spec @@ -1,6 +1,6 @@ Name: cloud-init Version: 21.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Cloud instance init scripts License: ASL 2.0 or GPLv3 URL: http://launchpad.net/cloud-init @@ -125,6 +125,12 @@ cp -p %{SOURCE1} $RPM_BUILD_ROOT/%{_tmpfilesdir}/%{name}.conf mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/rsyslog.d cp -p tools/21-cloudinit.conf $RPM_BUILD_ROOT/%{_sysconfdir}/rsyslog.d/21-cloudinit.conf +# installing man pages +mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1/ +for man in cloud-id.1 cloud-init.1 cloud-init-per.1; do + install -c -m 0644 doc/man/${man} ${RPM_BUILD_ROOT}%{_mandir}/man1/${man} + chmod -x ${RPM_BUILD_ROOT}%{_mandir}/man1/* +done %check python3 -m pytest tests/unittests @@ -145,6 +151,7 @@ python3 -m pytest tests/unittests %license LICENSE LICENSE-Apache2.0 LICENSE-GPLv3 %doc ChangeLog %doc doc/* +%{_mandir}/man1/* %config(noreplace) %{_sysconfdir}/cloud/cloud.cfg %dir %{_sysconfdir}/cloud/cloud.cfg.d %config(noreplace) %{_sysconfdir}/cloud/cloud.cfg.d/*.cfg @@ -177,6 +184,9 @@ python3 -m pytest tests/unittests %changelog +* Wed Sep 08 2021 Eduardo Otubo - 21.3-2 +- Adding man pages [bz#1952568] + * Thu Sep 02 2021 Eduardo Otubo - 21.3-1 - Updated to 20.4 [bz#2000540]