--- /dev/null
+somewhy fallback [1] no longer works
+set one in linux/platform
+
+[1] https://github.com/opscode/ohai/blob/7.4.0/lib/ohai/plugins/platform.rb#L26
+
+--- ohai-7.4.0/lib/ohai/plugins/linux/platform.rb~ 2014-09-06 07:18:08.000000000 +0300
++++ ohai-7.4.0/lib/ohai/plugins/linux/platform.rb 2014-11-14 14:04:37.000000000 +0200
+@@ -121,6 +121,8 @@
+ platform_family "arch"
+ when /exherbo/
+ platform_family "exherbo"
++ when /pld/
++ platform_family "pld"
+ end
+ end
+ end
Summary: Profiles your system and emits JSON
Name: ruby-%{pkgname}
Version: 7.4.0
-Release: 0.1
+Release: 0.2
License: Apache v2.0
Group: Development/Languages
Source0: https://github.com/opscode/ohai/archive/%{version}/%{pkgname}-%{version}.tar.gz
# Source0-md5: 5275e5f79b618ce2af85311cd760b977
Patch0: virtualization-vserver.patch
+Patch1: platform-pld.patch
URL: http://docs.getchef.com/ohai.html
BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.665
%prep
%setup -q -n ohai-%{version}
%patch0 -p1
+%patch1 -p1
%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
# no plist and not darwin so don't care