summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Dreyer <ktdreyer@ktdreyer.com>2013-12-26 19:45:11 -0700
committerKen Dreyer <ktdreyer@ktdreyer.com>2013-12-26 21:21:13 -0700
commit2abbc859c39461762d5a948506531e8ee4edc017 (patch)
tree322749aebb6e82ee92936132bad35bd003505d50
parentc6cb71da88b4af40d090d52eb181325aa91f379c (diff)
downloadrubygem-yajl-ruby-2abbc859c39461762d5a948506531e8ee4edc017.tar.gz
rubygem-yajl-ruby-2abbc859c39461762d5a948506531e8ee4edc017.tar.xz
rubygem-yajl-ruby-2abbc859c39461762d5a948506531e8ee4edc017.zip
use %gem_install macro
On platforms that are not EL6, the %gem_install macro is available and preferable to manually compiling the gem.
-rw-r--r--rubygem-yajl-ruby.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/rubygem-yajl-ruby.spec b/rubygem-yajl-ruby.spec
index d817b20..4fee236 100644
--- a/rubygem-yajl-ruby.spec
+++ b/rubygem-yajl-ruby.spec
@@ -52,6 +52,7 @@ gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%build
gem build %{gem_name}.gemspec
+%if 0%{?el6}
mkdir -p .%{gem_dir}
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
gem install --local \
@@ -59,6 +60,9 @@ gem install --local \
-V \
--force --rdoc \
%{gem_name}-%{version}.gem
+%else
+%gem_install
+%endif
%install