65d234e753
- update to 0.8.4 - fixes for fedora 18 - use url for sources OBS-URL: https://build.opensuse.org/request/show/159803 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rubygem-gem2rpm?expand=0&rev=4
23 lines
549 B
Diff
23 lines
549 B
Diff
Index: gem2rpm-0.8.1/bin/gem2rpm
|
|
===================================================================
|
|
--- gem2rpm-0.8.1.orig/bin/gem2rpm
|
|
+++ gem2rpm-0.8.1/bin/gem2rpm
|
|
@@ -69,6 +69,16 @@ rest = opts.permute(ARGV)
|
|
|
|
template = nil
|
|
if template_file.nil?
|
|
+ f = open("/etc/os-release", "r") if File.exists?("/etc/os-release")
|
|
+ if f
|
|
+ f.read.split('\n').each do |line|
|
|
+ line.match(%r{^ID=(.*)$}) { |m| template_file=m[1] }
|
|
+ end
|
|
+ f.close
|
|
+ f = nil
|
|
+ end
|
|
+end
|
|
+if template_file.nil?
|
|
template = Gem2Rpm::TEMPLATE
|
|
else
|
|
begin
|
|
|