File: remove-git-usage-in-gemspec.patch

package info (click to toggle)
ruby-enumerable-statistics 2.0.9%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,156 kB
  • sloc: ruby: 2,273; ansic: 2,033; javascript: 408; makefile: 8; sh: 4
file content (20 lines) | stat: -rw-r--r-- 877 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Pirate Praveen <praveen@debian.org>
Date: Wed, 3 Nov 2021 08:18:08 -0300
Subject: remove-git-usage-in-gemspec

If git is present in build env, it causes build failures.
---
 enumerable-statistics.gemspec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/enumerable-statistics.gemspec
+++ b/enumerable-statistics.gemspec
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
   spec.description   = %q{This library provides statistics features for Enumerable}
   spec.homepage      = "https://github.com/red-data-tools/enumerable-statistics"
 
-  spec.files         = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
+  spec.files         = Dir.glob("**/*").select {|v| v !~ /^debian/}
   spec.bindir        = "exe"
   spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
   spec.require_paths = ["ext", "lib"]