%define pkgname ohai
Summary: Profiles your system and emits JSON
Name: ruby-%{pkgname}
-Version: 6.20.0
+Version: 6.22.0
Release: 1
License: Apache v2.0
Group: Development/Languages
Source0: https://github.com/opscode/ohai/archive/%{version}/%{pkgname}-%{version}.tar.gz
-# Source0-md5: 1a3091bb1d06fda9e15447edbc4a2f77
+# Source0-md5: 10631d1b5cfcfe960336680d0ad3b030
Patch0: virtualization-vserver.patch
Patch1: php-builddate.patch
+Patch2: https://github.com/glensc/ruby-ohai/compare/OHAI-295.patch
+# Patch2-md5: 7e0f3de1daa40df05a2aa82547d7ca67
URL: http://docs.opscode.com/ohai.html
BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.665
Requires: ruby-mixlib-cli
Requires: ruby-mixlib-config
Requires: ruby-mixlib-log
+Requires: mount
Requires: ruby-mixlib-shellout
Requires: ruby-systemu >= 2.5.2
Requires: ruby-yajl
%setup -q -n ohai-%{version}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
# no plist and not darwin so don't care
%files
%defattr(644,root,root,755)
-%doc README.rdoc CHANGELOG NOTICE
+%doc README.rdoc CHANGELOG.md NOTICE
%attr(755,root,root) %{_bindir}/ohai
%{_mandir}/man1/ohai.1*
%{ruby_vendorlibdir}/%{pkgname}.rb