From 63869cd7e660acb5a43282fdb4b1900575848a57 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Tue, 4 Dec 2018 18:39:21 -0500 Subject: [PATCH] Replace gemspec files from git with a globbed-search Builds would fail if source didn't include the repository completely --- debian/patches/gemspec_no_git | 39 +++++++++++++++++++++++++++++++++++ debian/patches/series | 1 + puppet-strings.gemspec | 4 +++- 3 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 debian/patches/gemspec_no_git create mode 100644 debian/patches/series diff --git a/debian/patches/gemspec_no_git b/debian/patches/gemspec_no_git new file mode 100644 index 0000000..b0e3f07 --- /dev/null +++ b/debian/patches/gemspec_no_git @@ -0,0 +1,39 @@ +Description: + TODO: Put a short summary on the line above and replace this paragraph + with a longer explanation of this change. Complete the meta-information + with other relevant fields (see below for details). To make it easier, the + information below has been extracted from the changelog. Adjust it or drop + it. + . + puppet-strings (2.1.0-1) unstable; urgency=medium + . + * Initial release. (Closes: #915359) +Author: Kienan Stewart +Bug-Debian: https://bugs.debian.org/915359 + +--- +The information above should follow the Patch Tagging Guidelines, please +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here +are templates for supplementary fields that you might want to add: + +Origin: , +Bug: +Bug-Debian: https://bugs.debian.org/ +Bug-Ubuntu: https://launchpad.net/bugs/ +Forwarded: +Reviewed-By: +Last-Update: 2018-12-04 + +--- puppet-strings-2.1.0.orig/puppet-strings.gemspec ++++ puppet-strings-2.1.0/puppet-strings.gemspec +@@ -20,7 +20,9 @@ Gem::Specification.new do |s| + 'LICENSE', + 'README.md', + ] +- s.files = `git ls-files`.split("\n") - Dir['.*', '*.gemspec'] ++ #s.files = `git ls-files`.split("\n") - Dir['.*', '*.gemspec'] ++ s.files = Dir.glob("{lib,misc,spec}/**/*") + ++ ['CHANGELOG.md', 'LICENSE', 'README.md', 'Rakefile', __FILE__] + + s.add_runtime_dependency 'yard', '~> 0.9.5' + s.add_runtime_dependency 'rgen' diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..391c607 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +gemspec_no_git diff --git a/puppet-strings.gemspec b/puppet-strings.gemspec index 6e7236f..c911eae 100644 --- a/puppet-strings.gemspec +++ b/puppet-strings.gemspec @@ -20,7 +20,9 @@ Gem::Specification.new do |s| 'LICENSE', 'README.md', ] - s.files = `git ls-files`.split("\n") - Dir['.*', '*.gemspec'] + #s.files = `git ls-files`.split("\n") - Dir['.*', '*.gemspec'] + s.files = Dir.glob("{lib,misc,spec}/**/*") + + ['CHANGELOG.md', 'LICENSE', 'README.md', 'Rakefile', __FILE__] s.add_runtime_dependency 'yard', '~> 0.9.5' s.add_runtime_dependency 'rgen'