conf/redhat/facter.spec in facter-1.6.4 vs conf/redhat/facter.spec in facter-1.6.5
- old
+ new
@@ -1,6 +1,6 @@
-%{!?ruby_sitelibdir: %define ruby_sitelibdir %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]')}
+%{!?ruby_sitelibdir: %define ruby_sitelibdir %(ruby -rrbconfig -e 'puts Object.const_get(defined?(RbConfig) ? :RbConfig : :Config)::CONFIG["sitelibdir"]'
%define has_ruby_abi 0%{?fedora} || 0%{?rhel} >= 5
%define has_ruby_noarch %has_ruby_abi
%global _ver 1.6.4
@@ -20,9 +20,10 @@
%endif
Requires: ruby >= 1.8.1
Requires: which
Requires: dmidecode
+Requires: pciutils
%if %has_ruby_abi
Requires: ruby(abi) = 1.8
%endif
BuildRequires: ruby >= 1.8.1