File: remove-git-in-gemspec.patch

package info (click to toggle)
ruby-rqrcode 1.1.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 268 kB
  • sloc: ruby: 232; sh: 4; makefile: 3
file content (15 lines) | stat: -rw-r--r-- 617 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Debian builds packages from source tarballs so git cannot find list of files

--- a/rqrcode.gemspec
+++ b/rqrcode.gemspec
@@ -20,9 +20,7 @@
   spec.homepage      = "https://github.com/whomwah/rqrcode"
   spec.license       = "MIT"
 
-  spec.files         = Dir.chdir(File.expand_path('..', __FILE__)) do
-    `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
-  end
+  all_files = Dir.glob("**/*").select {|v| v !~ /^(test|spec|features|debian)/}
   spec.bindir        = "exe"
   spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
   spec.require_paths = ["lib"]