File: remove-git-in-gemspec.patch

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

--- a/rqrcode.gemspec
+++ b/rqrcode.gemspec
@@ -22,11 +22,7 @@ Gem::Specification.new do |spec|
     "changelog_uri" => "https://github.com/whomwah/rqrcode/blob/main/CHANGELOG.md"
   }
 
-  spec.files = Dir.chdir(File.expand_path(__dir__)) do
-    `git ls-files -z`.split("\x0").select do |f|
-      f.match(%r{^lib/}) || %w[LICENSE.txt README.md CHANGELOG.md].include?(f)
-    end
-  end
+  spec.files = Dir.glob("**/*")
   spec.bindir = "exe"
   spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
   spec.require_paths = ["lib"]