[Ovirt-devel] [PATCH server] setup symlink on rpm install based on version of installed ovirt-docs

Perry Myers pmyers at redhat.com
Wed Oct 15 03:08:21 UTC 2008


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




More information about the ovirt-devel mailing list