Summary: A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure
Name: chef
Version: 12.10.24
-Release: 0.3
+Release: 0.8
License: Apache v2.0
Group: Networking/Admin
Source0: https://github.com/chef/chef/archive/v%{version}/%{name}-%{version}.tar.gz
Patch3: https://github.com/glensc/chef/compare/pld-knife-boostrap.patch
# Patch3-md5: 8ff0fdfde6dc90018698775bf8f13062
Patch4: optional-plist.patch
+Patch5: gemdeps.patch
URL: https://wiki.opscode.com/display/chef/
BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.673
Requires: poldek >= 0.30
Requires: ruby >= 1:1.9.3.429-4
Requires: ruby-chef-config = %{version}-%{release}
-Requires: ruby-diff-lcs < 2
-Requires: ruby-diff-lcs >= 1.2.4
-Requires: ruby-erubis < 3
Requires: ruby-erubis >= 2.7.0-3
-Requires: ruby-ffi-yajl < 2
-Requires: ruby-ffi-yajl >= 1.0
-Requires: ruby-highline < 2
-Requires: ruby-highline >= 1.6.9
Requires: ruby-json <= 1.8.1
Requires: ruby-json >= 1.4.4
Requires: ruby-mime-types < 2
Requires: ruby-mime-types >= 1.16
-Requires: ruby-mixlib-authentication < 2
Requires: ruby-mixlib-authentication >= 1.3.0-2
-Requires: ruby-mixlib-cli < 2
-Requires: ruby-mixlib-cli >= 1.4
Requires: ruby-mixlib-config < 3
Requires: ruby-mixlib-config >= 2.0
-Requires: ruby-mixlib-log < 2
Requires: ruby-mixlib-log >= 1.6.0-2
-Requires: ruby-mixlib-shellout >= 1.4
-Requires: ruby-net-ssh < 3
-Requires: ruby-net-ssh >= 2.6
-Requires: ruby-net-ssh-multi < 2
-Requires: ruby-net-ssh-multi >= 1.1
-Requires: ruby-ohai < 8
-Requires: ruby-ohai >= 6.0
+Requires: ruby-ohai < 9
Requires: ruby-rest-client >= 1.0.4
Requires: ruby-rubygems
-Requires: ruby-yajl < 2
-Requires: ruby-yajl >= 1.1
Suggests: chef-zero >= 2.1.4
Suggests: ruby-plist >= 3.1.0
BuildArch: noarch
%package -n ruby-chef-config
Summary: Chef's default configuration and config loading
Group: Development/Languages
-Requires: ruby-fuzzyurl < 0.9
-Requires: ruby-fuzzyurl >= 0.8.0
-Requires: ruby-mixlib-config < 3
-Requires: ruby-mixlib-config >= 2.0
-Requires: ruby-mixlib-shellout < 3
-Requires: ruby-mixlib-shellout >= 2.0
%description -n ruby-chef-config
Chef's default configuration and config loading.
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
rm bin/chef-windows-service
%endif
+# don't package this, a maintainer's rake task
+rm chef-config/lib/chef-config/package_task.rb
+
# cleanup backups after patching
find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f