Accepting request 1241127 from devel:languages:ruby
- add new gem2rpm.yml setting to have the runtime deps as buildrequires: :runtime_deps_as_buildrequires: true disabled by default implements https://github.com/openSUSE/gem2rpm/issues/20 OBS-URL: https://build.opensuse.org/request/show/1241127 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rubygem-gem2rpm?expand=0&rev=37
This commit is contained in:
commit
487fb7b776
@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 29 08:48:40 UTC 2025 - Marcus Rueckert <mrueckert@suse.de>
|
||||
|
||||
- add new gem2rpm.yml setting to have the runtime deps as
|
||||
buildrequires:
|
||||
|
||||
:runtime_deps_as_buildrequires: true
|
||||
|
||||
disabled by default
|
||||
|
||||
implements https://github.com/openSUSE/gem2rpm/issues/20
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 27 04:49:23 UTC 2024 - Marcus Rueckert <mrueckert@suse.de>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package rubygem-gem2rpm
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
|
13
suse.patch
13
suse.patch
@ -103,10 +103,10 @@ index 736a645..a794436 100755
|
||||
end
|
||||
diff --git a/gem2rpm.yml.documentation b/gem2rpm.yml.documentation
|
||||
new file mode 100644
|
||||
index 0000000..2d4adf0
|
||||
index 0000000..ba7bc0f
|
||||
--- /dev/null
|
||||
+++ b/gem2rpm.yml.documentation
|
||||
@@ -0,0 +1,76 @@
|
||||
@@ -0,0 +1,81 @@
|
||||
+# ---
|
||||
+# ## used by gem2rpm
|
||||
+# :summary: this is a custom summary
|
||||
@ -130,6 +130,11 @@ index 0000000..2d4adf0
|
||||
+# BuildRequires: foobar
|
||||
+# Requires: foobar
|
||||
+# ## used by gem2rpm
|
||||
+# ## adds runtime deps of the gem as buildrequires to check if the package is installable
|
||||
+# ## only use this with leaf packages, if you enable it for everything it will slow down building
|
||||
+# ## as not as many packages can be be build in parallel
|
||||
+# :runtime_deps_as_buildrequires: true
|
||||
+# ## used by gem2rpm
|
||||
+# :patches:
|
||||
+# foo.patch: -p1
|
||||
+# bar.patch:
|
||||
@ -578,7 +583,7 @@ index 0000000..10b1d70
|
||||
+ end
|
||||
+-%>
|
||||
diff --git a/templates/opensuse.spec.erb b/templates/opensuse.spec.erb
|
||||
index 37de592..eb7e84c 100644
|
||||
index 37de592..dba198a 100644
|
||||
--- a/templates/opensuse.spec.erb
|
||||
+++ b/templates/opensuse.spec.erb
|
||||
@@ -1,7 +1,12 @@
|
||||
@ -660,7 +665,7 @@ index 37de592..eb7e84c 100644
|
||||
+<% end -%>
|
||||
+<% end -%>
|
||||
+<% for d in spec.runtime_dependencies -%>
|
||||
+<% if ['rdoc'].include? d.name.to_s -%>
|
||||
+<% if ['rdoc'].include?(d.name.to_s) or config[:runtime_deps_as_buildrequires] -%>
|
||||
+# <%= d.name %> <%= d.__getobj__().requirement %>
|
||||
<% for req in d.requirement -%>
|
||||
-BuildRequires: rubygem-<%= d.name %> <%= req %>
|
||||
|
Loading…
x
Reference in New Issue
Block a user