[rubygem-locale] F-19: Rebuild for ruby 2.0.0
Mamoru Tasaka
mtasaka at fedoraproject.org
Wed Feb 27 07:42:54 UTC 2013
commit e03cb403cc323f21f79c911babeb255c34d6f45d
Author: TASAKA Mamoru <mtasaka at localhost.localdomain>
Date: Wed Feb 27 16:42:47 2013 +0900
F-19: Rebuild for ruby 2.0.0
rubygem-locale.spec | 27 ++++++++++++++++-----------
1 files changed, 16 insertions(+), 11 deletions(-)
---
diff --git a/rubygem-locale.spec b/rubygem-locale.spec
index 6c4a21d..c8b4df4 100644
--- a/rubygem-locale.spec
+++ b/rubygem-locale.spec
@@ -4,7 +4,9 @@
%global rubyabi 1.8
%global ruby19 0
%else
+%if 0%{?fedora} < 19
%global rubyabi 1.9.1
+%endif
%global ruby19 1
%endif
@@ -15,7 +17,7 @@
Summary: Pure ruby library which provides basic APIs for localization
Name: rubygem-%{gem_name}
Version: 2.0.8
-Release: 2%{?dist}
+Release: 3%{?dist}
Group: Development/Languages
License: GPLv2 or Ruby
URL: http://locale.rubyforge.org/
@@ -23,13 +25,19 @@ URL: http://locale.rubyforge.org/
Source0: http://rubyforge.org/frs/download.php/%{repoid}/%{gem_name}-%{version}.gem
BuildArch: noarch
+%if 0%{?fedora} >= 19
+Requires: ruby(release)
+BuildRequires: ruby(release)
+%else
+Requires: ruby(abi) = %{rubyabi}
+Requires: ruby
BuildRequires: ruby(abi) = %{rubyabi}
-BuildRequires: ruby
+BuildRequires: ruby
+%endif
+
BuildRequires: rubygems-devel
BuildRequires: rubygem(rake)
BuildRequires: rubygem(minitest)
-Requires: ruby
-Requires: ruby(abi) = %{rubyabi}
Requires: ruby(rubygems)
Provides: rubygem(%{gem_name}) = %{version}-%{release}
Conflicts: rubygem-gettext < 2.0.0
@@ -64,13 +72,7 @@ This package provides non-Gem support for %{gem_name}.
%prep
%setup -q -c -T
-gem install \
- --local \
- --install-dir .%{gem_dir} \
- --force \
- --rdoc \
- -V \
- %{SOURCE0}
+%gem_install -n %{SOURCE0}
# rm -f .%{gem_instdir}/Rakefile
find . -name \*gem | xargs chmod 0644
@@ -184,6 +186,9 @@ rm -rf %{buildroot}
%endif
%changelog
+* Wed Feb 27 2013 Mamoru TASAKA <mtasaka at fedoraproject.org> - 2.0.8-3
+- F-19: Rebuild for ruby 2.0.0
+
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the scm-commits
mailing list