Package: ruby-fog-core / 1.42.0-1

2001_avoid_git_in_gemspec.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: avoid git in gemspec
 git ls-files is only available in git.
 .
 with this patch pbuilder can build correct gemspec file.
Author: Pirate Praveen <praveen@debian.org>
Last-Updated: 2014-11-23

Index: ruby-fog-core/fog-core.gemspec
===================================================================
--- ruby-fog-core.orig/fog-core.gemspec
+++ ruby-fog-core/fog-core.gemspec
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
   spec.homepage      = "https://github.com/fog/fog-core"
   spec.license       = "MIT"
 
-  spec.files         = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
+  spec.files         = `find ./* -type f | cut -b 3-`.split($/)
   spec.executables   = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
   spec.test_files    = spec.files.grep(%r{^(test|spec|features)/})
   spec.require_paths = ["lib"]