From 27bddfb1447c23e05e5d8ad7ed057e6da9bc8f5d Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Thu, 26 Dec 2013 19:27:33 -0700 Subject: simplify el6/rubyabi conditionals The last Fedora version that supported ruby(abi) is Fedora 18, and this is going end-of-life in a few days. We only need to support ruby(abi) on EL6. Simplify the RPM dist conditionals to reflect this. --- rubygem-yajl-ruby.spec | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'rubygem-yajl-ruby.spec') 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} -- cgit