Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to spdx_id_to_rpmspec.py #74

Open
dvershinin opened this issue Mar 13, 2022 · 2 comments
Open

Updates to spdx_id_to_rpmspec.py #74

dvershinin opened this issue Mar 13, 2022 · 2 comments
Labels
good first issue Good for newcomers

Comments

@dvershinin
Copy link
Owner

This file spdx_id_to_rpmspec.py contains the mapping between GitHub's spdx_id to Fedora approved short license names.

It will be used when updating a .spec file and automatically filling out the proper License: tag for a release.

Currently, it includes only a fraction of all licenses.

@dvershinin dvershinin added the good first issue Good for newcomers label Mar 13, 2022
@Nightfurex
Copy link

Hey can you please tell me what other tags need to added

@dvershinin
Copy link
Owner Author

@Nightfurex basically need to create a sensible mapping from this table's "Identifier" column to this table's "Short Name" column, so e.g. updated file should be like so:

# Maps SPDX ID from https://spdx.org/licenses/
# to corresponding short name license as recommended by Fedora
# https://fedoraproject.org/wiki/Licensing:Main?rd=Licensing#Good_Licenses
rpmspec_licenses = {
   'Apache-2.0': 'APSL 2.0',
   'BSD-2-Clause': 'BSD',
   'MIT': 'MIT',
   # new lines example
   'AFL-1.1': 'AFL',
   'AFL-1.2': 'AFL',
   'Beerware': 'Beerware',
}

So for every SPDX "Identifier" that "exists" in the Fedora Short names list, the mapping should be added to that short name.

dvershinin added a commit that referenced this issue Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants