integ/config/facter/centos/meta_patches/0003-spec-fix-install-man-page-for-rhel8.patch
Long Li 8a4cca179b CentOS 8: Fix facter-2.4.4-4.el7.src.rpm build error
Fix build facter-2.4.4-4.el7.src.rpm to facter.el8.rpm
make sure to install man/man8/facter.8 when redhat el8
as rubygem-rdoc is not available on older EL releases

Story: 2006729
Task: 37761
Depends-On: https://review.opendev.org/#/c/696481/
Depends-On: https://review.opendev.org/#/c/696050/
Change-Id: Ia72a2ec4a1a22d4976d9ade03c95795660f7a898
Signed-off-by: Long Li <lilong-neu@neusoft.com>
2019-12-13 08:00:34 +00:00

27 lines
885 B
Diff

From 9428b3d96f0270ec79c1ab48dc36277c8061681d Mon Sep 17 00:00:00 2001
From: Long Li <lilong-neu@neusoft.com>
Date: Thu, 28 Nov 2019 18:28:49 +0800
Subject: [PATCH]: spec-fix-install-man-page-for-rhel8
Signed-off-by: Long Li <lilong-neu@neusoft.com>
---
SPECS/facter.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/SPECS/facter.spec b/SPECS/facter.spec
index 97ee783..3ddd64f 100644
--- a/SPECS/facter.spec
+++ b/SPECS/facter.spec
@@ -83,7 +83,7 @@ ruby install.rb --destdir=%{buildroot} --quick --no-rdoc --sitelibdir=%{facter_l
# Create directory for external facts
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}/facts.d
-%if ! (0%{?fedora} || 0%{?rhel} >= 7)
+%if ! (0%{?fedora})
# Install man page, rubygem-rdoc is not available on older EL releases)
install -D -pv -m 644 man/man8/%{name}.8 %{buildroot}/%{_mandir}/man8/%{name}.8
%endif
--
2.7.4