File facter.spec of Package facter
#
# spec file for package facter (Version 1.5.4)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: facter
Version: 1.5.4
Release: 1
AutoReqProv: on
Group: Development/Languages/Ruby
License: GPL v2 or later
Url: http://www.reductivelabs.com/downloads/facter/
Summary: A cross-platform Ruby library for retrieving facts from operating systems
Source: %{name}-%{version}.tar.bz2
Patch: %{name}-%{version}-install.diff
Requires: ruby
BuildRequires: ruby
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A cross-platform Ruby library for retrieving facts from operating
systems. Supports multiple resolution mechanisms, any of which can be
restricted to working only on certain operating systems or
environments. Facter is especially useful for retrieving things like
operating system names, IP addresses, MAC addresses, and SSH keys.
%prep
%setup -q
%patch
%build
%install
DESTDIR="$RPM_BUILD_ROOT" ruby -rvendor-specific install.rb install --prefix=%{buildroot}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc CHANGELOG COPYING INSTALL LICENSE README TODO
%dir %{_libdir}/ruby/vendor_ruby/%{rb_ver}/facter
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/facter.rb
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/facter/*
%{_bindir}/facter
%changelog
* Mon Feb 23 2009 anicka@suse.cz
- update to 1.5.4
* Added support for Oracle VM Server to operatingsystem
* and operatingsystemrelease
* Added support for Oracle Enterprise Linux to operatingsystem
* and operatingsystemrelease
* Added network fact
* Added uptime facts
* Added ci namespace and Rake tasks
* Added Ubuntu to a variety of confines
* bugfixes
* Tue Sep 09 2008 anicka@suse.cz
- update to 1.5.2
* Added a Process.waitall thread when there's a timeout,
to avoid zombies.
* Set the timeout the host-based and resolve-based resolutions
to 2.
* Adding a rake task for creating an archive.
* Adding better SuSE detection for both operatingsystem and
release.
* Add sample test and strawman solution for IP parsing code
* Add module level tests for Facter::IPAddress
- bugfixes, new facts added
* Mon Sep 01 2008 anicka@suse.cz
- package created (version 1.3.8)