diff --git a/rubygem-gem2rpm.changes b/rubygem-gem2rpm.changes index 4331ca8..e11bb3d 100644 --- a/rubygem-gem2rpm.changes +++ b/rubygem-gem2rpm.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Wed Jan 29 08:48:40 UTC 2025 - Marcus Rueckert + +- 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 diff --git a/rubygem-gem2rpm.spec b/rubygem-gem2rpm.spec index 443c09f..17e880f 100644 --- a/rubygem-gem2rpm.spec +++ b/rubygem-gem2rpm.spec @@ -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 diff --git a/suse.patch b/suse.patch index 67d4e58..14d5fc5 100644 --- a/suse.patch +++ b/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 %>