From a479e06809d9a4b633b097d737fbdc89fefe4847 Mon Sep 17 00:00:00 2001 From: Mamoru Tasaka Date: Mon, 31 Dec 2012 17:40:01 +0900 Subject: [PATCH] once clean up macro --- rubygem-nokogiri.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rubygem-nokogiri.spec b/rubygem-nokogiri.spec index 41ff44d..54185f5 100644 --- a/rubygem-nokogiri.spec +++ b/rubygem-nokogiri.spec @@ -1,6 +1,8 @@ +%if 0%{?fedora} <= 16 && 0%{?fedora} <= 6 %global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']") %global ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']") %global rubyabi 1.8 +%endif %global mainver 1.5.5 #%%global prever .beta.4 @@ -12,7 +14,7 @@ %global gemname nokogiri %global geminstdir %{gemdir}/gems/%{gemname}-%{mainver}%{?prever} -%if %{?fedora:0%{fedora} >= 17}%{?rhel:0%{rhel} >= 7} +%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7 %global ruby19 1 %global rubyabi 1.9.1 %global gemdir %{gem_dir}