summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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