cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [6/8] git commit: Restore the lib directory
Date Mon, 08 Oct 2012 17:39:13 GMT
Restore the lib directory


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/46fd7938
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/46fd7938
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/46fd7938

Branch: refs/heads/master
Commit: 46fd79388c1b3469a8029449f4b75ee6e9352036
Parents: 029b9dd
Author: Alex Huang <alex.huang@citrix.com>
Authored: Mon Oct 8 04:07:02 2012 -0700
Committer: Rohit Yadav <bhaisaab@apache.org>
Committed: Mon Oct 8 23:05:47 2012 +0530

----------------------------------------------------------------------
 cloud.spec |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/46fd7938/cloud.spec
----------------------------------------------------------------------
diff --git a/cloud.spec b/cloud.spec
index 8698fb2..844d486 100644
--- a/cloud.spec
+++ b/cloud.spec
@@ -288,9 +288,11 @@ Requires: java >= 1.6.0
 Requires: tomcat6
 %if 0%{?fedora} > 15
 Requires: apache-commons-lang
+Requires: %{name}-utils = %{version}
 %endif
 %if 0%{?rhel} >= 5
 Requires: jakarta-commons-lang
+Requires: %{name}-utils = %{version}
 %endif
 Obsoletes: cloud-bridge < %{version}-%{release}
 %description aws-api
@@ -397,18 +399,18 @@ fi
     /sbin/chkconfig --level 345 %{name}-management on > /dev/null 2>&1 || true
 
     root=/usr/share/cloud/bridge
-    target=/usr/share/cloud/management/
+    target=/usr/share/cloud/management
 
     mkdir -p $target/webapps7080
-    if [ ! -e $target/webapps7080/awsapi ]; then
+    if [ ! -h $target/webapps7080/awsapi ]; then
         ln -s $root/webapps7080/awsapi $target/webapps7080/awsapi
     fi
 
-#    jars=`ls $root/lib`
-#    for j in $jars
-#    do
-#        cp -f $root/lib/$j $root/webapps/awsapi/WEB-INF/lib/
-#    done
+    jars=`ls $root/lib`
+    for j in $jars
+    do
+        cp -f $root/lib/$j $root/webapps7080/awsapi/WEB-INF/lib/
+    done
 
     confs="cloud-bridge.properties ec2-service.properties"
     for c in $confs
@@ -599,6 +601,7 @@ fi
 %files aws-api
 %defattr(0644,cloud,cloud,0755)
 %{_datadir}/cloud/bridge/conf/*
+%{_datadir}/cloud/bridge/lib/*
 %{_datadir}/cloud/bridge/webapps7080/*
 %attr(0644,root,root) %{_datadir}/cloud/setup/bridge/db/*
 %attr(0755,root,root) %{_bindir}/cloudstack-aws-api-register


Mime
View raw message