<div dir="ltr">Yes, that's the custom and/or rule I mentioned. This is not the SPDX license expression format:<div><br></div><div><a href="https://spdx.org/spdx-specification-21-web-version" target="_blank">https://spdx.org/spdx-<wbr>specification-21-web-version</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 31, 2017 at 5:22 PM, Neal Gompa <span dir="ltr"><<a href="mailto:ngompa13@gmail.com" target="_blank">ngompa13@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">No, you're not missing something. AppStream doesn't really have a<br>
great way to represent custom licenses. But license expressions are<br>
supported, as you can see in this example[1]. I suspect the "proper"<br>
way to handle it would be to have the license bundled in the metadata<br>
when "Custom" or "Proprietary" is used, so that the resource is<br>
available for review prior to installing. With the standardized<br>
licenses, usually the software centers render hyperlinks that users<br>
can click to see the terms.<br>
<br>
I'd potentially argue that BSD and MIT licenses would probably need to<br>
be handled the same way, given that copyright owners are declared in<br>
the license text.<br>
<br>
[1]: <a href="https://gitlab.com/osslugaru/lugaru/blob/master/Dist/Linux/lugaru.appdata.xml" rel="noreferrer" target="_blank">https://gitlab.com/osslugaru/l<wbr>ugaru/blob/master/Dist/Linux/l<wbr>ugaru.appdata.xml</a><br>
<div class="m_-4441687053753195173HOEnZb"><div class="m_-4441687053753195173h5"><br>
On Tue, Jan 31, 2017 at 2:03 PM, Gustavo Niemeyer <<a href="mailto:gustavo@niemeyer.net" target="_blank">gustavo@niemeyer.net</a>> wrote:<br>
><br>
> Using the license ids from SPDX seems straightforward, and that's what<br>
> AppStream seems to encourage. But it doesn't mention support for SPDX<br>
> license expressions (has a custom and/or rule), or what to do on custom<br>
> licenses. So the harmony seems shallow, if you see what I mean. Or am I<br>
> missing something?<br>
><br>
> On Tue, Jan 31, 2017 at 4:24 PM, Neal Gompa <<a href="mailto:ngompa13@gmail.com" target="_blank">ngompa13@gmail.com</a>> wrote:<br>
>><br>
>> SUSE has their own list of non-standard references[1], but my<br>
>> understanding is that SPDX is working on making this a bit more<br>
>> flexible in this regard. This was one of the reasons we haven't<br>
>> switched to it in Fedora (the other being the mismatch of BSD/MIT tags<br>
>> to SPDX equivalents). AppStream metainfo files shipped with software<br>
>> include the SPDX license tags[2].<br>
>><br>
>> One of the reasons I personally favor the Fedora tags more is because<br>
>> it's not obnoxious with dealing with classes of licenses. However,<br>
>> AppStream does mandate SPDX, and harmonizing snap metadata with<br>
>> AppStream metadata makes it easier to keep things sane and in sync,<br>
>> especially if developers want to use their metainfo files as input for<br>
>> generating parts of the snap metadata. Of course, maintaining harmony<br>
>> does not imply that SPDX license tags need to be used in snap data,<br>
>> only that some kind of automatic mapping from SPDX to another system<br>
>> is available. Richard Hughes' appstream-glib (used by GNOME/Ubuntu<br>
>> Software) has such a mechanism for going from Fedora/SUSE-classic to<br>
>> SPDX[3], and the other way around is considerably simpler.<br>
>><br>
>> [1]: <a href="https://github.com/openSUSE/obs-service-format_spec_file" rel="noreferrer" target="_blank">https://github.com/openSUSE/ob<wbr>s-service-format_spec_file</a><br>
>> [2]:<br>
>> <a href="https://www.freedesktop.org/software/appstream/docs/chap-Quickstart.html" rel="noreferrer" target="_blank">https://www.freedesktop.org/so<wbr>ftware/appstream/docs/chap-Qui<wbr>ckstart.html</a><br>
>> [3]:<br>
>> <a href="https://github.com/hughsie/appstream-glib/blob/master/libappstream-glib/as-utils.c#L555" rel="noreferrer" target="_blank">https://github.com/hughsie/app<wbr>stream-glib/blob/master/libapp<wbr>stream-glib/as-utils.c#L555</a><br>
>><br>
>> On Tue, Jan 31, 2017 at 11:43 AM, Gustavo Niemeyer<br>
>> <<a href="mailto:gustavo.niemeyer@canonical.com" target="_blank">gustavo.niemeyer@canonical.co<wbr>m</a>> wrote:<br>
>> > That's an interesting idea. Is there a known repository for license<br>
>> > texts<br>
>> > which are not standard? I see SPDX uses a LicenseRef-<ID> kind of<br>
>> > reference, but it's not clear what that is referencing. Just another<br>
>> > field<br>
>> > inside the XML in the case of AppStream, I suppose?<br>
>> ><br>
>> > On Thu, Jan 26, 2017 at 9:58 PM, Neal Gompa <<a href="mailto:ngompa13@gmail.com" target="_blank">ngompa13@gmail.com</a>> wrote:<br>
>> >><br>
>> >> On Thu, Jan 26, 2017 at 5:35 PM, Mark Shuttleworth <<a href="mailto:mark@ubuntu.com" target="_blank">mark@ubuntu.com</a>><br>
>> >> wrote:<br>
>> >> ><br>
>> >> > We should allow a plaintext field there for this situation. Yes, go<br>
>> >> > ahead with "Other open source".<br>
>> >> ><br>
>> >><br>
>> >> It would probably make sense to support SPDX license tags and<br>
>> >> expressions[1]. This is used in AppStream, so a great amount of<br>
>> >> software is already classified in this manner. Furthermore, openSUSE<br>
>> >> uses SPDX tags for their license metadata for packages, and Debian<br>
>> >> uses a subset of it as part of the copyright file structure in Debian<br>
>> >> Source Control packaging.<br>
>> >><br>
>> >> While we in Fedora use our own license tag list[2] that predates SPDX<br>
>> >> (used by a great deal of Linux distributions), we maintain a mapping<br>
>> >> to SPDX for AppStream support.<br>
>> >><br>
>> >> Having verifiable license information (either Fedora style or SPDX<br>
>> >> style) is also useful for ensuring things are "compatible" or<br>
>> >> "desired" on a system, depending on whatever preference you may have.<br>
>> >><br>
>> >> [1]: <a href="https://spdx.org/licenses/" rel="noreferrer" target="_blank">https://spdx.org/licenses/</a><br>
>> >> [2]:<br>
>> >> <a href="https://fedoraproject.org/wiki/Licensing:Main#Software_License_List" rel="noreferrer" target="_blank">https://fedoraproject.org/wiki<wbr>/Licensing:Main#Software_Licen<wbr>se_List</a><br>
>> >><br>
>> >> --<br>
>> >> 真実はいつも一つ!/ Always, there's only one truth!<br>
>> >><br>
>> >> --<br>
>> >> Snapcraft mailing list<br>
>> >> <a href="mailto:Snapcraft@lists.snapcraft.io" target="_blank">Snapcraft@lists.snapcraft.io</a><br>
>> >> Modify settings or unsubscribe at:<br>
>> >> <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailm<wbr>an/listinfo/snapcraft</a><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > gustavo @ <a href="http://niemeyer.net" rel="noreferrer" target="_blank">http://niemeyer.net</a><br>
>> ><br>
>> > --<br>
>> > Snapcraft mailing list<br>
>> > <a href="mailto:Snapcraft@lists.snapcraft.io" target="_blank">Snapcraft@lists.snapcraft.io</a><br>
>> > Modify settings or unsubscribe at:<br>
>> > <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailm<wbr>an/listinfo/snapcraft</a><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> 真実はいつも一つ!/ Always, there's only one truth!<br>
>><br>
>> --<br>
>> Snapcraft mailing list<br>
>> <a href="mailto:Snapcraft@lists.snapcraft.io" target="_blank">Snapcraft@lists.snapcraft.io</a><br>
>> Modify settings or unsubscribe at:<br>
>> <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailm<wbr>an/listinfo/snapcraft</a><br>
><br>
><br>
><br>
><br>
> --<br>
><br>
> gustavo @ <a href="http://niemeyer.net" rel="noreferrer" target="_blank">http://niemeyer.net</a><br>
><br>
> --<br>
> Snapcraft mailing list<br>
> <a href="mailto:Snapcraft@lists.snapcraft.io" target="_blank">Snapcraft@lists.snapcraft.io</a><br>
> Modify settings or unsubscribe at:<br>
> <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailm<wbr>an/listinfo/snapcraft</a><br>
><br>
<br>
<br>
<br>
--<br>
真実はいつも一つ!/ Always, there's only one truth!<br>
<br>
--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io" target="_blank">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailm<wbr>an/listinfo/snapcraft</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-4441687053753195173gmail_signature" data-smartmail="gmail_signature"><br>gustavo @ <a href="http://niemeyer.net" target="_blank">http://niemeyer.net</a></div>
</div></div>