We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e3d6f3 commit 1deddfeCopy full SHA for 1deddfe
ext/redhat/facter.spec.erb
@@ -1,6 +1,6 @@
1
-# Fedora 17 ships with ruby 1.9, which uses vendorlibdir instead
+# Fedora 17 ships with ruby 1.9, RHEL 7 with ruby 2.0, which use vendorlibdir instead
2
# of sitelibdir
3
-%if 0%{?fedora} >= 17
+%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
4
%global facter_libdir %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["vendorlibdir"]')
5
%else
6
%global facter_libdir %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["sitelibdir"]')
@@ -35,8 +35,8 @@ Requires: virt-what
35
Requires: ruby >= 1.8.5
36
BuildRequires: ruby >= 1.8.5
37
38
-# In Fedora 17 ruby-rdoc is called rubygem-rdoc
39
+# In Fedora 17+ or RHEL 7+ ruby-rdoc is called rubygem-rdoc
40
BuildRequires: rubygem-rdoc
41
42
BuildRequires: ruby-rdoc
0 commit comments