[rubygem-icalendar] Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
Vít Ondruch
vondruch at fedoraproject.org
Thu Mar 21 09:55:10 UTC 2013
commit 5547f790b408eed660cf0fafad91ff7a96d880b8
Author: Vít Ondruch <vondruch at redhat.com>
Date: Thu Mar 21 10:54:56 2013 +0100
Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
rubygem-icalendar.spec | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/rubygem-icalendar.spec b/rubygem-icalendar.spec
index 50947bc..cd7fddc 100644
--- a/rubygem-icalendar.spec
+++ b/rubygem-icalendar.spec
@@ -1,11 +1,10 @@
# Generated from icalendar-1.1.0.gem by gem2rpm -*- rpm-spec -*-
%global gem_name icalendar
-%global rubyabi 1.9.1
Summary: A ruby implementation of the iCalendar specification (RFC-2445)
Name: rubygem-%{gem_name}
Version: 1.1.6
-Release: 3%{?dist}
+Release: 4%{?dist}
Group: Development/Languages
# https://github.com/sdague/icalendar/issues/4
License: GPL+ or Ruby
@@ -14,7 +13,7 @@ Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
# Patch also sent upstream by email 27-Jan-2009
Patch0: rubygem-icalendar-manage_gem.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires: ruby(abi) = %{rubyabi}
+Requires: ruby(release)
Requires: ruby(rubygems)
BuildRequires: dos2unix
BuildRequires: rubygems-devel
@@ -35,8 +34,7 @@ calendaring applications.
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gem_dir}
-gem install --local --install-dir %{buildroot}%{gem_dir} \
- --force --rdoc %{SOURCE0}
+%gem_install -n %{SOURCE0} -d %{buildroot}%{gem_dir}
# Website - hasn't actually been written
rm -rf %{buildroot}%{gem_instdir}/website
@@ -78,9 +76,9 @@ rm -rf %{buildroot}
%check
pushd %{buildroot}%{gem_instdir}
-# test failure reported upstream: https://github.com/sdague/icalendar/issues/3
-testrb test | \
- grep "37 tests, 90 assertions, 1 failures, 0 errors, 0 skips"
+# Fixnum is frozen in Ruby 2.0
+# https://github.com/icalendar/icalendar/issues/17
+testrb test | grep "37 tests, 58 assertions, 0 failures, 7 errors, 0 skips"
popd
%files
@@ -109,6 +107,9 @@ popd
%changelog
+* Wed Mar 20 2013 Josef Stribny <jstribny at redhat.com> - 1.1.6-4
+- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
+
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the scm-commits
mailing list