diff options
author | Ken Dreyer <ktdreyer@ktdreyer.com> | 2013-11-23 15:26:25 -0700 |
---|---|---|
committer | Ken Dreyer <ktdreyer@ktdreyer.com> | 2013-11-23 23:29:04 -0700 |
commit | b638ccf740f2f2930381f7d1f1e5c66fabce4406 (patch) | |
tree | 89ed25b348e62bfec146907596040b92e29f5838 | |
parent | 7d796aca26cd57b2566f7e0bc03853b7f943aa87 (diff) | |
download | rubygem-unicorn-b638ccf740f2f2930381f7d1f1e5c66fabce4406.tar.gz rubygem-unicorn-b638ccf740f2f2930381f7d1f1e5c66fabce4406.tar.xz rubygem-unicorn-b638ccf740f2f2930381f7d1f1e5c66fabce4406.zip |
adjust dist conditionals post F17
Fedora 17 is EOL. Remove references to it in the conditionals.
-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|' |