Changeset 69553e9 for general/genlib


Ignore:
Timestamp:
09/18/2023 08:17:14 PM (9 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, ken/TL2024, ken/tuningfonts, lazarus, plabs/newcss, python3.11, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18
Children:
bccf5d0c
Parents:
087dc22
Message:

appstream: Add /usr/share/metainfo/org.linuxfromscratch.lfs.xml file

It fixes the "Operating System Details" content in appstreamcli sysinfo
output.

Note that the file name is derived from HOME_URL and ID properties from
/etc/os-release, and the HOME_URL property is just added (at LFS
r12.0-44). If HOME_URL is not set, the file should be renamed to
"lfs.xml" and the <id> in the file should be "lfs", instead of
"org.linuxfromscratch.lfs".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/genlib/appstream.xml

    r087dc22 r69553e9  
    151151  </sect2>
    152152 
     153  <sect2 role="configuration">
     154    <title>Configuring AppStream</title>
     155
     156    <sect3 id="appstream-config">
     157      <title>Config Files</title>
     158
     159      <para>
     160        <filename>/usr/share/metainfo/org.linuxfromscratch.lfs.xml</filename>
     161      </para>
     162    </sect3>
     163
     164    <sect3>
     165      <title>Configuration Information</title>
     166
     167      <para>
     168        <application>AppStream</application> expect an operating system
     169        metainfo file for describing the GNU/Linux distribution.  As the
     170        &root; user, create the file describing LFS:
     171      </para>
     172
     173      <indexterm zone="appstream appstream-config">
     174        <primary sortas="e-usr-share-metainfo-org-linuxfromscratch-lfs-xml">
     175          /usr/share/metainfo/org.linuxfromscratch.lfs.xml
     176        </primary>
     177      </indexterm>
     178
     179      <screen role="root"><userinput>install -vdm755 /usr/share/metainfo &amp;&amp;
     180cat > /usr/share/metainfo/org.linuxfromscratch.lfs.xml &lt;&lt; EOF
     181<literal>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
     182&lt;component type="operating-system"&gt;
     183  &lt;id&gt;org.linuxfromscratch.lfs&lt;/id&gt;
     184  &lt;name&gt;Linux From Scratch&lt;/name&gt;
     185  &lt;summary&gt;A customized Linux system built entirely from source.&lt;/summary&gt;
     186  &lt;description&gt;
     187    &lt;p&gt;
     188      Linux From Scratch (LFS) is a project that provides you with
     189      step-by-step instructions for building your own customized Linux
     190      system entirely from source.
     191    &lt;/p&gt;
     192  &lt;/description&gt;
     193  &lt;url type="homepage"&gt;https://www.linuxfromscratch.org/lfs/&lt;/url&gt;
     194  &lt;metadata_license&gt;MIT&lt;/metadata_license&gt;
     195  &lt;developer_name&gt;The Linux From Scratch Editors&lt;/developer_name&gt;
     196
     197  &lt;releases&gt;
     198    &lt;release version="12.1" type="development"&gt;
     199      &lt;description&gt;
     200        &lt;p&gt;The next release of Linux From Scratch.&lt;/p&gt;
     201      &lt;/description&gt;
     202    &lt;/release&gt;
     203
     204    &lt;release version="12.0" type="stable" date="2023-09-01"&gt;
     205      &lt;description&gt;
     206        &lt;p&gt;Now contains Binutils 2.41, GCC-13.2.0, Glibc-2.38, and Linux
     207        kernel 6.4.&lt;/p&gt;
     208      &lt;/description&gt;
     209    &lt;/release&gt;
     210  &lt;/releases&gt;
     211&lt;/component&gt;</literal>
     212EOF</userinput></screen>
     213
     214    </sect3>
     215  </sect2>
     216
    153217  <sect2 role="content">
    154218    <title>Contents</title>
Note: See TracChangeset for help on using the changeset viewer.