anchor.diff:  Source0:        http://downloads.puppetlabs.com/mcollective/%{name}-%{realversion}.tar.gz
   BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
   BuildRequires:  ruby >= 1.8
  +BuildRequires:  rubygems
  +BuildRequires:  rubygem-stomp
   Requires:       mcollective-common = %{version}-%{release}
   Packager:       Puppet Labs <info@puppetlabs.com>
   BuildArch:      noarch
  
positive.code: %files
  %defattr(-, root, root, 0755)
  %doc COPYING
  %{_sbindir}/mcollectived
  %if 0%{?_with_systemd}
  %{_unitdir}/mcollective.service
  %else
  
negative.code: 
  %install
  rm -rf %{buildroot}
  
  ruby install.rb --destdir=%{buildroot} --no-rdoc --sitelibdir=%{ruby_libdir} --plugindir=%{_libexecdir}/mcollective
  
  %if 0%{?_with_systemd}
  %{__install} -d -m0755  %{buildroot}%{_unitdir}
  %{__install} -m0644 ext/redhat/mcollective.service %{buildroot}%{_unitdir}/mcollective.service
  %else
  %{__install} -d -m0755  %{buildroot}%{_sysconfdir}/init.d
  %if 0%{?suse_version}
  %{__install} -m0755 mcollective.init %{buildroot}%{_sysconfdir}/init.d/mcollective
  %else
  %{__install} -m0755 ext/redhat/mcollective.init %{buildroot}%{_sysconfdir}/init.d/mcollective
  %endif
  %endif
  
  %{__install} -d -m0755  %{buildroot}%{_sysconfdir}/mcollective/plugin.d
  %{__install} -d -m0755  %{buildroot}%{_sysconfdir}/mcollective/ssl/clients
  
  %clean
  rm -rf %{buildroot}
  