Bug#973469: licensecheck: extract licenses from SVG files

Andrius Merkys merkys at debian.org
Sat Oct 31 06:20:11 GMT 2020


Package: licensecheck
Severity: wishlist

Hello,

SVG files sometimes contain licensing information, for example [1]:

      <cc:Work
         rdf:about="">
        <dc:format>image/svg+xml</dc:format>
        <dc:type
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
        <cc:license
           rdf:resource="http://creativecommons.org/licenses/GPL/2.0/" />
        <dc:title>Hard disk</dc:title>
        <dc:creator>
          <cc:Agent>
            <dc:title>Luca Ferretti <elle.uca at libero.it></dc:title>
          </cc:Agent>
        </dc:creator>
        <dc:contributor>
          <cc:Agent>
            <dc:title>Shape based on exising PNG icon in
gnome-icon-theme</dc:title>
          </cc:Agent>
        </dc:contributor>
        <dc:subject>
          <rdf:Bag>
            <rdf:li>hard disk</rdf:li>
          </rdf:Bag>
        </dc:subject>
      </cc:Work>
      <cc:License
         rdf:about="http://creativecommons.org/licenses/GPL/2.0/">
        <cc:permits
           rdf:resource="http://web.resource.org/cc/Reproduction" />
        <cc:permits
           rdf:resource="http://web.resource.org/cc/Distribution" />
        <cc:requires
           rdf:resource="http://web.resource.org/cc/Notice" />
        <cc:permits
           rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
        <cc:requires
           rdf:resource="http://web.resource.org/cc/ShareAlike" />
        <cc:requires
           rdf:resource="http://web.resource.org/cc/SourceCode" />
      </cc:License>

It would be nice if licensecheck could extract license and copyright
owner from this file. To do so, XPath analysis should be sufficient.

Best,
Andrius

[1]
https://sources.debian.org/src/mate-themes/3.22.21-1/icon-themes/ContrastHigh/scalable/devices/drive-removable-media.svg/?hl=16#L16



More information about the pkg-perl-maintainers mailing list