This file is indexed.

/usr/share/doc/appstream/html/chap-Metadata.html is in appstream-doc 0.10.6-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title xmlns:d="http://docbook.org/ns/docbook">Chapter 2. Upstream Metadata</title><link rel="stylesheet" type="text/css" href="Common_Content/css/default.css" /><link rel="stylesheet" media="print" href="Common_Content/css/print.css" type="text/css" /><meta xmlns:d="http://docbook.org/ns/docbook" name="generator" content="publican v4.3.2" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="AppStream-AppStream-0.10-en-US-0.0-0" /><link rel="home" href="index.html" title="AppStream" /><link rel="up" href="index.html" title="AppStream" /><link rel="prev" href="chap-AppStream-About.html" title="Chapter 1. About AppStream" /><link rel="next" href="sect-Metadata-Application.html" title="2.2. Desktop Applications" /></head><body><p id="title"><a class="left" href="http://www.freedesktop.org/wiki/Distributions/AppStream/"><img alt="Product Site" src="Common_Content/images//image_left.png" /></a><a class="right" href="http://www.freedesktop.org/software/appstream/docs/"><img alt="Documentation Site" src="Common_Content/images//image_right.png" /></a></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="chap-AppStream-About.html"><strong>Prev</strong></a></li><li class="home">AppStream</li><li class="next"><a accesskey="n" href="sect-Metadata-Application.html"><strong>Next</strong></a></li></ul><div xml:lang="en-US" class="chapter" lang="en-US"><div class="titlepage"><div><div><h1 class="title"><a id="chap-Metadata"></a>Chapter 2. Upstream Metadata</h1></div></div></div><div class="toc"><dl class="toc"><dt><span class="section"><a href="chap-Metadata.html#sect-Metadata-GenericComponent">2.1. Generic Component</a></span></dt><dt><span class="section"><a href="sect-Metadata-Application.html">2.2. Desktop Applications</a></span></dt><dt><span class="section"><a href="sect-Metadata-ConsoleApplication.html">2.3. Console Applications</a></span></dt><dt><span class="section"><a href="sect-Metadata-Addon.html">2.4. Addons</a></span></dt><dt><span class="section"><a href="sect-Metadata-Fonts.html">2.5. Fonts</a></span></dt><dt><span class="section"><a href="sect-Metadata-Codec.html">2.6. Codecs</a></span></dt><dt><span class="section"><a href="sect-Metadata-InputMethod.html">2.7. Input Methods</a></span></dt><dt><span class="section"><a href="sect-Metadata-Firmware.html">2.8. Firmware</a></span></dt><dt><span class="section"><a href="sect-Metadata-Driver.html">2.9. Driver</a></span></dt><dt><span class="section"><a href="sect-Metadata-Localization.html">2.10. Localization</a></span></dt></dl></div><div class="para">
		AppStream allows upstream projects to define metadata about the components they provide using small XML files, metainfo files, which get installed into locations on the client system and are used by distribuors to enhance their metadata.
	</div><div class="para">
		A "component" is a piece of software, like an application, a library, a font or a codec. For several components, especially those which are shown in software-centers, we provide specialized metainfo files to define specific properties and data of these components. For example, applications and fonts support screenshots, while codecs don't.
	</div><div class="para">
		All metainfo files need to contain a minimal amount of information, defined in the "Generic Component" section, which also describes some optional elements which can be used. Specialized components might require more information to be complete and valid.
	</div><div class="para">
		The XML in metainfo files does not need any XML namespace, and adding one should generally be avoided. If you want to use a namespace though (maybe in case you want to embed the data in other contexts), the xmlns should be <code class="code">https://specifications.freedesktop.org/metainfo/1.0</code>.
	</div><div xml:lang="en-US" class="section" lang="en-US"><div class="titlepage"><div><div><h2 class="title"><a id="sect-Metadata-GenericComponent"></a>2.1. Generic Component</h2></div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="spec-component-introduction"></a>2.1.1. Introduction</h3></div></div></div><div class="para">
			For a distribution, it is good to know more about the content of a package. Which public interfaces (libraries? Python modules?) does it provide? Does it contain codecs? Does it contain firmware? Fonts? An application? All of this information can be used to automatically install missing software or to offer users a choice on what they want to install from a software center.
		</div><div class="para">
			To provide this information, we created the <span class="italic italic">metainfo</span> files, which allow <span class="bold bold"><strong>upstream projects</strong></span> to describe the content of their software package. If a metainfo file contains a <code class="literal">&lt;provides/&gt;</code> tag, distributors must also ensure that the package providing the file contains all items referenced by that statement, or is installed by a metapackage depending on packages which provide these items. This gives upstream projects a (very light) way to influence distributor packaging. More information about that can be found below.
		</div><div class="para">
			Several specialized component-metainfo files exist, for example for applications or fonts. These are all based on this generic component XML specification, and are described in the following chapters.
		</div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="spec-component-location"></a>2.1.2. Filesystem locations</h3></div></div></div><div class="para">
			Upstream projects can ship one or more metainfo files in <code class="filename">/usr/share/metainfo/%{id}.metainfo.xml</code>, where <code class="literal">id</code> is a unique identifier of this specific component.
		</div><div xmlns:d="http://docbook.org/ns/docbook" class="note"><div class="admonition_header"><p><strong>Note</strong></p></div><div class="admonition"><div class="para">
				Applications are a special case here, because they are usually treated differently by software centers (and also for historical reasons). If your metainfo file contains an application, as described in <a class="xref" href="sect-Metadata-Application.html">Section 2.2, “Desktop Applications”</a>, you may want to install it as <code class="filename">/usr/share/metainfo/%{id}.appdata.xml</code>.
			</div></div></div><div xmlns:d="http://docbook.org/ns/docbook" class="important"><div class="admonition_header"><p><strong>Legacy Path</strong></p></div><div class="admonition"><div class="para">
				The <code class="filename">/usr/share/appdata/</code> path must be scanned by AppStream tools as well, to support legacy applications installing metadata there. For new software components, it is advised not to use this directory.
			</div></div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="spec-component-filespec"></a>2.1.3. XML Specification</h3></div></div></div><div class="para">
			The XML for a generic component definition starts with a <code class="code">&lt;component&gt;</code> tag as the root element. The <code class="code">&lt;component&gt;</code> element must at least have an <code class="literal">id</code>, <code class="literal">name</code> and <code class="literal">releases</code> tag; and a <code class="literal">provides</code> tag with appropriate children is highly recommended. All possible tags in the generic set are:
		</div><div class="variablelist"><dl class="variablelist"><dt><a id="tag-id-generic"></a><span class="term">&lt;id/&gt;</span></dt><dd><div class="para">
						The <code class="code">&lt;id&gt;</code> tag is a unique identifier for this component. It must contain only ASCII characters, dots, hyphens and numbers. Spaces are not allowed.
					</div><div class="para">
						The ID must follow a reverse-DNS scheme, consisting of <code class="literal">{tld}.{vendor}.{product}</code>, for example <code class="code">org.kde.Gwenview</code> or <code class="code">com.hugski.ColorHug2</code>. Ownership of <code class="literal">{vendor}.{tld}</code> in the domain name system guarantees uniqueness of IDs.
					</div><div class="para">
						To increase the uniqueness and to distinguish between different pieces of a software suite, it is suggested to append the type name to the component-id in these cases. For example, one can use <code class="code">com.hugski.ColorHug2</code> for the client tools to control hardware, and <code class="code">com.hugski.ColorHug2.firmware</code> for the runtime firmware files.
					</div><div class="para">
						Note that the value of this tag must be <span class="emphasis"><em>unique</em></span> across all distributions and software deployment platforms. In case it is not unique, distributors are expected to reject the conflicting components from inclusion into their metadata and notify the upstream projects about this issue.
					</div></dd><dt><a id="tag-metadata_license"></a><span class="term">&lt;metadata_license/&gt;</span></dt><dd><div class="para">
						The <code class="code">&lt;metadata_license/&gt;</code> tag indicates the content license that you are releasing the one Metainfo XML file under. This is typically not the same as the project license. Omitting the license value can result in your data not being incorporated into the distribution metadata (so this is a required tag).
					</div><div class="para">
						A permissive license ensures your data can be combined with arbitrary other data in one file. Permissive license names include:
					</div><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para">
								<code class="literal">CC0-1.0</code>
							</div></li><li class="listitem"><div class="para">
								<code class="literal">CC-BY-3.0</code>
							</div></li><li class="listitem"><div class="para">
								<code class="literal">CC-BY-SA-3.0</code>
							</div></li><li class="listitem"><div class="para">
								<code class="literal">GFDL-1.3</code>
							</div></li><li class="listitem"><div class="para">
								<code class="literal">MIT</code>
							</div></li><li class="listitem"><div class="para">
								<code class="literal">FSFAP</code>
							</div></li></ul></div><div class="para">
						The license codes correspond to the identifiers found at the <a href="http://spdx.org/licenses/">SPDX OpenSource License Registry</a>. For instance, <code class="literal">CC-BY-SA-3.0</code> corresponds to the license at <a href="http://creativecommons.org/licenses/by-sa/3.0/">creativecommons.org/licenses/by-sa/3.0</a>.
					</div></dd><dt><a id="tag-name"></a><span class="term">&lt;name/&gt;</span></dt><dd><div class="para">
						A human-readable name for this software component. For example, if the component ID was "libc", its name might be "GNU Standard C Library".
					</div></dd><dt><a id="tag-summary"></a><span class="term">&lt;summary/&gt;</span></dt><dd><div class="para">
						A short summary of what this component does. If the component is "PackageKit", the summary could be "Provides a package-management abstraction layer".
					</div></dd><dt><a id="tag-description"></a><span class="term">&lt;description/&gt;</span></dt><dd><div class="para">
						A long description of this component. Some markup can be used.
					</div><div class="para">
						Do not assume the format is HTML. Only paragraph (<code class="literal">p</code>), ordered list (<code class="literal">ol</code>) and unordered list (<code class="literal">ul</code>) are supported at this time.
					</div><div class="para">
						In metainfo files, this tag should be translated by-paragraph, meaning that in a translated file, each translated <code class="literal">&lt;p/&gt;</code> child has a language property.
					</div></dd><dt><a id="tag-categories"></a><span class="term">&lt;categories/&gt;</span></dt><dd><div class="para">
						This tag can contain one or more <code class="code">&lt;category&gt;&gt;</code> entries, describing the categories this software component is associated with. This tag is usually applied to components of type <code class="literal">desktop-application</code>, but can be used with any component. A list of valid category names can be found in the <a href="http://standards.freedesktop.org/menu-spec/latest/apa.html">Freedesktop menu spec</a>. Example:
					</div><pre class="programlisting"><span xmlns="" class="line"></span><span xmlns="" class="perl_Keyword">&lt;categories&gt;</span>
<span xmlns="" class="line"></span>    <span xmlns="" class="perl_Keyword">&lt;category&gt;</span>Game<span xmlns="" class="perl_Keyword">&lt;/category&gt;</span>
<span xmlns="" class="line"></span>    <span xmlns="" class="perl_Keyword">&lt;category&gt;</span>ArcadeGame<span xmlns="" class="perl_Keyword">&lt;/category&gt;</span>
<span xmlns="" class="line"></span><span xmlns="" class="perl_Keyword">&lt;/categories&gt;</span></pre></dd><dt><a id="tag-url"></a><span class="term">&lt;url/&gt;</span></dt><dd><div class="para">
						Defines web URLs for this component.There are several different URL types allowed:
					</div><div class="variablelist"><dl class="variablelist"><dt><span class="term">homepage</span></dt><dd><div class="para">
									Should be a link to the upstream homepage for the component.
								</div></dd><dt><span class="term">bugtracker</span></dt><dd><div class="para">
									Should point to the software's bug tracking system, for users to report new bugs.
								</div></dd><dt><span class="term">faq</span></dt><dd><div class="para">
									Should link a FAQ page for this software, to answer some of the most-asked questions in detail, something which you cannot do in the component's description.
								</div></dd><dt><span class="term">help</span></dt><dd><div class="para">
									Should provide a web link to an online user's reference, a software manual or help page.
								</div></dd><dt><span class="term">donation</span></dt><dd><div class="para">
									URLs of this type should point to a webpage showing information on how to donate to the described software project.
								</div></dd><dt><span class="term">translate</span></dt><dd><div class="para">
									URLs of this type should point to a webpage where users can submit or modify translations of the upstream project.
								</div><div class="para">
									Typically this should be a link to the project page in Weblate, Transifex or Zanata, but could also be a link to an upstream-hosted wiki page describing how to send translations upstream.
								</div></dd></dl></div></dd><dt><a id="tag-releases"></a><span class="term">&lt;releases/&gt;</span></dt><dd><div class="para">
						The <code class="code">&lt;releases&gt;</code> tag contains <code class="code">&lt;release/&gt;</code> child tags which describe some metainformation about the current release of the described software. The <code class="code">&lt;release/&gt;</code> tag may be present multiple times (for older releases), but a tag for the current version must always be present.
					</div><div class="para">
						A <code class="literal">release</code> tag can have the properties <code class="literal">version</code>, <code class="literal">date</code> and <code class="literal">timestamp</code>. The <code class="literal">date</code> property can have any time in <a href="https://en.wikipedia.org/wiki/ISO_8601">ISO 8601</a> format as its value and should be present for every release. The <code class="literal">timestamp</code> tag contains the release time in the form of a UNIX epoch. This tag should not be used in metainfo files in newly written metadata, but will still be parsed in case it is present. The the <code class="literal">timestamp</code> property is mainly used in generated distro-metadata. In case both release-time tags are present, the <code class="literal">timestamp</code> tag will take precedence over <code class="literal">date</code>.
					</div><div class="para">
						Optionally, the <code class="code">&lt;release/&gt;</code> tag may also have an <code class="literal">urgency</code> property, having one of the following values:
					</div><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para">
								<code class="literal">low</code>
							</div></li><li class="listitem"><div class="para">
								<code class="literal">medium</code>
							</div></li><li class="listitem"><div class="para">
								<code class="literal">high</code>
							</div></li><li class="listitem"><div class="para">
								<code class="literal">critical</code>
							</div></li></ul></div><div class="para">
						The <code class="literal">urgency</code> defines how important it is to install the new release as an update. This is especially important for <code class="literal">type=firmware</code> components. If no urgency is defined, a <code class="code">medium</code> urgency is implicitly assumed. The urgency defines how the update will be presented to the user, and sometimes if it will be installed automatically and immediately, or delayed.
					</div><div class="para">
						Each <code class="literal">release</code> tag may have a <code class="literal">description</code> tag as child, containing a brief description of what is new in the release. The <code class="literal">description</code> tag is structured as described in <a class="xref" href="chap-Metadata.html#tag-description">&lt;description/&gt;</a>.
					</div><div class="para">
						A <code class="literal">release</code> tag may also have one or multiple <code class="literal">size</code> tags as children, which define the installed and download size of this component release. This is useful in case the component does not have a corresponding native package in a distribution, for example if it is a Limba bundle or LVFS firmware. The size type is defined via a <code class="literal">type</code> property on the <code class="literal">size</code> tag, and may assume the value <code class="code">download</code> or <code class="code">installed</code>. The size itself is set as the value and must be given in bytes.
					</div><div class="para">
						Examples for a valid releases tag:
					</div><pre class="programlisting"><span xmlns="" class="line"></span><span xmlns="" class="perl_Keyword">&lt;releases&gt;</span>
<span xmlns="" class="line"></span>  <span xmlns="" class="perl_Keyword">&lt;release</span><span xmlns="" class="perl_Others"> version=</span><span xmlns="" class="perl_String">"1.2"</span><span xmlns="" class="perl_Others"> date=</span><span xmlns="" class="perl_String">"2014-04-12"</span><span xmlns="" class="perl_Others"> urgency=</span><span xmlns="" class="perl_String">"high"</span><span xmlns="" class="perl_Keyword">&gt;</span>
<span xmlns="" class="line"></span>    <span xmlns="" class="perl_Keyword">&lt;size</span><span xmlns="" class="perl_Others"> type=</span><span xmlns="" class="perl_String">"download"</span><span xmlns="" class="perl_Keyword">&gt;</span>12345678<span xmlns="" class="perl_Keyword">&lt;/size&gt;</span>
<span xmlns="" class="line"></span>    <span xmlns="" class="perl_Keyword">&lt;size</span><span xmlns="" class="perl_Others"> type=</span><span xmlns="" class="perl_String">"installed"</span><span xmlns="" class="perl_Keyword">&gt;</span>42424242<span xmlns="" class="perl_Keyword">&lt;/size&gt;</span>
<span xmlns="" class="line"></span>  <span xmlns="" class="perl_Keyword">&lt;/release&gt;</span>
<span xmlns="" class="line"></span>  <span xmlns="" class="perl_Keyword">&lt;release</span><span xmlns="" class="perl_Others"> version=</span><span xmlns="" class="perl_String">"1.0"</span><span xmlns="" class="perl_Others"> date=</span><span xmlns="" class="perl_String">"2012-08-26"</span> <span xmlns="" class="perl_Keyword">/&gt;</span>
<span xmlns="" class="line"></span><span xmlns="" class="perl_Keyword">&lt;/releases&gt;</span></pre></dd><dt><a id="tag-provides"></a><span class="term">&lt;provides/&gt;</span></dt><dd><div class="para">
						The <code class="literal">provides</code> tag and its children describe the public interfaces this application provides. A public interface can be anything which other applications, which are not part of the upstream project, can access or reference. This includes binaries and libraries. Private interfaces should never be added to a <code class="literal">provides</code> tag.
					</div><div class="para">
						A <code class="literal">provides</code> tag contain a number of children describing the type and name of the provided public interface items. It is suggested that the build system auto-generates this tag and its children. Currently allowed item types are listed below. If you miss something, <a href="https://github.com/ximion/appstream/issues/new">file a bug against AppStream</a> so we can add the new type.
					</div><div class="variablelist"><dl class="variablelist"><dt><span class="term">&lt;library/&gt;</span></dt><dd><div class="para">
									Contains the name of a shared library placed in a publicly accessible library path, such as <code class="filename">/usr/lib</code>, <code class="filename">/usr/lib/&lt;triplet&gt;</code> or <code class="filename">/lib</code>. For example, for the libappstream library, the value for <code class="literal">library</code> would be <strong class="userinput"><code>libappstream.so.1</code></strong>.
								</div></dd><dt><span class="term">&lt;binary/&gt;</span></dt><dd><div class="para">
									Name of a binary installed into a location in <code class="envar">PATH</code>.
								</div></dd><dt><span class="term">&lt;font/&gt;</span></dt><dd><div class="para">
									Filename of a font provided by this component. For example <strong class="userinput"><code>Dustismo_Roman.ttf</code></strong>.
								</div><div class="para">
									Example:
								</div><pre class="programlisting"><span xmlns="" class="line"></span><span xmlns="" class="perl_Keyword">&lt;provides&gt;</span>
<span xmlns="" class="line"></span>  <span xmlns="" class="perl_Keyword">&lt;font&gt;</span>LinLibertine_R.otf<span xmlns="" class="perl_Keyword">&lt;/font&gt;</span>
<span xmlns="" class="line"></span><span xmlns="" class="perl_Keyword">&lt;/provides&gt;</span></pre></dd><dt><span class="term">&lt;modalias/&gt;</span></dt><dd><div class="para">
									A modalias glob representing the hardware types (for example USB, PCI, ACPI, DMI) this component handles. Useful for installing printer drivers or other USB protocol drivers for smartphones, firmware, and out of tree kernel drivers.
								</div></dd><dt><span class="term">&lt;firmware/&gt;</span></dt><dd><div class="para">
									This provided element is described in details for the <code class="literal">firmware</code> component type, where it is mandatory. Please see <a class="xref" href="sect-Metadata-Firmware.html#tag-firmware-provides">&lt;provides/&gt;&lt;firmware/&gt;</a> for more information.
								</div></dd><dt><span class="term">&lt;python2/&gt;</span></dt><dd><div class="para">
									Name of a Python 2 module this component provides.
								</div></dd><dt><span class="term">&lt;python3/&gt;</span></dt><dd><div class="para">
									Name of a Python 3 module this component provides.
								</div></dd><dt><span class="term">&lt;dbus/&gt;</span></dt><dd><div class="para">
									Contains the well-known name of a D-Bus service as its value. The type of the service must be specified using the <code class="literal">type</code> property of this tag. Allowed values are <code class="code">user</code> and <code class="code">system</code>.
								</div><div class="para">
									Example:
								</div><pre class="programlisting"><span xmlns="" class="line"></span><span xmlns="" class="perl_Keyword">&lt;provides&gt;</span>
<span xmlns="" class="line"></span>  <span xmlns="" class="perl_Keyword">&lt;dbus</span><span xmlns="" class="perl_Others"> type=</span><span xmlns="" class="perl_String">"system"</span><span xmlns="" class="perl_Keyword">&gt;</span>org.freedesktop.PackageKit<span xmlns="" class="perl_Keyword">&lt;/dbus&gt;</span>
<span xmlns="" class="line"></span><span xmlns="" class="perl_Keyword">&lt;/provides&gt;</span></pre></dd></dl></div></dd><dt><a id="tag-mimetypes"></a><span class="term">&lt;mimetypes/&gt;</span></dt><dd><div class="para">
						This tag can contain one or more <code class="code">&lt;mimetype/&gt;</code> children, describing the MIME types this application supports. This tag is especially useful for generic components and addon-type components. For applications, the metadata will automatically be fetched from their <code class="filename">.desktop</code> files by the distribution's metadata generator. Example:
					</div><pre class="programlisting"><span xmlns="" class="line"></span>
<span xmlns="" class="line"></span><span xmlns="" class="perl_Keyword">&lt;mimetypes&gt;</span>
<span xmlns="" class="line"></span>    <span xmlns="" class="perl_Keyword">&lt;mimetype&gt;</span>text/html<span xmlns="" class="perl_Keyword">&lt;/mimetype&gt;</span>
<span xmlns="" class="line"></span>    <span xmlns="" class="perl_Keyword">&lt;mimetype&gt;</span>image/jpeg<span xmlns="" class="perl_Keyword">&lt;/mimetype&gt;</span>
<span xmlns="" class="line"></span>    <span xmlns="" class="perl_Keyword">&lt;mimetype&gt;</span>application/rss+xml<span xmlns="" class="perl_Keyword">&lt;/mimetype&gt;</span>
<span xmlns="" class="line"></span> <span xmlns="" class="perl_Keyword">&lt;/mimetypes&gt;</span></pre></dd><dt><a id="tag-project_group"></a><span class="term">&lt;project_group/&gt;</span></dt><dd><div class="para">
						If you include the <code class="code">&lt;project_group/&gt;</code> tag then this identifies your project with a specific upstream umbrella project. Known values include <code class="literal">GNOME</code>, <code class="literal">KDE</code>, <code class="literal">XFCE</code>, <code class="literal">MATE</code> and <code class="literal">LXDE</code>, although other umbrella projects like Yorba or Mozilla make sense too.
					</div><div xmlns:d="http://docbook.org/ns/docbook" class="note"><div class="admonition_header"><p><strong>Note</strong></p></div><div class="admonition"><div class="para">
							You should only identify with an umbrella project if you use <span class="emphasis"><em>all</em></span> their infrastructure and policies, for instance string freezes dates, bugtracker and source control instance.
						</div></div></div></dd><dt><a id="tag-project_license"></a><span class="term">&lt;project_license/&gt;</span></dt><dd><div class="para">
						The <code class="code">&lt;project_license/&gt;</code> tag is indicating the license of the component (application/library/addon/font/etc.) described in the metadata document. It should be a string in SPDX format. Licenses may be combined using <span class="emphasis"><em>and</em></span> and <span class="emphasis"><em>or</em></span> logic. Possible values include: 
						<div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para">
									<code class="literal">GPL-2.0</code>
								</div></li><li class="listitem"><div class="para">
									<code class="literal">LGPL-3.0+ and GPL-3.0+</code>
								</div></li><li class="listitem"><div class="para">
									<code class="literal">MIT</code>
								</div></li><li class="listitem"><div class="para">
									<code class="literal">CC-BY-SA-2.0</code>
								</div></li></ul></div>
						 A full list of recognized licenses and their identifiers can be found at the <a href="http://spdx.org/licenses/">SPDX OpenSource License Registry</a>.
					</div><div class="para">
						Although the <code class="literal">project_license</code> tag is not mandatory, it is recommended to include it.
					</div></dd><dt><a id="tag-developer_name"></a><span class="term">&lt;developer_name/&gt;</span></dt><dd><div class="para">
						The <code class="code">&lt;developer_name/&gt;</code> tag is designed to represent the developers or project responsible for development of the project described in the metadata.
					</div><div class="para">
						Values might be for example "The GNOME Foundation" or "The KDE Community". You must not include hyperlinks or emails in this field, if you want to link to the developer's homepage, use the <a class="xref" href="chap-Metadata.html#tag-url">&lt;url/&gt;</a>-tag instead.
					</div><div class="para">
						This tag is translatable.
					</div></dd><dt><a id="tag-screenshots"></a><span class="term">&lt;screenshots/&gt;</span></dt><dd><div class="para">
						Visual components (like fonts or graphical applications) may choose to add one or multiple screenshots to their metadata.
					</div><div class="para">
						The <code class="code">&lt;screenshots/&gt;</code> tag contains multiple <code class="code">&lt;screenshot/&gt;</code> children, where at least one of them must have the property <code class="code">type="default"</code> to indicate the primary screenshot of the software. Every <code class="code">&lt;screenshot/&gt;</code> tag must have at least one <code class="code">&lt;image/&gt;</code> child.
					</div><div class="para">
						The value of the <code class="code">&lt;image/&gt;</code> tag is a direct HTTP/HTTPS/FTP URL to a screenshot uploaded to a public location on the web. The <code class="code">&lt;image/&gt;</code> tag may have the following properties: 
						<div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para">
									<code class="code">type</code>
								</div><div class="para">
									The type of the image: <code class="code">source</code> for the source image, and <code class="code">thumbnail</code> for a thumbnail image. In case the type is <code class="code">thumbnail</code>, the <code class="code">width</code> and <code class="code">height</code> properties must be present.
								</div></li><li class="listitem"><div class="para">
									<code class="code">width</code>
								</div><div class="para">
									The width of the image in pixels.
								</div></li><li class="listitem"><div class="para">
									<code class="code">height</code>
								</div><div class="para">
									The height of the image in pixels.
								</div></li><li class="listitem"><div class="para">
									<code class="code">xml:lang</code>
								</div><div class="para">
									The language this screenshot image is translated in. This property should only be present if there are multiple images with different locales present.
								</div></li></ul></div>

					</div><div class="para">
						Optionally, a <code class="code">&lt;screenshot/&gt;</code> tag may have a translatable <code class="code">&lt;caption/&gt;</code> child, defining a short (ideally not more then 256 characters) description of what the user can see on the referenced screenshot.
					</div><div class="para">
						Ideally, all screenshots should have a 16:9 aspect ratio, and should have a width that is no smaller than 620 pixels. They should also be in be in PNG or JPEG format. PNG is the preferred format; JPEG should only be used when screenshots include large photographs or other images where a lossy format like JPEG may compress better.
					</div><div class="para">
						Example:
					</div><pre class="programlisting"><span xmlns="" class="line"></span><span xmlns="" class="perl_Keyword">&lt;screenshots&gt;</span>
<span xmlns="" class="line"></span>  <span xmlns="" class="perl_Keyword">&lt;screenshot</span><span xmlns="" class="perl_Others"> type=</span><span xmlns="" class="perl_String">"default"</span><span xmlns="" class="perl_Keyword">&gt;</span>
<span xmlns="" class="line"></span>    <span xmlns="" class="perl_Keyword">&lt;caption&gt;</span>The FooBar main window.<span xmlns="" class="perl_Keyword">&lt;/caption&gt;</span>
<span xmlns="" class="line"></span>    <span xmlns="" class="perl_Keyword">&lt;image</span><span xmlns="" class="perl_Others"> type=</span><span xmlns="" class="perl_String">"source"</span><span xmlns="" class="perl_Others"> width=</span><span xmlns="" class="perl_String">"1600"</span><span xmlns="" class="perl_Others"> height=</span><span xmlns="" class="perl_String">"900"</span><span xmlns="" class="perl_Keyword">&gt;</span>https://example.com/foobar/screenshot-1.png<span xmlns="" class="perl_Keyword">&lt;/image&gt;</span>
<span xmlns="" class="line"></span>  <span xmlns="" class="perl_Keyword">&lt;/screenshot&gt;</span>
<span xmlns="" class="line"></span>  <span xmlns="" class="perl_Keyword">&lt;screenshot&gt;</span>
<span xmlns="" class="line"></span>    <span xmlns="" class="perl_Keyword">&lt;caption&gt;</span>Foobar showing the frobnicate functionality.<span xmlns="" class="perl_Keyword">&lt;/caption&gt;</span>
<span xmlns="" class="line"></span>    <span xmlns="" class="perl_Keyword">&lt;image</span><span xmlns="" class="perl_Others"> type=</span><span xmlns="" class="perl_String">"source"</span><span xmlns="" class="perl_Others"> width=</span><span xmlns="" class="perl_String">"1600"</span><span xmlns="" class="perl_Others"> height=</span><span xmlns="" class="perl_String">"900"</span><span xmlns="" class="perl_Keyword">&gt;</span>https://example.com/foobar/screenshot-2.png<span xmlns="" class="perl_Keyword">&lt;/image&gt;</span>
<span xmlns="" class="line"></span>  <span xmlns="" class="perl_Keyword">&lt;/screenshot&gt;</span>
<span xmlns="" class="line"></span> <span xmlns="" class="perl_Keyword">&lt;/screenshots&gt;</span></pre></dd><dt><a id="tag-update_contact"></a><span class="term">&lt;update_contact/&gt;</span></dt><dd><div class="para">
						The <code class="code">&lt;update_contact/&gt;</code> tag is an optional tag which can be added to provide an email address distributors can use to contact the project about invalid or incomplete metadata or – in case the specification has changed – about old metadata. It can also be used to ask general questions in case of an update of the component described in the metadata file.
					</div><div class="para">
						The <code class="code">&lt;update_contact/&gt;</code> tag must <span class="emphasis"><em>only be used by distributors</em></span>. It is not included in the distribution-provided AppStream XML file, and therefore not exposed to the end user via any kind of UI.
					</div><div class="para">
						Upstream authors might decide to add an email address in cleartext, but spam protection using <code class="code">_AT_</code> is also valid. The value of this tag is generally treated a case-insensitive way.
					</div><div class="para">
						Example:
					</div><pre class="programlisting"><span xmlns="" class="line"></span><span xmlns="" class="perl_Keyword">&lt;update_contact&gt;</span>developer_AT_example.com<span xmlns="" class="perl_Keyword">&lt;/update_contact&gt;</span></pre></dd><dt><a id="tag-translation"></a><span class="term">&lt;translation/&gt;</span></dt><dd><div class="para">
						The <code class="code">&lt;translation/&gt;</code> tag is an optional tag which can be added to specify the translation domain used for this software component. It may be used by the AppStream distro metadata generator to determine the translation status of the respective software.
					</div><div class="para">
						The tag must have a <code class="literal">type</code> property, assuming the value of the translation system which is used. Right now, allowed translation systems and values for <code class="literal">type</code> are: 
						<div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para">
									<code class="literal">gettext</code>
								</div></li><li class="listitem"><div class="para">
									<code class="literal">qt</code>
								</div></li></ul></div>
						 In case a software components gets its translation from multiple translation domains, the <code class="code">&lt;translation/&gt;</code> tag may be defined more than once.
					</div><div class="para">
						Example:
					</div><pre class="programlisting"><span xmlns="" class="line"></span><span xmlns="" class="perl_Keyword">&lt;translation</span><span xmlns="" class="perl_Others"> type=</span><span xmlns="" class="perl_String">"gettext"</span><span xmlns="" class="perl_Keyword">&gt;</span>foobar<span xmlns="" class="perl_Keyword">&lt;/translation&gt;</span></pre></dd><dt><a id="tag-suggests"></a><span class="term">&lt;suggests/&gt;</span></dt><dd><div class="para">
						The <code class="code">&lt;suggests/&gt;</code> tag is an optional tag which can be added to specify the component-ids of other software this components suggests. Software centers might present the suggested software on the installation page of the described component.
					</div><div class="para">
						The tag may have a <code class="literal">type</code> property, with the value <code class="code">upstream</code>, indicating that this suggestion originates from the upstream project. If no <code class="literal">type</code> property is given, <code class="code">upstream</code> is implicitly assumed as value. Metainfo files must not define other <code class="literal">suggests</code> types, those are reserved for AppStream catalog XML (see <a class="xref" href="chap-CollectionData.html#tag-ct-suggests">&lt;suggests/&gt;</a> in catalog XML).
					</div><div class="para">
						The <code class="literal">suggests</code> tag must have one or more <code class="code">&lt;id/&gt;</code> tags as children, specifying the IDs of the suggested other software components.
					</div><div class="para">
						Example:
					</div><pre class="programlisting"><span xmlns="" class="line"></span><span xmlns="" class="perl_Keyword">&lt;suggests&gt;</span>
<span xmlns="" class="line"></span>  <span xmlns="" class="perl_Keyword">&lt;id&gt;</span>org.kde.gwenview.desktop<span xmlns="" class="perl_Keyword">&lt;/id&gt;</span>
<span xmlns="" class="line"></span>  <span xmlns="" class="perl_Keyword">&lt;id&gt;</span>org.inkscape.Inkscape<span xmlns="" class="perl_Keyword">&lt;/id&gt;</span>
<span xmlns="" class="line"></span><span xmlns="" class="perl_Keyword">&lt;/suggests&gt;</span></pre></dd></dl></div><div class="para">
			An example for a very basic component file could look like this:
		</div><pre class="programlisting"><span xmlns="" class="line"></span>
<span xmlns="" class="line"></span><span xmlns="" class="perl_Keyword">&lt;?xml</span> version="1.0" encoding="UTF-8"<span xmlns="" class="perl_Keyword">?&gt;</span>
<span xmlns="" class="line"></span><span xmlns="" class="perl_Keyword">&lt;component&gt;</span>
<span xmlns="" class="line"></span>  <span xmlns="" class="perl_Keyword">&lt;id&gt;</span>com.example.foobar<span xmlns="" class="perl_Keyword">&lt;/id&gt;</span>
<span xmlns="" class="line"></span>  <span xmlns="" class="perl_Keyword">&lt;name&gt;</span>Foo Bar<span xmlns="" class="perl_Keyword">&lt;/name&gt;</span>
<span xmlns="" class="line"></span>  <span xmlns="" class="perl_Keyword">&lt;summary&gt;</span>A foo-ish bar<span xmlns="" class="perl_Keyword">&lt;/summary&gt;</span>
<span xmlns="" class="line"></span>  <span xmlns="" class="perl_Keyword">&lt;url</span><span xmlns="" class="perl_Others"> type=</span><span xmlns="" class="perl_String">"homepage"</span><span xmlns="" class="perl_Keyword">&gt;</span>http://www.example.org<span xmlns="" class="perl_Keyword">&lt;/url&gt;</span>
<span xmlns="" class="line"></span>  <span xmlns="" class="perl_Keyword">&lt;metadata_license&gt;</span>CC0-1.0<span xmlns="" class="perl_Keyword">&lt;/metadata_license&gt;</span>
<span xmlns="" class="line"></span>
<span xmlns="" class="line"></span>  <span xmlns="" class="perl_Keyword">&lt;provides&gt;</span>
<span xmlns="" class="line"></span>    <span xmlns="" class="perl_Keyword">&lt;library&gt;</span>libfoobar.so.2<span xmlns="" class="perl_Keyword">&lt;/library&gt;</span>
<span xmlns="" class="line"></span>    <span xmlns="" class="perl_Keyword">&lt;font&gt;</span>foo.ttf<span xmlns="" class="perl_Keyword">&lt;/font&gt;</span>
<span xmlns="" class="line"></span>    <span xmlns="" class="perl_Keyword">&lt;binary&gt;</span>foobar<span xmlns="" class="perl_Keyword">&lt;/binary&gt;</span>
<span xmlns="" class="line"></span>  <span xmlns="" class="perl_Keyword">&lt;/provides&gt;</span>
<span xmlns="" class="line"></span>  <span xmlns="" class="perl_Keyword">&lt;releases&gt;</span>
<span xmlns="" class="line"></span>    <span xmlns="" class="perl_Keyword">&lt;release</span><span xmlns="" class="perl_Others"> version=</span><span xmlns="" class="perl_String">"1.2"</span><span xmlns="" class="perl_Others"> date=</span><span xmlns="" class="perl_String">"2015-02-16"</span> <span xmlns="" class="perl_Keyword">/&gt;</span>
<span xmlns="" class="line"></span>  <span xmlns="" class="perl_Keyword">&lt;/releases&gt;</span>
<span xmlns="" class="line"></span>  <span xmlns="" class="perl_Keyword">&lt;developer_name&gt;</span>FooBar Team<span xmlns="" class="perl_Keyword">&lt;/developer_name&gt;</span>
<span xmlns="" class="line"></span><span xmlns="" class="perl_Keyword">&lt;/component&gt;</span>
</pre><div class="para">
			For a component of type <code class="literal">generic</code>, the minimal amount of required tags is: <a class="xref" href="chap-Metadata.html#tag-id-generic">&lt;id/&gt;</a>, <a class="xref" href="chap-Metadata.html#tag-name">&lt;name/&gt;</a>, <a class="xref" href="chap-Metadata.html#tag-summary">&lt;summary/&gt;</a>, <a class="xref" href="chap-Metadata.html#tag-metadata_license">&lt;metadata_license/&gt;</a>.
		</div></div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="chap-AppStream-About.html"><strong>Prev</strong>Chapter 1. About AppStream</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="sect-Metadata-Application.html"><strong>Next</strong>2.2. Desktop Applications</a></li></ul></body></html>