From 46ca0576f681f2288d462ca881a3d896ced8a852 Mon Sep 17 00:00:00 2001 From: TASAKA Mamoru Date: Mar 06 2013 08:35:16 +0000 Subject: F-19: Rebuild for ruby 2.0.0 --- diff --git a/rubygem-marc.spec b/rubygem-marc.spec index 04ca66e..00a418c 100644 --- a/rubygem-marc.spec +++ b/rubygem-marc.spec @@ -1,5 +1,7 @@ %if 0%{?fedora} >= 17 +%if 0%{?fedora} < 19 %global rubyabi 1.9.1 +%endif %else %global rubyabi 1.8 %global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']") @@ -9,7 +11,7 @@ Name: rubygem-%{gem_name} Version: 0.5.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Ruby library for MARC catalog Group: Development/Languages @@ -17,10 +19,18 @@ License: MIT URL: http://marc.rubyforge.org/ Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem +%if 0%{?fedora} >= 19 +Requires: ruby(release) +BuildRequires: ruby(release) +%else +Requires: ruby(abi) = %{rubyabi} +Requires: ruby BuildRequires: ruby(abi) = %{rubyabi} +BuildRequires: ruby +%endif + BuildRequires: rubygems-devel BuildRequires: rubygem(test-unit) -Requires: ruby(abi) = %{rubyabi} Requires: ruby(rubygems) Provides: rubygem(%{gem_name}) = %{version}-%{release} %if 0%{?fedora} >= 17 @@ -55,14 +65,7 @@ This package provides non-Gem support for %{gem_name}. %prep %setup -q -T -c -mkdir -p .%{gem_dir} -gem install \ - --local \ - --install-dir .%{gem_dir} \ - --force \ - --rdoc \ - -V \ - %{SOURCE0} +%gem_install -n %{SOURCE0} find .%{gem_instdir}/{lib,test} -name \*.rb -print0 | xargs -0 chmod 0644 find .%{gem_instdir}/{lib,test} -name \*.rb -print0 | \ @@ -168,6 +171,9 @@ ruby -Ilib:. -r marc -r test/unit -e 'Dir.glob("test/tc_*.rb"){|f| require f }' %changelog +* Wed Mar 6 2013 Mamoru TASAKA - 0.5.0-4 +- F-19: Rebuild for ruby 2.0.0 + * Thu Feb 14 2013 Fedora Release Engineering - 0.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild