Omit SourceLicense tag when using vendor tarball

When using vendored dependencies, the licenses in the sources will
typically match the licenses in the binaries.  In this scenario the
SourceLicense tag can be omitteed since it should match the License tag.
This commit is contained in:
Carl George 2024-05-30 20:02:11 -05:00 committed by decathorpe
parent 1ff3e433a4
commit bf705f2876
2 changed files with 4 additions and 0 deletions

View file

@ -37,11 +37,13 @@ Group: {{ rpm_group }}
{% if crate_license != rpm_license %}
# Upstream license specification: {{ crate_license|default("(missing)") }}
{% endif %}
{% if not use_vendor_tarball %}
{% if rust2rpm_legacy %}
# Source License: {{ rpm_license|default("# FIXME") }}
{% else %}
SourceLicense: {{ rpm_license|default("# FIXME") }}
{% endif %}
{% endif %}
# FIXME: paste output of %%cargo_license_summary here
License: # FIXME
# LICENSE.dependencies contains a full license breakdown

View file

@ -28,11 +28,13 @@ Summary: {{ rpm_summary }}
Group: {{ rpm_group }}
{% endif %}
{% if not use_vendor_tarball %}
{% if rust2rpm_legacy %}
# Source License: {{ rpm_license|default("# FIXME") }}
{% else %}
SourceLicense: {{ rpm_license|default("# FIXME") }}
{% endif %}
{% endif %}
# FIXME: paste output of %%cargo_license_summary here
License: # FIXME
# LICENSE.dependencies contains a full license breakdown