[packages/chef] add platform pld support, packages installed with yum
glen
glen at pld-linux.org
Sun Apr 14 21:08:42 CEST 2013
commit 7abbc83bce4f1b3369593bc3e45ed89e48675b84
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Apr 14 21:39:56 2013 +0300
add platform pld support, packages installed with yum
chef.spec | 5 ++++-
platform-pld.patch | 17 +++++++++++++++++
2 files changed, 21 insertions(+), 1 deletion(-)
---
diff --git a/chef.spec b/chef.spec
index acc737e..419b46e 100644
--- a/chef.spec
+++ b/chef.spec
@@ -3,11 +3,12 @@
Summary: A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure
Name: chef
Version: 11.4.0
-Release: 0.5
+Release: 0.7
License: Apache v2.0
Group: Development/Languages
Source0: http://rubygems.org/downloads/%{name}-%{version}.gem
# Source0-md5: 1ebabd6fdeae44a99d5cb199c38adc15
+Patch0: platform-pld.patch
URL: http://wiki.opscode.com/display/chef
BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.656
@@ -29,6 +30,7 @@ Requires: ruby-rest-client < 1.7.0
Requires: ruby-rest-client >= 1.0.4
Requires: ruby-rubygems
Requires: ruby-yajl >= 1.1
+Requires: yum
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -38,6 +40,7 @@ configuration management to your entire infrastructure.
%prep
%setup -q
+%patch0 -p1
%install
rm -rf $RPM_BUILD_ROOT
diff --git a/platform-pld.patch b/platform-pld.patch
new file mode 100644
index 0000000..c60bf64
--- /dev/null
+++ b/platform-pld.patch
@@ -0,0 +1,17 @@
+--- chef-11.4.0/lib/chef/platform.rb~ 2013-04-14 16:43:01.000000000 +0300
++++ chef-11.4.0/lib/chef/platform.rb 2013-04-14 21:34:43.907576130 +0300
+@@ -147,6 +147,14 @@
+ :mdadm => Chef::Provider::Mdadm
+ }
+ },
++ :pld => {
++ :default => {
++ :service => Chef::Provider::Service::Redhat,
++ :cron => Chef::Provider::Cron,
++ :package => Chef::Provider::Package::Yum,
++ :mdadm => Chef::Provider::Mdadm
++ }
++ },
+ :suse => {
+ :default => {
+ :service => Chef::Provider::Service::Redhat,
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/chef.git/commitdiff/7abbc83bce4f1b3369593bc3e45ed89e48675b84
More information about the pld-cvs-commit
mailing list