Summary: A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure
Name: chef
Version: 14.1.36
-Release: 1
+Release: 2
License: Apache v2.0
Group: Networking/Admin
Source0: https://github.com/chef/chef/archive/v%{version}/%{name}-%{version}.tar.gz
# Patch3-md5: 8ff0fdfde6dc90018698775bf8f13062
Patch4: optional-plist.patch
Patch5: gemdeps.patch
+Patch6: rubygems.patch
URL: https://www.chef.io/
BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.673
%patch3 -p1
%patch4 -p1
%patch5 -p1
+%patch6 -p1
%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
--- /dev/null
+--- chef-14.1.36/lib/chef/version_string.rb~ 2018-06-04 22:47:04.000000000 +0300
++++ chef-14.1.36/lib/chef/version_string.rb 2018-11-01 15:41:08.594148157 +0200
+@@ -13,6 +13,8 @@
+ # See the License for the specific language governing permissions and
+ # limitations under the License.
+
++require "rubygems"
++
+ class Chef
+ # String-like object for version strings.
+ #