source: general/genlib/appstream.xml@ 0110dbd

12.2 trunk
Last change on this file since 0110dbd was 485474da, checked in by Douglas R. Reno <renodr@…>, 3 weeks ago

Appstream: use the correct version in the Installed Files listing

I thought it was funny when I read:

/usr/share/doc/appstream-r12.1-1680

in the installed files list. Let's change it to &appstream-version. :)

  • Property mode set to 100644
File size: 8.9 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY appstream-download-http "https://www.freedesktop.org/software/appstream/releases/AppStream-&appstream-version;.tar.xz">
8 <!ENTITY appstream-download-ftp " ">
9 <!ENTITY appstream-md5sum "8db15579a7b25acca99677ddc6a12b68">
10 <!ENTITY appstream-size "2.5 MB">
11 <!ENTITY appstream-buildsize "30 MB">
12 <!ENTITY appstream-time "0.5 SBU (With tests; both using parallelism=4)">
13
14]>
15
16<sect1 id="appstream" xreflabel="AppStream-&appstream-version;">
17 <?dbhtml filename="appstream.html"?>
18
19 <title>AppStream-&appstream-version;</title>
20
21 <indexterm zone="appstream">
22 <primary sortas="a-appstream">AppStream</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to AppStream</title>
27
28 <para>
29 The <application>AppStream</application> package contains a library and
30 tool that is useful for retrieving software metadata and making it
31 easily accessible to programs which need it.
32 </para>
33
34 &lfs122_checked;
35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>
40 Download (HTTP): <ulink url="&appstream-download-http;"/>
41 </para>
42 </listitem>
43 <listitem>
44 <para>
45 Download (FTP): <ulink url="&appstream-download-ftp;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download MD5 sum: &appstream-md5sum;
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download size: &appstream-size;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Estimated disk space required: &appstream-buildsize;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated build time: &appstream-time;
66 </para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">AppStream Dependencies</bridgehead>
71
72 <bridgehead renderas="sect4">Required</bridgehead>
73 <para role="required">
74 <xref linkend="curl"/>,
75 <phrase revision="sysv"><xref linkend="elogind"/>,</phrase>
76 <xref linkend="itstool"/>,
77 <xref linkend="libxml2"/>,
78 <xref linkend="libxmlb"/>, and
79 <xref linkend="libyaml"/>
80 </para>
81
82 <bridgehead renderas="sect4">Optional</bridgehead>
83 <para role="optional">
84 <xref linkend="gi-docgen"/>,
85 <xref linkend="qt6"/>,
86 <ulink url="https://github.com/openSUSE/daps">DAPS</ulink>, and
87 <ulink url="https://github.com/zvelo/libstemmer">libstemmer</ulink>
88 </para>
89
90 <!-- Only use this if you want to note something in the wiki
91 <para condition="html" role="usernotes">
92 Editor Notes: <ulink url="&blfs-wiki;/TEMPLATE"/>
93 </para>
94 -->
95 </sect2>
96
97 <sect2 role="installation">
98 <title>Installation of AppStream</title>
99
100 <para>
101 Install <application>AppStream</application> by running the following
102 commands:
103 </para>
104
105<screen><userinput>mkdir build &amp;&amp;
106cd build &amp;&amp;
107
108meson setup --prefix=/usr \
109 --buildtype=release \
110 -D apidocs=false \
111 -D stemming=false .. &amp;&amp;
112ninja</userinput></screen>
113
114 <para>
115 To test the results, issue: <command>ninja test</command>.
116 </para>
117
118 <para>
119 Now, as the <systemitem class="username">root</systemitem> user:
120 </para>
121
122<screen role="root"><userinput>ninja install &amp;&amp;
123mv -v /usr/share/doc/appstream{,-&appstream-version;}</userinput></screen>
124
125 </sect2>
126
127 <sect2 role="commands">
128 <title>Command Explanations</title>
129
130 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
131 href="../../xincludes/meson-buildtype-release.xml"/>
132
133 <para>
134 <parameter>-D apidocs=false</parameter>: This switch disables building the
135 API documentation. Remove it if you have
136 <xref linkend="gi-docgen" role="nodep"/> installed and wish to
137 regenerate the API documentation. When the API documentation is
138 not regenerated, a pre-built copy is installed anyway.
139 </para>
140
141 <para>
142 <parameter>-D stemming=false</parameter>: This switch disables stemming
143 support. Remove this switch if you have
144 <ulink url="https://github.com/zvelo/libstemmer">libstemmer</ulink>
145 installed and want faster searches.
146 </para>
147
148 <para>
149 <option>-D qt5=true</option>: Use this option if you have &qt5-deps;
150 installed and you want to build support for Qt-5 applications into this
151 package.
152 </para>
153
154 <para>
155 <option>-D qt=true</option>: Use this option if you have
156 <xref linkend="qt6" role="nodep"/> installed and you want to build support
157 for Qt6 applications into this package. This option conflicts with
158 <option>-D qt5=true</option>.
159 </para>
160
161 </sect2>
162
163 <sect2 role="configuration">
164 <title>Configuring AppStream</title>
165
166 <sect3 id="appstream-config">
167 <title>Config Files</title>
168
169 <para>
170 <filename>/usr/share/metainfo/org.linuxfromscratch.lfs.xml</filename>
171 </para>
172 </sect3>
173
174 <sect3>
175 <title>Configuration Information</title>
176
177 <para>
178 <application>AppStream</application> expects an operating system
179 metainfo file describing the GNU/Linux distribution. As the
180 &root; user, create the file describing LFS:
181 </para>
182
183 <indexterm zone="appstream appstream-config">
184 <primary sortas="e-usr-share-metainfo-org-linuxfromscratch-lfs-xml">
185 /usr/share/metainfo/org.linuxfromscratch.lfs.xml
186 </primary>
187 </indexterm>
188
189 <screen role="root"><userinput>install -vdm755 /usr/share/metainfo &amp;&amp;
190cat > /usr/share/metainfo/org.linuxfromscratch.lfs.xml &lt;&lt; EOF
191<literal>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
192&lt;component type="operating-system"&gt;
193 &lt;id&gt;org.linuxfromscratch.lfs&lt;/id&gt;
194 &lt;name&gt;Linux From Scratch&lt;/name&gt;
195 &lt;summary&gt;A customized Linux system built entirely from source&lt;/summary&gt;
196 &lt;description&gt;
197 &lt;p&gt;
198 Linux From Scratch (LFS) is a project that provides you with
199 step-by-step instructions for building your own customized Linux
200 system entirely from source.
201 &lt;/p&gt;
202 &lt;/description&gt;
203 &lt;url type="homepage"&gt;https://www.linuxfromscratch.org/lfs/&lt;/url&gt;
204 &lt;metadata_license&gt;MIT&lt;/metadata_license&gt;
205 &lt;developer id='linuxfromscratch.org'&gt;
206 &lt;name&gt;The Linux From Scratch Editors&lt;/name&gt;
207 &lt;/developer&gt;
208
209 &lt;releases&gt;
210 &lt;release version="&lfs-appstream-meta-ver;" type="&lfs-appstream-meta-type;" date="&lfs-appstream-meta-date;"&gt;
211 &lt;description&gt;
212 &lt;p&gt;Now contains Binutils 2.43.1, GCC-14.2.0, Glibc-2.40,
213 and Linux kernel 6.10.&lt;/p&gt;
214 &lt;/description&gt;
215 &lt;/release&gt;
216
217 &lt;release version="12.1" type="stable" date="2024-03-01"&gt;
218 &lt;description&gt;
219 &lt;p&gt;Now contains Binutils 2.42, GCC-13.2.0, Glibc-2.39,
220 and Linux kernel 6.7.&lt;/p&gt;
221 &lt;/description&gt;
222 &lt;/release&gt;
223 &lt;/releases&gt;
224&lt;/component&gt;</literal>
225EOF</userinput></screen>
226
227 </sect3>
228 </sect2>
229
230 <sect2 role="content">
231 <title>Contents</title>
232
233 <segmentedlist>
234 <segtitle>Installed Programs</segtitle>
235 <segtitle>Installed Libraries</segtitle>
236 <segtitle>Installed Directories</segtitle>
237
238 <seglistitem>
239 <seg>
240 appstreamcli
241 </seg>
242 <seg>
243 libappstream.so
244 </seg>
245 <seg>
246 /usr/include/appstream,
247 /usr/share/doc/appstream-&appstream-version;, and
248 /usr/share/installed-tests/appstream
249 </seg>
250 </seglistitem>
251 </segmentedlist>
252
253 <variablelist>
254 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
255 <?dbfo list-presentation="list"?>
256 <?dbhtml list-presentation="table"?>
257
258 <varlistentry id="appstreamcli">
259 <term><command>appstreamcli</command></term>
260 <listitem>
261 <para>
262 queries information from AppStream metadata and from the AppStream
263 component index
264 </para>
265 <indexterm zone="appstream appstreamcli">
266 <primary sortas="b-appstreamcli">appstreamcli</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
271 <varlistentry id="libappstream">
272 <term><filename class="libraryfile">libappstream.so</filename></term>
273 <listitem>
274 <para>
275 contains functions that handle AppStream metadata queries and
276 request information from the AppStream component index
277 </para>
278 <indexterm zone="appstream libappstream">
279 <primary sortas="c-libappstream">libappstream.so</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283 </variablelist>
284 </sect2>
285</sect1>
Note: See TracBrowser for help on using the repository browser.