From 46fd79388c1b3469a8029449f4b75ee6e9352036 Mon Sep 17 00:00:00 2001 From: Alex Huang Date: Mon, 8 Oct 2012 04:07:02 -0700 Subject: [PATCH] Restore the lib directory --- cloud.spec | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/cloud.spec b/cloud.spec index 8698fb2519c..844d4865e8f 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