facter/facter.spec

Name: facter
Summary: Ruby module for collecting simple facts about a host operating system
Version: 1.6.4
Release: 1
License: Apache 2.0
Group: System Environment/Base
URL: http://www.puppetlabs.com/puppet/related-projects/facter/
Description: Ruby module for collecting simple facts about a host Operating system. Some of the facts are preconfigured, such as the hostname and the operating system. Additional facts can be added through simple Ruby scripts

CentOS 7 x86_64

The build was not successful.

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: yury

%{!?ruby_sitelibdir: %global ruby_sitelibdir %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]')}

%global has_ruby_abi 0%{?fedora} || 0%{?rhel} >= 5
%global has_ruby_noarch %has_ruby_abi

Summary: Ruby module for collecting simple facts about a host operating system
Name: facter
Version: 1.6.4
Release: 1%{?dist}
License: Apache 2.0
Group: System Environment/Base
URL: http://www.puppetlabs.com/puppet/related-projects/facter/

Source0: http://downloads.puppetlabs.com/%{name}/%{name}-%{version}.tar.gz
Source1: http://downloads.puppetlabs.com/%{name}/%{name}-%{version}.tar.gz.asc

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%if %has_ruby_noarch
BuildArch: noarch
%endif

BuildRequires: ruby >= 1.8.1
Requires: ruby >= 1.8.1

%if %has_ruby_abi
Requires: ruby(abi) = 1.8
%endif

Requires: dmidecode
Requires: which

%description
Ruby module for collecting simple facts about a host Operating
system. Some of the facts are preconfigured, such as the hostname and the
operating system. Additional facts can be added through simple Ruby scripts

%prep
%setup
%{__perl} -e 's|^#!.*$|#!/usr/bin/ruby|' bin/facter

%build
# Nothing to build

%install
%{__rm} -rf %{buildroot}

ruby install.rb --destdir=%{buildroot} --quick --no-rdoc

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc CHANGELOG LICENSE README.md
%{_bindir}/facter
%{ruby_sitelibdir}/facter.rb
%{ruby_sitelibdir}/facter

%changelog
* Thu Jan 12 2012 Yury V. Zaytsev <yury@shurup.com> - 1.6.4-1
- Merged improvements from TMZ.
- Updated to release 1.6.4.

* Sat Oct 15 2011 Yury V. Zaytsev <yury@shurup.com> - 1.6.2-1
- Updated to release 1.6.2.

* Fri Sep 30 2011 Yury V. Zaytsev <yury@shurup.com> - 1.6.1-1
- Updated to release 1.6.1.

* Thu Aug 04 2011 Yury V. Zaytsev <yury@shurup.com> - 1.6.0-1
- Dropped Scientific Linux patch as it was upstreamed.
- License has been changed from GPLv2+ to Apache 2.0.
- Updated to version 1.6.0.

* Thu Jun 23 2011 Yury V. Zaytsev <yury@shurup.com> - 1.5.9-1
- Misc changes to make it easier to sync with EPEL.
- Updated to version 1.5.9.

* Fri Jan 28 2011 Steve Huff <shuff@vecna.org> - 1.5.8-1
- Updated to version 1.5.8.

* Sat May 12 2007 Dag Wieers <dag@wieers.com> - 1.3.6-1
- Initial package. (using DAR)