1# VERSION is subbed out during rake srpm process 2%global realversion <%= @version %> 3%global rpmversion <%= @rpmversion %> 4 5Summary: Manage the puppet agent with MCollective 6Name: mcollective-puppet 7Version: %{rpmversion} 8Release: <%= @rpmrelease -%>%{?dist} 9Vendor: %{?_host_vendor} 10License: ASL 2.0 11URL: https://github.com/puppetlabs/mcollective-puppet-agent 12BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 13BuildArch: noarch 14Group: System Tools 15Source0: mcollective-puppet-%{realversion}.tar.gz 16 17%description 18Manage the puppet agent with MCollective 19 20%prep 21%setup -q -n %{name}-%{realversion} 22 23%build 24 25%install 26rm -rf %{buildroot} 27%{__install} -d -m0755 %{buildroot}%{_libexecdir}/mcollective/mcollective 28cp -a agent aggregate application data util validator %{buildroot}%{_libexecdir}/mcollective/mcollective 29 30%clean 31rm -rf %{buildroot} 32 33%package agent 34Requires: mcollective-puppet-common = %{version}-%{release} 35Group: System Tools 36Summary: Manage the puppet agent with MCollective 37 38%package client 39Requires: mcollective-puppet-common = %{version}-%{release} 40Group: System Tools 41Summary: Manage the puppet agent with MCollective 42 43%package common 44Requires: mcollective-common >= 2.2.1 45Group: System Tools 46Summary: Manage the puppet agent with MCollective 47 48%description agent 49Manage the puppet agent with MCollective 50 51%description client 52Manage the puppet agent with MCollective 53 54%description common 55Manage the puppet agent with MCollective 56 57%files agent 58%{_libexecdir}/mcollective/mcollective/agent/*.rb 59 60%files client 61%{_libexecdir}/mcollective/mcollective/aggregate/* 62%{_libexecdir}/mcollective/mcollective/application/* 63 64%files common 65%{_libexecdir}/mcollective/mcollective/agent/*.ddl 66%{_libexecdir}/mcollective/mcollective/data/* 67%{_libexecdir}/mcollective/mcollective/util/* 68%{_libexecdir}/mcollective/mcollective/validator/* 69 70%changelog 71* <%= Time.now.strftime("%a %b %d %Y") %> Puppet Labs Release <info@puppetlabs.com> - <%= @rpmversion %>-<%= @rpmrelease %> 72- Build for <%= @version %> 73