@@ -81,8 +81,8 @@ Group: System Environment/Libraries
8181%description server
8282The CloudStack server libraries provide a set of Java classes for CloudStack.
8383
84- %package agent- scripts
85- Summary: CloudStack agent scripts
84+ %package scripts
85+ Summary: CloudStack scripts
8686# FIXME nuke the archdependency
8787Requires: python
8888Requires: bash
@@ -95,13 +95,10 @@ Requires: nfs-utils
9595Requires: wget
9696# there is a fsimage.so in the source code, which adds xen-libs as a dependence, needs to supress it, as rhel doesn't have this pacakge
9797AutoReqProv: no
98- Obsoletes: vmops -agent-scripts < %{version }-%{release }
98+ Obsoletes: cloud -agent-scripts < %{version }-%{release }
9999Group: System Environment/Libraries
100- %description agent-scripts
101- The CloudStack agent is in charge of managing shared computing resources in
102- a KVM-powered cloud. Install this package if this computer
103- will participate in your cloud -- this is a requirement for the CloudStack KVM
104- agent.
100+ %description scripts
101+ This package contains common scripts used by the Agent and Management server
105102
106103%package python
107104Summary: CloudStack Python library
@@ -143,8 +140,7 @@ Requires: java >= 1.6.0
143140Requires: %{name }-deps = %{version }, %{name }-utils = %{version }, %{name }-server = %{version }
144141Requires: %{name }-client-ui = %{version }
145142Requires: %{name }-setup = %{version }
146- # reqs the agent-scripts package because of xenserver within the management server
147- Requires: %{name }-agent-scripts = %{version }
143+ Requires: %{name }-scripts = %{version }
148144Requires: %{name }-python = %{version }
149145Requires: %{name }-aws-api = %{version }
150146# for consoleproxy
@@ -209,7 +205,7 @@ Obsoletes: cloud-premium-agent < %{version}-%{release}
209205Requires: java >= 1.6.0
210206Requires: %{name }-utils = %{version }, %{name }-core = %{version }, %{name }-deps = %{version }
211207Requires: %{name }-agent-libs = %{version }
212- Requires: %{name }-agent- scripts = %{version }
208+ Requires: %{name }-scripts = %{version }
213209Requires: python
214210Requires: %{name }-python = %{version }
215211Requires: commons-httpclient
@@ -376,10 +372,6 @@ else
376372 /sbin/service %{name}-usage condrestart > /dev/null 2>&1 || true
377373fi
378374
379- %pre agent-scripts
380- id %{name } > /dev/null 2>&1 || /usr/sbin/useradd -M -c " CloudStack unprivileged user" \
381- -r -s /bin/sh -d %{_sharedstatedir }/%{name }/management %{name }|| true
382-
383375%preun agent
384376if [ " $1 " == " 0" ] ; then
385377 /sbin/chkconfig --del %{name}-agent > /dev/null 2>&1 || true
454446%{_javadir }/%{name }-plugin-nicira-nvp.jar
455447%config(noreplace) %{_sysconfdir }/%{name }/server/*
456448
457- %files agent- scripts
449+ %files scripts
458450%defattr(-,root,root,-)
459- %{_libdir }/%{name }/agent /scripts/*
460- # maintain the following list in sync with files agent- scripts
461- %{_libdir }/%{name }/agent /vms/systemvm.zip
462- %{_libdir }/%{name }/agent /vms/systemvm.iso
451+ %{_libdir }/%{name }/common /scripts/*
452+ # maintain the following list in sync with files scripts
453+ %{_libdir }/%{name }/common /vms/systemvm.zip
454+ %{_libdir }/%{name }/common /vms/systemvm.iso
463455
464456
465457%files deps
0 commit comments