<div dir="ltr"><font face="arial, helvetica, sans-serif">I've reviewed <a href="https://fedoraproject.org/wiki/Packaging:AppData">Packaging:AppData</a> and have some questions.</font><div><pre class="" id="comment_text_7" style="white-space:pre-wrap;word-wrap:break-word;width:50em;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">When running fedpkg lint, I receive:
<b>copyq.x86_64: E: invalid-appdata-file /usr/share/appdata/copyq.appdata.xml</b></font></pre><pre class="" id="comment_text_7" style="white-space:pre-wrap;word-wrap:break-word;width:50em;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">I then issue appstream-util validate copyq.appdata.xml and receive:
<b>copyq.appdata.xml: FAILED:
• tag-missing : <name> is not present
• tag-missing : <summary> is not present
Validation of files failed</b>
However, when I run appstream-util validate-relax, it passes.
The guidelines indicate you MUST follow the <a href="http://people.freedesktop.org/~hughsient/appdata/">AppData Specification Page</a>; but it doesn't really give an indication of what is required, and what is optional. </font><span style="font-family:arial,sans-serif;color:rgb(34,34,34)">It only says "should"; however:</span></pre></div>If you read the description of <name> and <summary> it says the contents for both of those fields are "usually the same as the<br>desktop file" - which indicates it is known to be a duplicate of what is in the desktop file, but yet implies it is still required - <div>otherwise why bother to point out the correlation to the desktop file. <br><br>Upstream response is if they are duplicated in the desktop file, then they aren't needed in the appdata file. <div><div><br></div><div><div>There is also a <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1185361">bug report</a> which discusses rpmlint and validate-relax. It touches upon the fact that </div><div>validate-relax may be missing some things, but doesn't appear to reach any conclusion.</div><div><br></div><div>The Fedora guidelines say to use "validate-relax", but rpmlint appears to use "validate". Which </div><div>is correct? Is <name> and <summary> optional or required? </div><div><br></div><div><br></div><div class="gmail_extra" style="font-size:12.8px"><br></div><div class="gmail_extra" style="font-size:12.8px"><br></div></div></div></div></div>