[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-frameworks-devel
Subject:    Re: kaboutlicense api extension ::spdxId()?
From:       Harald Sitter <sitter () kde ! org>
Date:       2017-07-13 10:01:49
Message-ID: CAEc+18Gu4_3gtFRgXBgvxYOV+dpdXrYiHcxzmeaW-02rL3AhZg () mail ! gmail ! com
[Download RAW message or body]

On Tue, Jul 11, 2017 at 2:17 PM, Sebastian K=C3=BCgler <sebas@kde.org> wrot=
e:
> On dinsdag 11 juli 2017 13:41:17 CEST Harald Sitter wrote:
>> I was wondering if anyone had an opinion on extending kaboutlicense
>> with a ::spdxId() instance method returning the license's spdx id [1].
>>
>> Use case at hand is kpackagetool, which maps X-KDE-PluginInfo-License
>> of (e.g.) plasma applets to appstream metadata. Appstream however uses
>> the standardized spdx identifiers so we need a conversion table
>> somewhere. And here I am thinking why not kaboutlicense itself.
>>
>> QString KAboutLicense::spdxId() const
>> {
>>     switch (d->_licenseKey) {
>>     case KAboutLicense::File:
>>         return QStringLiteral("");
>>     case KAboutLicense::GPL_V2:
>>         return QStringLiteral("GPL-2.0");
>>    ...
>> }
>>
>> [1] https://spdx.org/licenses/
>
> This would make sense and allow 3rd party tools using SPDX keys to make s=
ense
> of X-KDE-PluginInfo-License keys, indeed. I think it's useful.

https://phabricator.kde.org/D6672
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic