%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']") %define release %{rpm_release}%{?dist} Summary: Mcollective plugins Name: mcollective-plugins Version: 1.0.0 Release: 1 Group: System Tools License: Apache License, Version 2 URL: http://marionette-collective.org/ Requires: mcollective-common Packager: Vladimir Vuksan BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch %define plugins_dir %{buildroot}/usr/libexec/mcollective/mcollective %description The Marionette Collective plugins. They are downloaded directly of GitHub %build %{__install} -d -m0755 %{plugins_dir}/agent %{__install} -d -m0755 %{plugins_dir}/facts %{__install} -d -m0755 %{buildroot}/usr/bin wget -O %{plugins_dir}/facts/facter.rb http://github.com/ripienaar/mcollective-plugins/raw/master/facts/facter/facter.rb # This will download Puppet Service agent wget -O %{plugins_dir}/agent/service.rb http://github.com/ripienaar/mcollective-plugins/raw/master/agent/service/puppet-service.rb wget -O %{buildroot}/usr/bin/mc-service http://github.com/ripienaar/mcollective-plugins/raw/master/agent/service/mc-service # URL test wget -O %{plugins_dir}/agent/urltest.rb http://github.com/ripienaar/mcollective-plugins/raw/master/agent/urltest/urltest.rb wget -O %{buildroot}/usr/bin/mc-urltest http://github.com/ripienaar/mcollective-plugins/raw/master/agent/urltest/mc-urltest %clean rm -rf %{buildroot} %files /usr/libexec/mcollective /usr/bin %changelog * Wed Jun 16 2010 Vladimir Vuksan http://twitter.com/vvuksan Initial release