Permalink
Browse files

updated spec file with common package containing ddl files

  • Loading branch information...
jlambert121 committed Nov 10, 2012
1 parent 81e47e6 commit 5e34f14b7c225d426a1c890b6b2a2c09288cd9c3
Showing with 15 additions and 2 deletions.
  1. +15 −2 mcprovision.spec
View
@@ -12,6 +12,7 @@ Source0: %{name}-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: ruby
Requires: mcollective-client
+Requires: mcprovision-common = %{version}-%{release}
Packager: R.I.Pienaar <rip@devco.net>
BuildArch: noarch
@@ -20,13 +21,23 @@ Summary: MCollective Provisioner Agent
Group: System Tools
Requires: ruby
Requires: mcollective
+Requires: mcprovision-common = %{version}-%{release}
+
+%package common
+Summary: MCollective Provisioner common files
+Group: System Tools
+Requires: ruby
+Requires: mcollective
%description
Automated the provisioning of servers in a Puppet environment via MCollective
%description agent
Agent providing services for the MCollective Server Provisioner
+%description common
+Common files needed for both the provisioner agent and server
+
%prep
%setup -q
@@ -74,15 +85,17 @@ fi;
/usr/libexec/mcollective/mcollective/agent/provision.rb
/usr/libexec/mcollective/mcollective/data/provision_data.rb
+%files common
+/usr/libexec/mcollective/mcollective/agent/provision.ddl
+/usr/libexec/mcollective/mcollective/data/provision_data.ddl
+
%files
%{ruby_sitelib}/mcprovision.rb
%{ruby_sitelib}/mcprovision
%config(noreplace) /etc/mcollective/mcprovision.yaml
%config(noreplace) /etc/sysconfig/mcprovision
/etc/init.d/mcprovision
/usr/sbin/mcprovision
-/usr/libexec/mcollective/mcollective/agent/provision.ddl
-/usr/libexec/mcollective/mcollective/data/provision_data.ddl
%changelog

0 comments on commit 5e34f14

Please sign in to comment.