add blding man pages to openstack spec
This commit is contained in:
parent
019c780fcd
commit
f383337d78
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user