summaryrefslogtreecommitdiffstats
path: root/rubygem-yajl-ruby.spec
diff options
context:
space:
mode:
Diffstat (limited to 'rubygem-yajl-ruby.spec')
-rw-r--r--rubygem-yajl-ruby.spec14
1 files changed, 6 insertions, 8 deletions
diff --git a/rubygem-yajl-ruby.spec b/rubygem-yajl-ruby.spec
index 1ac90b4..517d545 100644
--- a/rubygem-yajl-ruby.spec
+++ b/rubygem-yajl-ruby.spec
@@ -10,12 +10,6 @@
%global gem_spec %{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%endif
-%if %{?el6}0 || %{?fc16}0
-%global rubyabi 1.8
-%else
-%global rubyabi 1.9.1
-%endif
-
Summary: Ruby C bindings to the excellent Yajl JSON stream-based parser library
Name: rubygem-%{gem_name}
Version: 1.1.0
@@ -24,10 +18,14 @@ Group: Development/Languages
License: MIT
URL: https://github.com/brianmario/yajl-ruby
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
-Requires: ruby(abi) = %{rubyabi}
+%if %{?el6}0
+Requires: ruby(abi) = 1.8
+%else
+Requires: ruby
+%endif
Requires: ruby(rubygems)
-BuildRequires: ruby(abi) = %{rubyabi}
BuildRequires: ruby-devel
+%{?el6:BuildRequires: ruby(abi) = 1.8}
%{!?el6:BuildRequires: rubygem(rspec)}
%{!?el6:BuildRequires: rubygems-devel}
Provides: rubygem(%{gem_name}) = %{version}