[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: parse SPDX-License-Identifier to produce copyright file



Thank you for your suggestions. I'll give it a try.

Fab


Le 24 août 2022 20:52:25 GMT+02:00, Ryan Pavlik <ryan.pavlik@gmail.com> a écrit :
Better yet, if you use the REUSE tool to extract an SPDX file, this
utility I wrote can coalesce it into a more human-usable DEP5-format
debian/copyright file:

https://github.com/rpavlik/spdx-to-dep5

It's not suitable for use directly in a package, but it's a good
starting point and can be filled out further.

Allegedly SPDX support is in progress for the normal Debian license
scanning toolchain (used by cme among other tools) but I'm not sure of
the status nor do I have a bug number immediately available.

Ryan

On Mon, Aug 22, 2022 at 2:26 PM Dominik George <natureshadow@debian.org> wrote:

Hi,


Does there exist a tool for Debian that will parse a package directory (its
source files), extract the "SPDX-License-Identifier:" and produce something
that would fit into a machine-readable debian/copyright file?

AFAIK, the reuse tool (which also generates these annoying headers) can do that. At least, it has some sort of DEP-5 mode.

-nik


Reply to: