Move definition of enable_check macro

This was in the wrong location, making the comment about the lib dir
look out of place.
epel9
Todd Zullinger 11 years ago
parent 27672bcddc
commit 3248c1baaa

@ -1,17 +1,17 @@
# F-17 and above have ruby-1.9.x, and place libs in a different location # F-17 and above have ruby-1.9.x, and place libs in a different location
# The checks also fail on older releases, due to an older mocha gem, it appears
%if (0%{?fedora} >= 17 && 0%{?fedora} <= 19)
%global enable_check 1
%else
%global enable_check 0
%endif
%if 0%{?fedora} >= 17 %if 0%{?fedora} >= 17
%global facter_libdir %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["vendorlibdir"]') %global facter_libdir %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["vendorlibdir"]')
%else %else
%global facter_libdir %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["sitelibdir"]') %global facter_libdir %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["sitelibdir"]')
%endif %endif
# Only enable checks on F-19, other releases fail for various reasons
%if (0%{?fedora} >= 17 && 0%{?fedora} <= 19)
%global enable_check 1
%else
%global enable_check 0
%endif
%global ruby_version %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["ruby_version"]') %global ruby_version %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["ruby_version"]')
# There is nothing useful in debuginfo, facter is only an arch package to # There is nothing useful in debuginfo, facter is only an arch package to

Loading…
Cancel
Save