From f383337d78ccda8d7e2b600695e0f52959975bfa Mon Sep 17 00:00:00 2001 From: Bruce Potter Date: Fri, 1 Nov 2013 19:00:04 -0400 Subject: [PATCH] add blding man pages to openstack spec --- xCAT-OpenStack/xCAT-OpenStack.spec | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/xCAT-OpenStack/xCAT-OpenStack.spec b/xCAT-OpenStack/xCAT-OpenStack.spec index c2336b798..74f3ee367 100644 --- a/xCAT-OpenStack/xCAT-OpenStack.spec +++ b/xCAT-OpenStack/xCAT-OpenStack.spec @@ -24,6 +24,9 @@ management. %setup -q -n xCAT-OpenStack %build +# Build the pod version of the man pages for each DB table. It puts them in the man5 and man7 subdirs. +# Then convert the pods to man pages and html pages. +./db2man %install @@ -34,6 +37,11 @@ mkdir -p $RPM_BUILD_ROOT/install/postscripts mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/xcat/templates mkdir -p $RPM_BUILD_ROOT/%{prefix}/sbin +mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/man/man5 +mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/doc/man5 +mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/man/man7 +mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/doc/man7 + cp -a lib/perl/xCAT_schema/* $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT_schema find $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT_schema -type d -exec chmod 755 {} \; find $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT_schema -type f -exec chmod 644 {} \; @@ -47,6 +55,15 @@ chmod 644 $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT/* cp sbin/* $RPM_BUILD_ROOT/%{prefix}/sbin chmod 755 $RPM_BUILD_ROOT/%{prefix}/sbin/* +# These were built dynamically in the build phase +cp share/man/man5/* $RPM_BUILD_ROOT/%{prefix}/share/man/man5 +chmod 644 $RPM_BUILD_ROOT/%{prefix}/share/man/man5/* +cp share/doc/man5/* $RPM_BUILD_ROOT/%{prefix}/share/doc/man5 +chmod 644 $RPM_BUILD_ROOT/%{prefix}/share/doc/man5/* +cp share/man/man7/* $RPM_BUILD_ROOT/%{prefix}/share/man/man7 +chmod 644 $RPM_BUILD_ROOT/%{prefix}/share/man/man7/* +cp share/doc/man7/* $RPM_BUILD_ROOT/%{prefix}/share/doc/man7 +chmod 644 $RPM_BUILD_ROOT/%{prefix}/share/doc/man7/* #ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/sbin/makeclouddata