]> git.pld-linux.org Git - packages/ruby-ohai.git/commitdiff
- up to 14.2.0
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 16 Jul 2018 19:02:13 +0000 (21:02 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 16 Jul 2018 19:02:13 +0000 (21:02 +0200)
platform-pld.patch
ruby-ohai.spec
soft-net-dhcp.patch [deleted file]

index 7ecd7de8882deb3cd66d6829672622310b6ab3f8..a801c89fbfbb8c1dbe4b2acf913a39ebaebc8ecf 100644 (file)
@@ -3,14 +3,15 @@ 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"
+--- ohai-14.2.0/lib/ohai/plugins/linux/platform.rb~    2018-06-04 21:41:29.000000000 +0200
++++ ohai-14.2.0/lib/ohai/plugins/linux/platform.rb     2018-07-16 21:00:42.751122191 +0200
+@@ -152,6 +152,9 @@
+     when /clearlinux/
+       "clearlinux"
      end
++    when /pld/
++      "pld"
++    end
    end
- end
+   collect_data(:linux) do
index 67b8101ddda1a63240736220acd26e9ec5ad336f..1f5fdd4d1fb264ee5468c0c5b4a5df6a20417341 100644 (file)
@@ -7,19 +7,20 @@
 %define pkgname ohai
 Summary:       Profiles your system and emits JSON
 Name:          ruby-%{pkgname}
-Version:       7.6.0
-Release:       5
+Version:       14.2.0
+Release:       0.1
 License:       Apache v2.0
 Group:         Development/Languages
-Source0:       https://github.com/opscode/ohai/archive/%{version}/%{pkgname}-%{version}.tar.gz
-# Source0-md5: b28339ec7f835a2ed4ec0f876178fb14
+Source0:       https://github.com/opscode/ohai/archive/v%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5: 2758eda1e642dec6991c839a8c3d1488
 Patch1:                platform-pld.patch
-Patch2:                soft-net-dhcp.patch
 URL:           http://docs.getchef.com/ohai.html
 BuildRequires: rpm-rubyprov
 BuildRequires: rpmbuild(macros) >= 1.665
 BuildRequires: ruby-rake
 BuildRequires: sed >= 4.0
+BuildRequires: rubocop
+BuildRequires: ruby-chefstyle
 # rake gem uses installed ohai version not version we intend to build!
 BuildConflicts:        ruby-ohai
 %if %{with tests}
@@ -64,7 +65,6 @@ This package contains documentation for %{name}.
 %prep
 %setup -q -n ohai-%{version}
 %patch1 -p1
-%patch2 -p1
 %{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
 
 # don't need shellout 2.0 yet, but 2.0 is ok
diff --git a/soft-net-dhcp.patch b/soft-net-dhcp.patch
deleted file mode 100644 (file)
index 293c86a..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-require net/dhcp only when cloudstack hint present
-
---- ./lib/ohai/mixin/cloudstack_metadata.rb~   2014-12-01 22:01:15.000000000 +0200
-+++ ./lib/ohai/mixin/cloudstack_metadata.rb    2014-12-04 17:21:55.363338588 +0200
-@@ -17,7 +17,6 @@
- require 'ohai/mixin/ec2_metadata'
- require 'ohai/hints'
--require 'net/dhcp'
- require 'socket'
-@@ -30,6 +29,8 @@
-         response = ''
-         if Ohai::Hints.hint?('cloudstack')
-           begin
-+                      require 'net/dhcp'
-+
-             request = DHCP::Discover.new
-             listensock = UDPSocket.new
This page took 0.04798 seconds and 4 git commands to generate.