On Mon, May 29, 2023 at 9:32 AM Vitaly Zaitsev via devel
<devel@lists.fedoraproject.org> wrote:
>
> On 28/05/2023 17:41, Fabio Valentini wrote:
> > At least for Rust packages, we do have some amount of automation now
> > to help with this chore.
>
> I think %autolicense should be added to the rpmautospec project. It will
> automatically extract license tags from all BRs "-static" or "crate()"
> and concatenate them with AND.
>
> Example:
> # main project - MIT
> License: MIT AND %autolicense
>
> In future it will be able to use some license validators and replace the
> entire License tag:
>
> License: %autolicense

I don't think values of tags like License can be filled based on
information that's only available during %build ...
It might be possible with the shiny new build-time spec fragment
generation, but I'm not even sure about that.

What we have for Rust packages now is basically the "next best thing"
(the %cargo_license_summary macro prints to the build log, from where
you can paste the information into the spec file after a successful
build). It shouldn't be too hard to implement something similar for
statically linked C/C++ / header-only C/C++ libraries / Go packages /
insert other use case of statically linked binaries here.

Fabio
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to