2016-11-10 17:21:35 +01:00
|
|
|
From 3888b107af6ce5721ff40abe2bedcede1893732b Mon Sep 17 00:00:00 2001
|
|
|
|
From: Theo Chatzimichos <tampakrap@gmail.com>
|
|
|
|
Date: Tue, 23 Aug 2016 23:49:40 +0200
|
2022-12-07 13:28:20 +01:00
|
|
|
Subject: [PATCH 24/33] add ability to provide alternative main Source
|
2016-11-10 17:21:35 +01:00
|
|
|
|
|
|
|
this is useful in cases where the gem is not taken from rubygems.org
|
|
|
|
---
|
|
|
|
templates/opensuse.spec.erb | 4 ++++
|
|
|
|
1 file changed, 4 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/templates/opensuse.spec.erb b/templates/opensuse.spec.erb
|
|
|
|
index 5b62b26..ae2d458 100644
|
|
|
|
--- a/templates/opensuse.spec.erb
|
|
|
|
+++ b/templates/opensuse.spec.erb
|
|
|
|
@@ -73,7 +73,11 @@ BuildRequires: update-alternatives
|
|
|
|
<% unless spec.homepage.nil? || spec.homepage.empty? -%>
|
|
|
|
Url: <%= spec.homepage %>
|
|
|
|
<% end -%>
|
|
|
|
+<% if config[:sourceurl] -%>
|
|
|
|
+Source: <%= config[:sourceurl] %>
|
|
|
|
+<% else -%>
|
|
|
|
Source: http://rubygems.org/gems/%{mod_full_name}.gem
|
|
|
|
+<% end -%>
|
|
|
|
<% if config[:sources]
|
|
|
|
config[:sources].each_with_index do |src, i| -%>
|
|
|
|
Source<%= i+1 %>: <%= src %>
|
|
|
|
--
|
2022-12-07 13:28:20 +01:00
|
|
|
2.26.2
|
2016-11-10 17:21:35 +01:00
|
|
|
|