[rubygem-gem-patch] Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1

Josef Stribny jstribny at fedoraproject.org
Tue Jun 10 11:05:34 UTC 2014


commit 4db3e9971deb1389af3d4e3be0b1f46b8391e4f8
Author: Josef Stribny <jstribny at redhat.com>
Date:   Tue Jun 10 13:05:23 2014 +0200

    Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1

 rubygem-gem-patch.spec |   26 +++++++++++++++++++++-----
 1 files changed, 21 insertions(+), 5 deletions(-)
---
diff --git a/rubygem-gem-patch.spec b/rubygem-gem-patch.spec
index 558b220..a73362f 100644
--- a/rubygem-gem-patch.spec
+++ b/rubygem-gem-patch.spec
@@ -4,20 +4,18 @@
 Summary: RubyGems plugin for patching gems
 Name: rubygem-%{gem_name}
 Version: 0.1.5
-Release: 2%{?dist}
+Release: 3%{?dist}
 Group: Development/Languages
 License: MIT
 URL: http://github.com/strzibny/gem-patch
 Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
 BuildRequires:  rubygems-devel 
 BuildRequires:  rubygem(minitest)
-Requires:       ruby(release)
-Requires:       ruby(rubygems)
 BuildArch: noarch
 Provides: rubygem(%{gem_name}) = %{version}
 
 %description
-`gem-patch` is a RubyGems plugin that helps to patch gems
+gem-patch is a RubyGems plugin that helps to patch gems
 without manually opening and rebuilding them.
 It opens a given .gem file, extracts it, patches it with
 system `patch` command, clones its spec, updates the file list
@@ -44,7 +42,22 @@ cp -a .%{gem_dir}/* \
 
 %check
 pushd .%{gem_instdir}
-testrb -Ilib test
+# Avoid requiring minitest 4
+ruby -rrubygems -Ilib - << \EOF
+  module Kernel
+    alias :orig_gem :gem
+    remove_method :gem
+
+    def gem gem_name, *requirements
+      if gem_name == 'minitest'
+        orig_gem 'minitest'
+      else
+        orig_gem gem_name, *requirements
+      end
+    end
+  end
+  Dir.glob('./test/**/test_*.rb').each { |t| require t }
+EOF
 
 %files
 %dir %{gem_instdir}
@@ -61,6 +74,9 @@ testrb -Ilib test
 %{gem_instdir}/test
 
 %changelog
+* Tue Jun 10 2014 Josef Stribny <jstribny at redhat.com> - 0.1.5-3
+- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.1.5-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list