Perry Myers
2008-Oct-15 03:08 UTC
[Ovirt-devel] [PATCH server] setup symlink on rpm install based on version of installed ovirt-docs
Signed-off-by: Perry Myers <pmyers at redhat.com> --- ovirt-server.spec.in | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/ovirt-server.spec.in b/ovirt-server.spec.in index 1339b52..71fa2a1 100644 --- a/ovirt-server.spec.in +++ b/ovirt-server.spec.in @@ -31,6 +31,7 @@ Requires: ruby-libvirt >= 0.0.2 Requires: rrdtool-ruby Requires: iscsi-initiator-utils Requires: cyrus-sasl-gssapi +Requires: ovirt-docs Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service @@ -146,6 +147,11 @@ fi %daemon_chkconfig_post -d ovirt-mongrel-rails %daemon_chkconfig_post -d ovirt-taskomatic +# Set up the symlink for ovirt-docs so that online help works +docs_dir=$(rpm -q --queryformat '/usr/share/doc/%{NAME}-%{VERSION}' ovirt-docs) +%{__rm} /usr/share/ovirt-server/public/help +%{__ln_s} $docs_dir/Using_the_oVirt_Server_Suite_User_Interface/ %{app_root}/public/help + %preun if [ "$1" = 0 ] ; then /sbin/service ovirt-host-browser stop > /dev/null 2>&1 -- 1.5.5.1
Jason Guiditta
2008-Oct-15 03:40 UTC
[Ovirt-devel] [PATCH server] setup symlink on rpm install based on version of installed ovirt-docs
On Tue, 2008-10-14 at 23:08 -0400, Perry Myers wrote:> Signed-off-by: Perry Myers <pmyers at redhat.com> > --- > ovirt-server.spec.in | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > > diff --git a/ovirt-server.spec.in b/ovirt-server.spec.in > index 1339b52..71fa2a1 100644 > --- a/ovirt-server.spec.in > +++ b/ovirt-server.spec.in > @@ -31,6 +31,7 @@ Requires: ruby-libvirt >= 0.0.2 > Requires: rrdtool-ruby > Requires: iscsi-initiator-utils > Requires: cyrus-sasl-gssapi > +Requires: ovirt-docs > Requires(post): /sbin/chkconfig > Requires(preun): /sbin/chkconfig > Requires(preun): /sbin/service > @@ -146,6 +147,11 @@ fi > %daemon_chkconfig_post -d ovirt-mongrel-rails > %daemon_chkconfig_post -d ovirt-taskomatic > > +# Set up the symlink for ovirt-docs so that online help works > +docs_dir=$(rpm -q --queryformat '/usr/share/doc/%{NAME}-%{VERSION}' ovirt-docs) > +%{__rm} /usr/share/ovirt-server/public/help > +%{__ln_s} $docs_dir/Using_the_oVirt_Server_Suite_User_Interface/ %{app_root}/public/help > + > %preun > if [ "$1" = 0 ] ; then > /sbin/service ovirt-host-browser stop > /dev/null 2>&1ACK, this links properly to the new ovirt-docs dir for me, and I can view the help page by clicking the icon in the web app. -j