Skip to content

Commit 6c77fd9

Browse files
committed
Merge pull request #616 from mckern/add-el7-to-stable
Apply the RHEL7 work and merge it into stable
2 parents 5e3d6f3 + 865b4ca commit 6c77fd9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ext/build_defaults.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ gpg_name: '[email protected]'
99
gpg_key: '4BD6EC30'
1010
sign_tar: FALSE
1111
# a space separated list of mock configs
12-
final_mocks: 'pl-el-5-i386 pl-el-5-x86_64 pl-el-6-i386 pl-el-6-x86_64 pl-fedora-18-i386 pl-fedora-18-x86_64 pl-fedora-19-i386 pl-fedora-19-x86_64 pl-fedora-20-i386 pl-fedora-20-x86_64'
12+
final_mocks: 'pl-el-5-i386 pl-el-5-x86_64 pl-el-6-i386 pl-el-6-x86_64 pl-el-7-x86_64 pl-fedora-18-i386 pl-fedora-18-x86_64 pl-fedora-19-i386 pl-fedora-19-x86_64 pl-fedora-20-i386 pl-fedora-20-x86_64'
1313
yum_host: 'yum.puppetlabs.com'
1414
yum_repo_path: '/opt/repository/yum/'
1515
build_gem: TRUE

ext/redhat/facter.spec.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Fedora 17 ships with ruby 1.9, which uses vendorlibdir instead
1+
# Fedora 17 ships with ruby 1.9, RHEL 7 with ruby 2.0, which use vendorlibdir instead
22
# of sitelibdir
3-
%if 0%{?fedora} >= 17
3+
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
44
%global facter_libdir %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["vendorlibdir"]')
55
%else
66
%global facter_libdir %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["sitelibdir"]')
@@ -35,8 +35,8 @@ Requires: virt-what
3535
Requires: ruby >= 1.8.5
3636
BuildRequires: ruby >= 1.8.5
3737

38-
# In Fedora 17 ruby-rdoc is called rubygem-rdoc
39-
%if 0%{?fedora} >= 17
38+
# In Fedora 17+ or RHEL 7+ ruby-rdoc is called rubygem-rdoc
39+
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
4040
BuildRequires: rubygem-rdoc
4141
%else
4242
BuildRequires: ruby-rdoc

0 commit comments

Comments
 (0)