source: general/genlib/appstream.xml@ 9848345e

12.1 ken/TL2024 lazarus plabs/newcss rahul/power-profiles-daemon trunk xry111/llvm18
Last change on this file since 9848345e was 578a0a0, checked in by Xi Ruoyao <xry111@…>, 6 months ago

appstream: Change gtk-doc to gi-docgen

In 1.0.0 NEWS:

  • docs: Build all API documentation with gi-docgen

By the way, add DAPS as external dependency (it's needed to generate
specification documentation with -Ddocs=true), and clarify the pre-built
API documentation installed to /usr/share/doc/appstream.

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