diff options
-rw-r--r-- | rubygem-unicorn.spec | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/rubygem-unicorn.spec b/rubygem-unicorn.spec index 75b7d6e..5f248d7 100644 --- a/rubygem-unicorn.spec +++ b/rubygem-unicorn.spec @@ -1,11 +1,11 @@ %global gem_name unicorn -%if 0%{?fedora} >= 18 +%if 0%{?fc18} %global rubyabi 1.9.1 %endif -%if 0%{?fedora} >= 19 -%global rubyabi 2.0.0 +%if 0%{?el6} +%global rubyabi 1.8 %endif Summary: Rack HTTP server for fast clients and Unix @@ -19,9 +19,7 @@ Source0: https://rubygems.org/downloads/%{gem_name}-%{version}.gem %if 0%{?fedora} >= 19 Requires: ruby(release) -%endif - -%if 0%{?fedora} >= 17 && 0%{?fedora} < 19 +%else Requires: ruby(abi) = %{rubyabi} %endif @@ -62,7 +60,7 @@ gem install --local --install-dir .%{gem_dir} \ --force %{SOURCE0} # Fix wrong shebang -%if 0%{?fedora} >= 17 +%if 0%{?fedora} >= 18 grep -rl /this/will/be/overwritten/or/wrapped/anyways/do/not/worry/ruby \ ./usr/share/gems/gems/%{gem_name}-%{version}/bin/unicorn | \ xargs sed -i -e 's|/this/will/be/overwritten/or/wrapped/anyways/do/not/worry/ruby|/usr/bin/ruby|' |