[rubygem-commander] patch out simplecov

John Palmieri (J5) johnp at fedoraproject.org
Wed Jun 20 19:06:14 UTC 2012


commit 33da403fa2987f9cf9fd647003b85cbe5c83152a
Author: John (J5) Palmieri <johnp at redhat.com>
Date:   Wed Jun 20 15:05:52 2012 -0400

    patch out simplecov

 commander-remove-simplcov.patch |   21 +++++++++++++++++++++
 rubygem-commander.spec          |    9 +++++++--
 2 files changed, 28 insertions(+), 2 deletions(-)
---
diff --git a/commander-remove-simplcov.patch b/commander-remove-simplcov.patch
new file mode 100644
index 0000000..3132f5b
--- /dev/null
+++ b/commander-remove-simplcov.patch
@@ -0,0 +1,21 @@
+diff -up ./gems/commander-4.1.2/spec/spec_helper.rb.simplecov ./gems/commander-4.1.2/spec/spec_helper.rb
+--- ./gems/commander-4.1.2/spec/spec_helper.rb.simplecov	2012-06-20 14:59:43.650027190 -0400
++++ ./gems/commander-4.1.2/spec/spec_helper.rb	2012-06-20 15:00:39.098486511 -0400
+@@ -1,6 +1,8 @@
+ require 'rubygems'
+-require 'simplecov'
+-SimpleCov.start
++
++# simplecov should be optional
++# require 'simplecov'
++# SimpleCov.start
+ 
+ # prevent paging (through less) from actually occurring in test environment
+ ENV['PAGER'] = 'cat'
+@@ -56,4 +58,4 @@ def run *args
+     program :help_formatter, Commander::HelpFormatter::Base
+   end.run!    
+   @output.string
+-end
+\ No newline at end of file
++end
diff --git a/rubygem-commander.spec b/rubygem-commander.spec
index c0778f8..123ea6e 100644
--- a/rubygem-commander.spec
+++ b/rubygem-commander.spec
@@ -5,15 +5,16 @@
 Summary: The complete solution for Ruby command-line executable
 Name: rubygem-%{gem_name}
 Version: 4.1.2
-Release: 1%{?dist}
+Release: 2%{?dist}
 Group: Development/Languages
 License: MIT
 URL: http://visionmedia.github.com/commander
 Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
+Patch0: commander-remove-simplcov.patch
 Requires: ruby(abi) = %{rubyabi}
 Requires: ruby(rubygems)
 Requires: rubygem(highline) < 1.7
-Requires: rubygem(highline) >= 1.6.0
+Requires: rubygem(highline) >= 1.6.11
 BuildRequires: rubygems-devel
 # Use rspec-core until rspec are not migrated to RSpec 2.x
 # https://github.com/visionmedia/commander/issues/35
@@ -39,6 +40,7 @@ mkdir -p .%{gem_dir}
 gem install --local --install-dir .%{gem_dir} \
             --bindir .%{_bindir} \
             --force %{SOURCE0}
+%patch0 -p0 -d .%{gem_dir} -b .remove-simplecov
 
 %build
 
@@ -85,6 +87,9 @@ popd
 
 %changelog
 * Wed Jun 20 2012 John (J5) Palmieri <johnp at redhat.com> - 4.1.2-1
+- patch out simplecov 
+
+* Wed Jun 20 2012 John (J5) Palmieri <johnp at redhat.com> - 4.1.2-1
 - update to 4.1.2 since the highline dep has been updated
 
 * Thu Feb 02 2012 Vít Ondruch <vondruch at redhat.com> - 4.0.6-3


More information about the scm-commits mailing list