This file is indexed.

/usr/share/doc/appstream/html/chap-Metadata.html is in appstream-doc 0.9.4-1.

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
<?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.9-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-Addon.html">2.3. Addons</a></span></dt><dt><span class="section"><a href="sect-Metadata-Fonts.html">2.4. Fonts</a></span></dt><dt><span class="section"><a href="sect-Metadata-Codec.html">2.5. Codecs</a></span></dt><dt><span class="section"><a href="sect-Metadata-InputMethod.html">2.6. Input Methods</a></span></dt><dt><span class="section"><a href="sect-Metadata-Firmware.html">2.7. Firmware</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 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 provides a <code class="literal">&lt;provides/&gt;</code> tag, distributors must also ensure that the package providing the file contain 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 covers only an application, as described in the AppData section, 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 an <code class="code">&lt;component&gt;</code> tag as 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, 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 short and unique identifier for this component. It must contain only ASCII characters, dots, hyphens and numbers, spaces are not allowed. Specialized metainfo types, such as application or fonts, may apply additional restrictions on the <code class="literal">id</code> tag value.
					</div><div class="para">
						A general pattern for a valid ID tag is to use a reverse URL scheme, consisting of <code class="literal">&lt;tld&gt;.&lt;vendor&gt;.&lt;product&gt;.&lt;type&gt;</code>, e.g. <code class="code">org.kde.gwenview.desktop</code> or <code class="code">com.hugski.ColorHug2.firmware</code>.
					</div><div class="para">
						Note that the value of this tag must be <span class="emphasis"><em>unique</em></span> across all distributions. In case it is not, distributors are expected to reject the conflicting components from inclusion into their metadata.
					</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 licence that you are releasing the one Metainfo XML file under. This is not typically the same as the project licence. 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. Primissive licence names include:
					</div><div xmlns:d="http://docbook.org/ns/docbook" class="itemizedlist"><ul><li class="listitem"><div class="para">
								CC0-1.0
							</div></li><li class="listitem"><div class="para">
								CC-BY-3.0
							</div></li><li class="listitem"><div class="para">
								CC-BY-SA-3.0
							</div></li><li class="listitem"><div class="para">
								GFDL-1.3
							</div></li><li class="listitem"><div class="para">
								MIT
							</div></li></ul></div><div class="para">
						The licence codes correspond to the identifiers found at the <a href="http://spdx.org/licenses/">SPDX OpenSource License Registry</a>. For instance, CC-BY-SA-3.0 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 (p), ordered list (ol) and unordered list (ul) 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-url"></a><span class="term">&lt;url/&gt;</span></dt><dd><div class="para">
						Defines 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 can not do in the component's description.
								</div></dd><dt><span class="term">help</span></dt><dd><div class="para">
									Should provide a 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">
									Links of this type should point to a webpage showing information on how to donate to the described software project.
								</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 value and should be present for every release. The <code class="literal">timestamp</code> tag contains the release time in 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-meadata. 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">
								low
							</div></li><li class="listitem"><div class="para">
								medium
							</div></li><li class="listitem"><div class="para">
								high
							</div></li><li class="listitem"><div class="para">
								critical
							</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 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 it's 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 it's children. Currently allowed item types are listed below. If you miss something, file a bug against AppStream 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">
									Name of a font provided by this component. For example <strong class="userinput"><code>Linux Libertine O</code></strong>. The tag must have a <code class="literal">file</code> property stating the filename of the referenced font.
								</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</span><span xmlns="" class="perl_Others"> file=</span><span xmlns="" class="perl_String">"LinLibertine_R.otf"</span><span xmlns="" class="perl_Keyword">&gt;</span>Linux Libertine O<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, kernel drivers which are not merged upstream yet or whatever else.
								</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 Python2 module this component provides.
								</div></dd><dt><span class="term">&lt;python3/&gt;</span></dt><dd><div class="para">
									Name of a Python3 module this component provides.
								</div></dd><dt><span class="term">&lt;dbus/&gt;</span></dt><dd><div class="para">
									Contains the name of a DBus service as property. 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 .desktop 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 GNOME, KDE, XFCE, MATE and LXDE, 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 all 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">
									GPL-2.0
								</div></li><li class="listitem"><div class="para">
									LGPL-3.0+ and GPL-3.0+
								</div></li><li class="listitem"><div class="para">
									MIT
								</div></li><li class="listitem"><div class="para">
									CC-BY-SA-2.0
								</div></li><li class="listitem"><div class="para">
									...
								</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 application's primary screenshot. Every <code class="code">&lt;screenshot/&gt;</code> tag must have at least one <code class="code">&lt;image/&gt;</code> child, which should define the width and height of the referenced image in it's properties. The value of the <code class="code">&lt;image/&gt;</code> tag is a direct URL to a screenshot uploaded to a public location on the web.
					</div><div class="para">
						Optionally, a <code class="code">&lt;screenshot/&gt;</code> tag may have a <code class="code">&lt;caption/&gt;</code> child, defining a short (not more then 255 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 620px. 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></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.
					</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 trabslation 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">
									gettext
								</div></li><li class="listitem"><div class="para">
									qt
								</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></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>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>