summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Dreyer <ktdreyer@ktdreyer.com>2013-12-26 19:27:33 -0700
committerKen Dreyer <ktdreyer@ktdreyer.com>2013-12-26 20:57:53 -0700
commit27bddfb1447c23e05e5d8ad7ed057e6da9bc8f5d (patch)
treec1421fec4e772ae9a430e03e87ab749f6b938ea1
parentf054c1c1777043af5d4bcf272ff51a737e7f06eb (diff)
downloadrubygem-yajl-ruby-27bddfb1447c23e05e5d8ad7ed057e6da9bc8f5d.tar.gz
rubygem-yajl-ruby-27bddfb1447c23e05e5d8ad7ed057e6da9bc8f5d.tar.xz
rubygem-yajl-ruby-27bddfb1447c23e05e5d8ad7ed057e6da9bc8f5d.zip
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.
-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}