Revision 9e31024d
Added by Ewoud Kohl van Wijngaarden about 6 years ago
gem2rpm/smart_proxy_plugin.spec.erb | ||
---|---|---|
# 2. Delete these lines
|
||
#
|
||
# Generated from <%= package.spec.file_name %> by gem2rpm -*- rpm-spec -*-
|
||
# template: smart_proxy_plugin
|
||
%global gem_name <%= spec.name %>
|
||
%global plugin_name <%= spec.name.sub(/\Asmart_proxy_/, '') %>
|
||
|
||
... | ... | |
URL: <%= spec.homepage %>
|
||
<% end -%>
|
||
Source0: <%= download_path %>%{gem_name}-%{version}.gem
|
||
|
||
# start generated dependencies
|
||
Requires: foreman-proxy >= %{foreman_proxy_min_version}
|
||
Requires: ruby(release)
|
||
<% for req in spec.required_ruby_version -%>
|
||
... | ... | |
<% end -%>
|
||
Provides: rubygem(%{gem_name}) = %{version}
|
||
Provides: foreman-proxy-plugin-%{plugin_name}
|
||
# end generated dependencies
|
||
|
||
%description
|
||
<%= spec.description %>
|
Also available in: Unified diff
Implement generating dependencies while bumping gems
This extends the update-node-dependencies model to be generic. It can
now parse files with begin and end markers to get sections. This can
then be inserted in another file with matching markers.
The intended use case is calling gem2rpm to generate new dependencies
and then inserting those in the trivially bumped specfile. This allows
automating bumping while keeping manual changes. bump_rpm.sh has been
modified to take advantage of this but currently most spec files lack
the needed headers.