2 Summary: Ruby module for collecting simple facts about a host operating system
7 Group: Development/Languages
8 Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
9 # Source0-md5: 0e8806dbfaa5b9b0b7b7f19c725aab1d
10 URL: https://puppetlabs.com/facter
11 BuildRequires: docutils
12 BuildRequires: rpm-rubyprov
13 BuildRequires: rpmbuild(macros) >= 1.656
17 # dmidecode and pciutils are not available on all arches
18 %ifarch %{ix86} %{x8664} ia64
22 Obsoletes: facter < 1.5.9
23 # due arch specific dependencies
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 # nothing to be placed there. we're not noarch only because of arch dependant requires
28 %define _enable_debug_packages 0
31 Facter is a lightweight program that gathers basic node information
32 about the hardware and operating system. Facter is especially useful
33 for retrieving things like operating system names, hardware
34 characteristics, IP addresses, MAC addresses, and SSH keys.
36 Facter is extensible and allows gathering of node information that may
37 be custom or site specific. It is easy to extend by including your own
38 custom facts. Facter can also be used to create conditional
39 expressions in Puppet that key off the values returned by facts.
42 %setup -q -n %{pkgname}-%{version}
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir},%{_bindir}}
51 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
52 cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
53 cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %doc README.md etc/facter.conf
61 %attr(755,root,root) %{_bindir}/facter
62 %{ruby_vendorlibdir}/%{pkgname}
63 %{ruby_vendorlibdir}/%{pkgname}.rb
64 %{ruby_specdir}/%{pkgname}-%{version}.gemspec