From 607eba34dbc049bfad22a2ccc64e105b112739a4 Mon Sep 17 00:00:00 2001 From: Marcio Barbosa Date: Thu, 26 Jul 2018 10:30:35 -0700 Subject: [PATCH] redhat: actually remove unused AFS::ukernel man page Commit 278581c24a802834719e0d57f27978321556c9bb (redhat: package libuafs perl bindings) added swig as a build dependency on RHEL 6+/Fedora 15+ to build and package AFS::ukernel perl bindings for libuafs. The man page for AFS::ukernel is generated from the pod files unconditionally, so needs to be removed from the staging directories when AFS::ukernel is not packaged. Unfortunately, the full path to the staged AFS::ukernel manpage was not given in that commit, so the rpmbuild will fail on RHEL 5 with the error: RPM build errors: Installed (but unpackaged) file(s) found: /usr/share/man/man3/AFS::ukernel.3.gz Fix this error by specifying the full path to the AFS::ukernel man page to actually remove it when we are not packaging AFS::ukernel files. [mmeffie: updated commit message] Reviewed-on: https://gerrit.openafs.org/13257 Reviewed-by: Marcio Brito Barbosa Tested-by: BuildBot Reviewed-by: Andrew Deason Reviewed-by: Benjamin Kaduk (cherry picked from commit a85aab9dfe7c2ee9e025bc15d849de2dd0a48913) Change-Id: If81f930bd7e922cd5e71c0d459751d4bbe85c843 Reviewed-on: https://gerrit.openafs.org/13264 Reviewed-by: Michael Meffie Tested-by: BuildBot Reviewed-by: Benjamin Kaduk --- src/packaging/RedHat/openafs.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packaging/RedHat/openafs.spec.in b/src/packaging/RedHat/openafs.spec.in index 8938e0d8d..01592db08 100644 --- a/src/packaging/RedHat/openafs.spec.in +++ b/src/packaging/RedHat/openafs.spec.in @@ -802,7 +802,7 @@ rm -f $RPM_BUILD_ROOT%{_mandir}/man5/AuthLog.5 rm -f $RPM_BUILD_ROOT%{_mandir}/man5/AuthLog.dir.5 %endif %if !(0%{?fedora} >= 15 || 0%{?rhel} >= 6) -rm -f %{_mandir}/man3/AFS::ukernel.3 +rm -f $RPM_BUILD_ROOT%{_mandir}/man3/AFS::ukernel.3 %endif #----------------------------------------------------------------------------- -- 2.39.5