Re: [SPDX] packages that are "not valid neither as Callaway nor as SPDX"

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

 



Dne 06. 09. 24 v 12:16 odp. Petr Pisar napsal(a):
$ rpmspec -q --qf '%{license}\n' perl-License-Syntax.spec
GPL-1.0-or-later OR Artistic-1.0-Perl

This is not as easy as I thought. While this works for simply packages using %shrink:

$ rpmspec -q --qf '%{license}\n' rpm-specs/python-graph-tool.spec
LGPL-3.0-or-later AND BSL-1.0 AND BSD-3-Clause AND GPL-3.0-or-later AND MIT AND (MIT OR Apache-2.0)
LGPL-3.0-or-later AND BSL-1.0 AND BSD-3-Clause AND GPL-3.0-or-later AND MIT AND (MIT OR Apache-2.0)
LGPL-3.0-or-later AND BSL-1.0

It fails for others packages:

$ LC_ALL=C rpmspec -q --qf '%{license}\n' ruby.spec
error: ruby.spec: line 241: failed to load macro file /home/msuchy/rpmbuild/SOURCES/macros.ruby
error: query of specfile ruby.spec failed, can't parse

It fails even when I do this query in dist-git checkout.

So I tried to write simple script utilizing python-specfile: https://pagure.io/copr/license-validate/blob/main/f/print-spec-license.py

But it fails too:

$ ./print-spec-license.py rpm-specs/python-graph-tool.spec
%{shrink:
LGPL-3.0-or-later AND BSL-1.0

I reported it as https://github.com/packit/specfile/issues/410

But for now I am running out of ideas.

--
Miroslav Suchy, RHCA
Red Hat, Manager, Packit and CPT, #brno, #fedora-buildsys

--
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux