[rubygem-marc] F-19: Rebuild for ruby 2.0.0
Mamoru Tasaka
mtasaka at fedoraproject.org
Wed Mar 6 08:35:22 UTC 2013
commit 46ca0576f681f2288d462ca881a3d896ced8a852
Author: TASAKA Mamoru <mtasaka at localhost.localdomain>
Date: Wed Mar 6 17:35:16 2013 +0900
F-19: Rebuild for ruby 2.0.0
rubygem-marc.spec | 26 ++++++++++++++++----------
1 files changed, 16 insertions(+), 10 deletions(-)
---
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 <mtasaka at fedoraproject.org> - 0.5.0-4
+- F-19: Rebuild for ruby 2.0.0
+
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.5.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the scm-commits
mailing list