Marcus Rueckert
75caa909b3
- Use git format-patch instead, fixing one more exists? occurrence - Note 0004-added-example-gem2rpm.yml.patch has the Rakefile hunk removed OBS-URL: https://build.opensuse.org/request/show/1041094 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/rubygem-gem2rpm?expand=0&rev=46
29 lines
736 B
Diff
29 lines
736 B
Diff
From 7fa4f56a2a55278e95510d1663c495fa733d7780 Mon Sep 17 00:00:00 2001
|
|
From: Johannes Kastl <kastl@b1-systems.de>
|
|
Date: Sat, 21 Jul 2018 23:13:35 +0200
|
|
Subject: [PATCH 31/33] use template opensuse on openSUSE Tumbleweed, where
|
|
/etc/os-release contains ID="opensuse-tumbleweed"
|
|
|
|
---
|
|
bin/gem2rpm | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/bin/gem2rpm b/bin/gem2rpm
|
|
index 45ed21c..1298798 100755
|
|
--- a/bin/gem2rpm
|
|
+++ b/bin/gem2rpm
|
|
@@ -82,6 +82,10 @@ if template_file.nil?
|
|
f.close
|
|
f = nil
|
|
end
|
|
+ if template_file.eql? '"opensuse-tumbleweed"'
|
|
+ $stderr.puts 'Using template opensuse on Tumbleweed'
|
|
+ template_file = 'opensuse'
|
|
+ end
|
|
end
|
|
if template_file.nil?
|
|
template = Gem2Rpm::TEMPLATE
|
|
--
|
|
2.26.2
|
|
|