1 %{!?ruby_sitelib: %global ruby_sitelib %(ruby -rrbconfig -e "puts RbConfig::CONFIG['sitelibdir']")}
2 %define release %{rpm_release}%{?dist}
4 Summary: Application Server for hosting Ruby code on any capable middleware
8 Group: System Environment/Daemons
10 URL: http://puppetlabs.com/mcollective/introduction/
11 Source0: http://downloads.puppetlabs.com/mcollective/%{name}-%{version}.tgz
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13 Requires: mcollective-common = %{version}-%{release}
14 Packager: R.I.Pienaar <rip@devco.net>
18 Summary: Common libraries for the mcollective clients and servers
19 Group: System Environment/Libraries
21 Requires: ruby(abi) >= 1.8
23 Requires: rubygem(stomp)
26 The Marionette Collective:
28 Common libraries for the mcollective clients and servers
31 Summary: Client tools for the mcollective Application Server
32 Requires: mcollective-common = %{version}-%{release}
33 Group: Applications/System
36 The Marionette Collective:
38 Client tools for the mcollective Application Server
41 The Marionette Collective:
43 Server for the mcollective Application Server
52 %{__install} -d -m0755 %{buildroot}/%{ruby_sitelib}/mcollective
53 %{__install} -d -m0755 %{buildroot}%{_bindir}
54 %{__install} -d -m0755 %{buildroot}%{_sbindir}
55 %{__install} -d -m0755 %{buildroot}%{_sysconfdir}/init.d
56 %{__install} -d -m0755 %{buildroot}%{_libexecdir}/mcollective/
57 %{__install} -d -m0755 %{buildroot}%{_sysconfdir}/mcollective
58 %{__install} -d -m0755 %{buildroot}%{_sysconfdir}/mcollective/plugin.d
59 %{__install} -d -m0755 %{buildroot}%{_sysconfdir}/mcollective/ssl
60 %{__install} -d -m0755 %{buildroot}%{_sysconfdir}/mcollective/ssl/clients
61 %{__install} -m0755 bin/mcollectived %{buildroot}%{_sbindir}/mcollectived
62 %{__install} -m0640 etc/server.cfg.dist %{buildroot}%{_sysconfdir}/mcollective/server.cfg
63 %{__install} -m0644 etc/client.cfg.dist %{buildroot}%{_sysconfdir}/mcollective/client.cfg
64 %{__install} -m0444 etc/facts.yaml.dist %{buildroot}%{_sysconfdir}/mcollective/facts.yaml
65 %{__install} -m0444 etc/rpc-help.erb %{buildroot}%{_sysconfdir}/mcollective/rpc-help.erb
66 %{__install} -m0444 etc/data-help.erb %{buildroot}%{_sysconfdir}/mcollective/data-help.erb
67 %{__install} -m0444 etc/discovery-help.erb %{buildroot}%{_sysconfdir}/mcollective/discovery-help.erb
68 %{__install} -m0444 etc/metadata-help.erb %{buildroot}%{_sysconfdir}/mcollective/metadata-help.erb
69 %{__install} -m0444 etc/msg-help.erb %{buildroot}%{_sysconfdir}/mcollective/msg-help.erb
71 %{__install} -m0755 mcollective.init %{buildroot}%{_sysconfdir}/init.d/mcollective
73 %{__install} -m0755 ext/redhat/mcollective.init %{buildroot}%{_sysconfdir}/init.d/mcollective
77 cp -R lib/* %{buildroot}/%{ruby_sitelib}/
78 cp -R plugins/* %{buildroot}%{_libexecdir}/mcollective/
79 cp bin/mc-* %{buildroot}%{_sbindir}/
80 cp bin/mco %{buildroot}%{_bindir}/
81 chmod 0755 %{buildroot}%{_sbindir}/*
87 /sbin/chkconfig --add mcollective || :
90 if [ "$1" -ge 1 ]; then
91 /sbin/service mcollective condrestart &>/dev/null || :
95 if [ "$1" = 0 ] ; then
96 /sbin/service mcollective stop > /dev/null 2>&1
97 /sbin/chkconfig --del mcollective || :
102 %{ruby_sitelib}/mcollective.rb
103 %{ruby_sitelib}/mcollective
104 %{_libexecdir}/mcollective/mcollective
105 %dir %{_sysconfdir}/mcollective
106 %dir %{_sysconfdir}/mcollective/ssl
107 %config %{_sysconfdir}/mcollective/*.erb
110 %attr(0755, root, root)%{_sbindir}/mc-call-agent
111 %attr(0755, root, root)%{_bindir}/mco
113 %config(noreplace)%{_sysconfdir}/mcollective/client.cfg
114 %{_libexecdir}/mcollective/mcollective/application
115 %{_libexecdir}/mcollective/mcollective/pluginpackager
119 %{_sbindir}/mcollectived
120 %{_sysconfdir}/init.d/mcollective
121 %config(noreplace)%{_sysconfdir}/mcollective/server.cfg
122 %config(noreplace)%{_sysconfdir}/mcollective/facts.yaml
123 %dir %{_sysconfdir}/mcollective/ssl/clients
124 %config(noreplace)%{_sysconfdir}/mcollective/plugin.d
127 * Tue Nov 03 2009 R.I.Pienaar <rip@devco.net>