[packages/ruby-ohai] new, version 0.5.0

glen glen at pld-linux.org
Thu Apr 4 00:04:32 CEST 2013


commit be3173964c9d4c6da4d167ca369694404407a9ac
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Apr 4 01:04:02 2013 +0300

    new, version 0.5.0
    
    based on fedora rubygems-ohai package
    537941337d7a2c391fd4fe1923f99032a9b4d0e7

 ohai.1         | 23 +++++++++++++++++++
 ruby-ohai.spec | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 95 insertions(+)
---
diff --git a/ruby-ohai.spec b/ruby-ohai.spec
new file mode 100644
index 0000000..c1c52e0
--- /dev/null
+++ b/ruby-ohai.spec
@@ -0,0 +1,72 @@
+%define gemname ohai
+Summary:	Profiles your system and emits JSON
+Name:		ruby-%{gemname}
+Version:	0.5.0
+Release:	1
+License:	Apache v2.0
+Group:		Development/Languages
+URL:		http://wiki.opscode.com/display/ohai
+Source0:	http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
+# Source0-md5:	c732696877356d9fef48ac07d18dc7e5
+# Request to include: http://tickets.opscode.com/browse/OHAI-169
+Source1:	ohai.1
+BuildRequires:	rpm-rubyprov
+BuildRequires:	rpmbuild(macros) >= 1.656
+Requires:	ruby-extlib
+Requires:	ruby-json
+Requires:	ruby-mixlib-cli
+Requires:	ruby-mixlib-config
+Requires:	ruby-mixlib-log
+Requires:	ruby-systemu
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Ohai detects data about your operating system and prints out a JSON
+data blob. It can be used standalone, but it's primary purpose is to
+provide node data to Chef.
+
+%package doc
+Summary:	Documentation for %{name}
+Group:		Documentation
+Requires:	%{name} = %{version}-%{release}
+
+%description doc
+This package contains documentation for %{name}.
+
+%prep
+%setup -q
+
+%build
+%if %{with tests}
+# Occasionally fails with "undefined method `rfc2822' for nil:NilClass" during
+# mock. Unsure why - disable for now.
+sed -i 's^Time.should_receive(:now)^^' spec/ohai/plugins/ohai_time_spec.rb
+rake spec
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir}}
+cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+
+# http://tickets.opscode.com/browse/OHAI-169
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
+install -Dp %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1/ohai.1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rdoc
+%attr(755,root,root) %{_bindir}/ohai
+%{_mandir}/man1/ohai.1*
+%{ruby_vendorlibdir}/ohai.rb
+%{ruby_vendorlibdir}/ohai
+
+%if 0
+%files doc
+%defattr(644,root,root,755)
+%endif
diff --git a/ohai.1 b/ohai.1
new file mode 100644
index 0000000..6474d31
--- /dev/null
+++ b/ohai.1
@@ -0,0 +1,23 @@
+.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.36.
+.TH OHAI "1" "April 2009" "ohai" "User Commands"
+.SH NAME
+ohai \- collect system information
+.SH SYNOPSIS
+.B ohai
+[\fIOPTION\fR]... 
+.SH DESCRIPTION
+Information about your system is collected and returned as multidimensional
+attributes in a JSON format.
+.TP
+\fB\-d\fR, \fB\-\-directory\fR NAME
+A directory to add to the Ohai search path
+.TP
+\fB\-f\fR, \fB\-\-file\fR NAME
+A file to run Ohai against
+.TP
+\fB\-l\fR, \fB\-\-loglevel\fR NAME
+Set log level for Ohai
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+Show this message
+.IP
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-ohai.git/commitdiff/be3173964c9d4c6da4d167ca369694404407a9ac



More information about the pld-cvs-commit mailing list