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 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160
|
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % BOOK_ENTITIES SYSTEM "AppStream.ent">
%BOOK_ENTITIES;
]>
<section id="sect-AppStream-YAML">
<title>AppStream Catalog YAML</title>
<section id="spec-dep11-introduction">
<title>Introduction</title>
<para>
DEP-11 is a YAML implementation of the AppStream catalog specification, which is primarily used by Debian and its derivatives.
This document describes the DEP-11 YAML.
All AppStream support libraries available today are able to read both the YAML and the XML specification.
</para>
<important>
<para>
If you want to use AppStream in your distribution, and are not based on Debian, please use the XML specification (unless
you have strong reasons for preferring YAML).
XML is the official format for AppStream catalog metadata.
</para>
</important>
<para>
Fields not mentioned in this document are not recognized by DEP-11 YAML parsers.
</para>
</section>
<section id="spec-dep11-filenaming">
<title>File naming and location</title>
<para>
Take a look at <xref linkend="spec-asxml-filenaming"/> for AppStream XML files for reference. While the XML data belongs into the <filename>xml</filename> subdirectory in
<filename>/usr/share/swcatalog</filename> (or <filename>/var/(lib|cache)/swcatalog</filename>), the YAML data is stored in the <filename>yaml</filename> subdirectory.
All other rules affecting the XML apply the DEP-11 YAML as well, including the recommendation to compress the files with gzip and the icon search logic.
</para>
</section>
<section id="spec-dep11-general">
<title>General DEP-11 YAML structure</title>
<para>
Each YAML file starts with a header document, which defines the basic properties of the metadata, which is followed by the actual metadata in form of one
YAML document per AppStream component.
</para>
<para>
The header document contains the following fields, all of them are required or at least strongly recommended.
</para>
<variablelist>
<varlistentry>
<term>File</term>
<listitem>
<para>
This field identifies the file as DEP-11 file. Its value is always <code>DEP-11</code>.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>str</emphasis>, <property>required</property>:<emphasis>yes</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>Version</term>
<listitem>
<para>
The version of the AppStream specification this file was built for.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>str</emphasis>, <property>required</property>:<emphasis>yes</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>Origin</term>
<listitem>
<para>
Defines the repository-id this file belongs to. This usually matches the filename without extension. On Debian systems, it is the
<code><suite>-<component></code> combination, e.g. <userinput>jessie-main</userinput>.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>str</emphasis>, <property>required</property>:<emphasis>yes</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>MediaBaseUrl</term>
<listitem>
<para>
The base URL for media (screenshots, icons, ...) referenced in the metadata file.
If this is set, all urls in the document referencing media will be treated relative to the base url.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>str</emphasis>, <property>required</property>:<emphasis>no</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>Architecture</term>
<listitem>
<para>
Defines the architecture this data belongs to. This information is useful to resolve AppStream-ID conflicts on multiarch systems,
which appear if the user has metadata for two architectures installed.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>str</emphasis>, <property>required</property>:<emphasis>no</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>Priority</term>
<listitem>
<para>
The priorization of this metadata file over other metadata.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>int</emphasis>, <property>required</property>:<emphasis>no</emphasis></literallayout>
</listitem>
</varlistentry>
</variablelist>
</section>
<section id="spec-dep11-translated">
<title>Translated fields</title>
<para>
Fields with translated values follow the following conventions:
</para>
<orderedlist>
<listitem><para>They are of type <emphasis>dict</emphasis></para></listitem>
<listitem><para>They must contain a key <literal>C</literal>, with the untranslated string as value</para></listitem>
<listitem>
<para>
All languages are represented with their locale name as key in the dict and the translated content as value
(which is of type <emphasis>str</emphasis>, unless explicitly stated otherwise)
</para>
</listitem>
</orderedlist>
<para>
In this document, the type <emphasis>localized</emphasis> is used to indicate that the field contains translated values following this schema.
</para>
<para>
Example for a translated <literal>Name</literal> field:
</para>
<programlisting language="YAML"><![CDATA[Name:
C: I am the untranslated string.
be@latin: Redaktar naładaŭ
bg: Настройки на програмите
pl: Edytor konfiguracji]]></programlisting>
</section>
<section id="spec-dep11-fields">
<title>Valid fields</title>
<para>
This document describes all valid fields in the DEP-11 YAML specification. The requirements for the values are exactly the same as in the XML specification,
and each field links to its correspondent XML tag for reference.
</para>
<variablelist>
<varlistentry id="field-dep11-id">
<term>ID</term>
<listitem>
<para>
The <literal>ID</literal> field is a short unique and usually lower-cases identifier for the component.
Depending on the component's type, different naming conventions apply.
</para>
<para>See <xref linkend="tag-ct-component-id"/>.</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>str</emphasis>, <property>required</property>:<emphasis>yes</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-priority">
<term>Priority</term>
<listitem>
<para>
The <literal>Priority</literal> field sets the priority this component's metadata should have over other meadata in the pool.
Data with a higher priority replaces data with a lower priority.
</para>
<para>See <xref linkend="spec-asxml-tags"/>.</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>int</emphasis>, <property>required</property>:<emphasis>no</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-type">
<term>Type</term>
<listitem>
<para>
The type of this component. Allowed values are:
</para>
<itemizedlist>
<listitem><para><code>generic</code> for <xref linkend="sect-Metadata-GenericComponent"/></para></listitem>
<listitem><para><code>desktop-application</code> for <xref linkend="sect-Metadata-Application"/></para></listitem>
<listitem><para><code>console-application</code> for <xref linkend="sect-Metadata-ConsoleApplication"/></para></listitem>
<listitem><para><code>addon</code> for <xref linkend="sect-Metadata-Addon"/></para></listitem>
<listitem><para><code>codec</code> for <xref linkend="sect-Metadata-Codec"/></para></listitem>
<listitem><para><code>inputmethod</code> for <xref linkend="sect-Metadata-InputMethod"/></para></listitem>
<listitem><para><code>firmware</code> for <xref linkend="sect-Metadata-Firmware"/></para></listitem>
</itemizedlist>
<literallayout>Field info: <property>value-type</property>:<emphasis>str</emphasis>, <property>required</property>:<emphasis>yes</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-merge">
<term>Merge</term>
<listitem>
<para>
The optional <literal>Merge</literal> field describes the merge strategy that should be applied when merging data of this component into
its base. It may assume the values <code>append</code>, <code>replace</code> or <code>remove-component</code>.
</para>
<para>See <xref linkend="spec-asxml-tags"/> for a description on how merging works.</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>str</emphasis>, <property>required</property>:<emphasis>no</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-package">
<term>Package</term>
<listitem>
<para>
The name of the package which needs to be installed in order to make this component available on the system.
</para>
<para>See <xref linkend="tag-ct-pkgname"/>.</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>str</emphasis>, <property>required</property>:<emphasis>yes</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-sourcepackage">
<term>SourcePackage</term>
<listitem>
<para>See <xref linkend="tag-ct-source_pkgname"/>.</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>str</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-name">
<term>Name</term>
<listitem>
<para>See <xref linkend="tag-ct-name"/>.</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>localized</emphasis>, <property>required</property>:<emphasis>yes</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-summary">
<term>Summary</term>
<listitem>
<para>See <xref linkend="tag-ct-summary"/>.</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>localized</emphasis>, <property>required</property>:<emphasis>yes</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-project_license">
<term>ProjectLicense</term>
<listitem>
<para>See <xref linkend="tag-ct-project_license"/>.</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>str</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-description">
<term>Description</term>
<listitem>
<para>See <xref linkend="tag-ct-description"/>.</para>
<para>
The markup for the description is the same as in the XML specification, so it can be read by anything
parsing basic HTML markup.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>localized</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-url">
<term>Url</term>
<listitem>
<para>See <xref linkend="tag-ct-url"/>.</para>
<para>
The <literal>Url</literal> field contains the different url types as keys in its dict. Valid url types are
defined in the main AppStream XML specification.
All URL types must be lowercased.
</para>
<para>
Example:
</para>
<programlisting language="YAML"><![CDATA[Url:
homepage: https://example.org
faq: https://example.org/faq
bugtracker: https://bugs.example.org/report-issue]]></programlisting>
<literallayout>Field info: <property>value-type</property>:<emphasis>dict</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-projectgroup">
<term>ProjectGroup</term>
<listitem>
<para>See <xref linkend="tag-ct-project_group"/>.</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>str</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-icon">
<term>Icon</term>
<listitem>
<para>See <xref linkend="tag-ct-icon"/>.</para>
<para>
The <literal>Icon</literal> field has the different icon types as keys for its dict.
</para>
<variablelist>
<varlistentry>
<term>stock</term>
<listitem>
<para>
Contains the stock icon name.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>str</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>cached</term>
<listitem>
<para>
Contains a list of dictionaries with the keys <literal>width</literal> and <literal>height</literal> of type
<emphasis>int</emphasis> specifying the dimensions of the icon, as well as the key <literal>name</literal>
of type <emphasis>str</emphasis> specifying the name of the icon in the cache.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>list ➟ dict</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>local</term>
<listitem>
<para>
Contains a list of dictionaries with the keys <literal>width</literal> and <literal>height</literal> of type
<emphasis>int</emphasis> specifying the dimensions of the icon, as well as the key <literal>name</literal>
of type <emphasis>str</emphasis> specifying the absolute filename pointing to the right icon.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>list ➟ dict</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>remote</term>
<listitem>
<para>
Contains a list of dictionaries with the keys <literal>width</literal> and <literal>height</literal> of type
<emphasis>int</emphasis> specifying the dimensions of the icon, as well as the key <literal>url</literal>
of type <emphasis>str</emphasis> which contains a HTTP(S) or FTP URL to the icon.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>list ➟ dict</emphasis></literallayout>
</listitem>
</varlistentry>
</variablelist>
<literallayout>Field info: <property>value-type</property>:<emphasis>dict</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-categories">
<term>Categories</term>
<listitem>
<para>See <xref linkend="tag-ct-categories"/>.</para>
<para>
This field follows its XML counterpart in almost all regards. The different XDG menu category names are encoded in the list, and are
of type <emphasis>str</emphasis>.
</para>
<para>
Example:
</para>
<programlisting language="YAML"><![CDATA[Categories:
- Network
- Telephony]]></programlisting>
<literallayout>Field info: <property>value-type</property>:<emphasis>list</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-keywords">
<term>Keywords</term>
<listitem>
<para>See <xref linkend="tag-ct-keywords"/>.</para>
<para>
This field contains the keywords for this component. The keys define the locales for the respective language, the values are
of type <emphasis>list</emphasis> and contain the list of keywords for the respective language. An unlocalized <literal>C</literal>
key must be present.
</para>
<para>
Example:
</para>
<programlisting language="YAML"><![CDATA[Keywords:
C:
- IDE
- development
- programming
de:
- IDE
- entwicklung
- programmierung]]></programlisting>
<literallayout>Field info: <property>value-type</property>:<emphasis>translated(list)</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-screenshots">
<term>Screenshots</term>
<listitem>
<para>See <xref linkend="tag-ct-screenshots"/>.</para>
<para>
The <literal>Screenshots</literal> field contains a list of screenshots. A screenshot is of type
<emphasis>dict</emphasis> and contains the following keys:
</para>
<variablelist>
<varlistentry>
<term>default</term>
<listitem>
<para>
If <literal>default</literal> is <code>true</code>, the screenshot is selected as default screenshot. There has to be at least one
screenshot which is marked as default.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>bool</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>source-image</term>
<listitem>
<para>
Describes the source image for this screenshot. If this field is present, <literal>videos</literal> must not be present as well.
The field valus is a dictionary with the following keys:
</para>
<itemizedlist>
<listitem>
<para><literal>height</literal></para>
<para>The image height (<property>value-type</property>:<emphasis>int</emphasis>)</para>
</listitem>
<listitem>
<para><literal>width</literal></para>
<para>The image width (<property>value-type</property>:<emphasis>int</emphasis>)</para>
</listitem>
<listitem>
<para><literal>url</literal></para>
<para>
The full image url, or the url component added to <literal>MediaBaseUrl</literal>,
if defined (<property>value-type</property>:<emphasis>str</emphasis>).
</para>
</listitem>
<listitem>
<para><literal>lang</literal></para>
<para>
The language this screenshot image is translated in. The value is a locale string.
(<property>value-type</property>:<emphasis>str</emphasis>, <property>required</property>:<emphasis>no</emphasis>)
</para>
</listitem>
</itemizedlist>
<literallayout>Field info: <property>value-type</property>:<emphasis>dict</emphasis>, <property>required</property>:<emphasis>conditional</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>thumbnails</term>
<listitem>
<para>
A list of an arbitrary number of screenshots. All screenshots are of type <emphasis>dict</emphasis> and must contain the same keys as described for
<literal>source-image</literal>.
This key must not be present if <literal>videos</literal> is present.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>list</emphasis>, <property>required</property>:<emphasis>no</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>videos</term>
<listitem>
<para>
Contains a list of video dicts for this screenshot. If this field is present, <literal>source-image</literal> must not be present as well.
The field valus is a dictionary with the following keys:
</para>
<itemizedlist>
<listitem>
<para><literal>container</literal></para>
<para>The video container format (<property>value-type</property>:<emphasis>str</emphasis>, values as described in the XML specification)</para>
</listitem>
<listitem>
<para><literal>codec</literal></para>
<para>The video codec format (<property>value-type</property>:<emphasis>str</emphasis>, values as described in the XML specification)</para>
</listitem>
<listitem>
<para><literal>height</literal></para>
<para>The video height (<property>value-type</property>:<emphasis>int</emphasis>)</para>
</listitem>
<listitem>
<para><literal>width</literal></para>
<para>The video width (<property>value-type</property>:<emphasis>int</emphasis>)</para>
</listitem>
<listitem>
<para><literal>url</literal></para>
<para>
The full video url, or the url component added to <literal>MediaBaseUrl</literal>,
if defined (<property>value-type</property>:<emphasis>str</emphasis>).
</para>
</listitem>
<listitem>
<para><literal>lang</literal></para>
<para>
The language this screenshot video is translated in. The value is a locale string.
(<property>value-type</property>:<emphasis>str</emphasis>, <property>required</property>:<emphasis>no</emphasis>)
</para>
</listitem>
</itemizedlist>
<literallayout>Field info: <property>value-type</property>:<emphasis>list(dict)</emphasis>, <property>required</property>:<emphasis>conditional</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>caption</term>
<listitem>
<para>
A caption for this screenshot.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>localized</emphasis></literallayout>
</listitem>
</varlistentry>
</variablelist>
<para>
Example for a <literal>Screenshots</literal> field containing one screenshot:
</para>
<programlisting language="YAML"><![CDATA[Screenshots:
- default: true
caption:
C: Foobar showing kitchen-sink functionality
si: Foobar shoeewing kischän-sünk funzionality
source-image:
height: 800
url: https://www.example.org/en_US/main.png
width: 600
thumbnails:
- height: 423
width: 752
url: https://www.example.org/en_US/main-large.png
- height: 63
width: 112
url: https://www.example.org/en_US/main-small.png
- source-video:
container: matroska
codec: av1
height: 900
url: https://www.example.org/en_US/screencast.mkv
width: 1600]]></programlisting>
<literallayout>Field info: <property>value-type</property>:<emphasis>list</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-compulsoryfordesktop">
<term>CompulsoryForDesktop</term>
<listitem>
<para>See <xref linkend="tag-ct-compulsory_for_desktop"/>.</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>str</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-provides">
<term>Provides</term>
<listitem>
<para>See <xref linkend="tag-ct-provides"/>.</para>
<para>
The <literal>Provides</literal> field is of type <emphasis>dict</emphasis> and can have the following keys set with
the described allowed values:
</para>
<variablelist>
<varlistentry>
<term>libraries</term>
<listitem>
<para>
A list of provided library names.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>list(str)</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>binaries</term>
<listitem>
<para>
A list of provided binaries in <envar>PATH</envar>.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>list(str)</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>fonts</term>
<listitem>
<para>
A list of provided fonts. Each font entry is of type <emphasis>dict</emphasis> and has a
<literal>name</literal> key.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>list(dict)</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>modaliases</term>
<listitem>
<para>
A list of modalias globs representing the hardware types this component handles.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>list(str)</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>mediatypes</term>
<listitem>
<para>
A list of media types (MIME types) this component can handle.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>list(str)</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>firmware</term>
<listitem>
<para>
A list of provided firmware. Each firmware entry is of type <emphasis>dict</emphasis> and has a
<literal>type</literal> key, which has either <code>runtime</code> or <code>flashed</code> as
value.
Firmware of type <code>flashed</code> has a <literal>guid</literal> key, containing the GUID of the device
the firmware is flashed on, while firmware of type <code>runtime</code> has a <literal>file</literal> key,
containing the firmware filename which the kernel is looking for.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>list(dict)</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>python3</term>
<listitem>
<para>
A list of Python 3 modules this component provides.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>list(str)</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>dbus</term>
<listitem>
<para>
A list of provided DBus services. Each service entry in the list is of type <emphasis>dict</emphasis> and has a
<literal>type</literal> key, which has either <code>system</code> or <code>user</code> as
value. <code>user</code> means the DBus service name is for a user/session service, while <code>system</code> means
it describes a system service.
The <literal>service</literal> key contains the name of the DBus service file. All dict values are of type <emphasis>str</emphasis>.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>list(dict)</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>ids</term>
<listitem>
<para>
A list of component-IDs that this component is able to provide all functionality of.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>list(str)</emphasis></literallayout>
</listitem>
</varlistentry>
</variablelist>
<literallayout>Field info: <property>value-type</property>:<emphasis>dict</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-developer">
<term>DeveloperName</term>
<listitem>
<para>See <xref linkend="tag-ct-developer"/>.</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>dict</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-launchable">
<term>Launchable</term>
<listitem>
<para>See <xref linkend="tag-ct-launchable"/>.</para>
<para>
A dictionary containing the launchable-type as key, and a list of IDs used for launching the application as value.
</para>
<para>
Example:
</para>
<programlisting language="YAML"><![CDATA[Launchable:
desktop-id:
- org.gnome.Sysprof2.desktop]]></programlisting>
<literallayout>Field info: <property>value-type</property>:<emphasis>dict(list)</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-releases">
<term>Releases</term>
<listitem>
<para>See <xref linkend="tag-ct-releases"/>.</para>
<para>
The <literal>Releases</literal> contains a list of releases sorted latest-to-oldest, where each list items contains the following fields/keys:
</para>
<variablelist>
<varlistentry>
<term>version</term>
<listitem>
<para>
The version number of this release.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>str</emphasis>, <property>required</property>:<emphasis>yes</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>type</term>
<listitem>
<para>
The release type. Allowed values are:
</para>
<itemizedlist>
<listitem><para><code>stable</code></para></listitem>
<listitem><para><code>development</code></para></listitem>
</itemizedlist>
<para>
By default, if no release type is defined, <code>stable</code> is assumed.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>str</emphasis>, <property>required</property>:<emphasis>no</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>urgency</term>
<listitem>
<para>
How important it is to install the new release as an update. Allowed values are:
</para>
<itemizedlist>
<listitem><para><code>low</code></para></listitem>
<listitem><para><code>medium</code></para></listitem>
<listitem><para><code>high</code></para></listitem>
<listitem><para><code>critical</code></para></listitem>
</itemizedlist>
<para>
If no urgency is defined, a <code>medium</code> urgency is implicitly assumed.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>str</emphasis>, <property>required</property>:<emphasis>no</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>unix-timestamp</term>
<listitem>
<para>
The UNIX timestamp of when this software was released.
</para>
<para>
One of the <literal>unix-timestamp</literal> or <literal>date</literal> fields must be present.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>int</emphasis>, <property>required</property>:<emphasis>maybe</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>date</term>
<listitem>
<para>
The <ulink url="https://en.wikipedia.org/wiki/ISO_8601">ISO 8601</ulink> complete date of when this software was released.
</para>
<para>
One of the <literal>unix-timestamp</literal> or <literal>date</literal> fields must be present.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>str</emphasis>, <property>required</property>:<emphasis>maybe</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>description</term>
<listitem>
<para>
A description of this release. May contain allowed HTML markup.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>localized</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>issues</term>
<listitem>
<para>
A list of dictionaries describing the issues resolved by this release. The dictionaries contain a
<literal>id</literal> key for the value of an issue as described in the XML specification, as well as a
<literal>type</literal> and <literal>url</literal> key for the tag properties of the same name described in the
XML AppStream specification.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>list(dict)</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry>
<term>artifacts</term>
<listitem>
<para>
A list of dictionaries describing the artifacts published for this release. Refer to the XML specification
for details, which is mapped to YAML following the usual scheme.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>list(dict)</emphasis></literallayout>
</listitem>
</varlistentry>
</variablelist>
<para>
It is recommended to order this list starting with the latest timestamp to the oldest one.
</para>
<para>
Example:
</para>
<programlisting language="YAML"><![CDATA[Releases:
- version: '1.8'
unix-timestamp: 1424116753
description:
C: |
<p>This stable release fixes the following bug:</p>
<ul>
<li>CPU no longer overheats when you hold down spacebar</li>
</ul>
- version: '1.2'
unix-timestamp: 1397253600
- version: '1.0'
unix-timestamp: 1345932000]]></programlisting>
<literallayout>Field info: <property>value-type</property>:<emphasis>list(dict)</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-languages">
<term>Languages</term>
<listitem>
<para>See <xref linkend="tag-ct-languages"/>.</para>
<para>
The languages list is a list of dictionaries. They must contain a <literal>percentage</literal>
key, indicating the completion of translation for this language, and a <literal>locale</literal>
key, with the locale string as value.
</para>
<para>
Example:
</para>
<programlisting language="YAML"><![CDATA[Languages:
- locale: gu
percentage: 96
- locale: ca@valencia
percentage: 94
- locale: de
percentage: 91
- locale: eo
percentage: 93]]></programlisting>
<literallayout>Field info: <property>value-type</property>:<emphasis>list(dict)</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-bundles">
<term>Bundles</term>
<listitem>
<para>See <xref linkend="tag-ct-bundle"/>.</para>
<para>
The <literal>Bundles</literal> contains a list of dictionaries with the keys <literal>type</literal>, having the ID for a specific bundling
system (e.g. <code>flatpak</code> or <code>limba</code>) as value, and <literal>id</literal> for the associated bundle-id.
See the XML tag description for information on all valid bundling systems.
</para>
<para>
Example:
</para>
<programlisting language="YAML"><![CDATA[Bundles:
- type: limba
id: foobar-1.0.2]]></programlisting>
<literallayout>Field info: <property>value-type</property>:<emphasis>list</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-extends">
<term>Extends</term>
<listitem>
<para>See <xref linkend="tag-extends"/>.</para>
<para>
Contains a list of AppStream IDs of the other component extended by the described component.
This field may only be used with component-type <literal>addon</literal>.
</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>list(str)</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-suggests">
<term>Suggests</term>
<listitem>
<para>See <xref linkend="tag-ct-suggests"/>.</para>
<para>
A list of dictionaries containing suggested software components. The dictionaries must have a <literal>type</literal> key
with the string value <code>upstream</code> or <code>heuristic</code> depending on where the suggestion originates from.
The also must have a <literal>ids</literal> key containing a list of component-ids of the suggested software.
</para>
<para>
Example:
</para>
<programlisting language="YAML"><![CDATA[Suggests:
- type: upstream
ids:
- org.example.Awesome
- type: heuristic
ids:
- org.example.Test1
- org.example.Test2]]></programlisting>
<literallayout>Field info: <property>value-type</property>:<emphasis>list(dict)</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-content_rating">
<term>ContentRating</term>
<listitem>
<para>See <xref linkend="tag-ct-content_rating"/>.</para>
<para>
A dictionary containing the rating system as key, and a dictionary of rating-values as value.
The value-dictionary itself has the content rating IDs as keys and the intensity values as values.
The intensity values as well as IDs and rating system names match the values from the XML exactly.
</para>
<para>
Example:
</para>
<programlisting language="YAML"><![CDATA[ContentRating:
oars-1.0:
drugs-alcohol: moderate
language-humor: mild]]></programlisting>
<literallayout>Field info: <property>value-type</property>:<emphasis>dict(dict)</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-relations">
<term>Requires, Recommends & Supports</term>
<listitem>
<para>See <xref linkend="tag-relations"/>.</para>
<para>
A list of dictionaries containing the referenced items. The dictionaries in the list must have one key denoting the item type, which has the
respective item value as value. Refer to the XML description for a list of possible types.
</para>
<para>
Each dictionary may have a <literal>version</literal> field with contains a version comparison string. The first two characters denote the version
comparison operation, and are followed by the version number to be compared with. The comparison operation may be one of:
</para>
<itemizedlist>
<listitem><para><code>==</code> - Equal to</para></listitem>
<listitem><para><code>!=</code> - Not equal to</para></listitem>
<listitem><para><code><<</code> - Less than</para></listitem>
<listitem><para><code>>></code> - Greater than</para></listitem>
<listitem><para><code><=</code> - Less than or equal to</para></listitem>
<listitem><para><code>>=</code> - Greater than or equal to</para></listitem>
</itemizedlist>
<para>
Example:
</para>
<programlisting language="YAML"><![CDATA[Recommends:
- memory: '2500'
- modalias: usb:v1130p0202d*
Requires:
- kernel: Linux
version: '>= 4.15'
- id: org.example.TestDependency
version: == 1.2]]></programlisting>
<literallayout>Field info: <property>value-type</property>:<emphasis>list(dict)</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-agreements">
<term>Agreements</term>
<listitem>
<para>See <xref linkend="tag-ct-agreement"/>.</para>
<para>
A list containing the agreements as dictionaries, with a <literal>sections</literal> key containing a list of sections.
All dict values are the same as the respective XML tag values / properties.
</para>
<para>
Example:
</para>
<programlisting language="YAML"><![CDATA[Agreements:
- type: eula
version_id: 1.2.3a
sections:
- type: intro
name:
C: Intro\n"
description:
C: >-
<p>If it breaks, you get to keep both pieces.</p>]]></programlisting>
<literallayout>Field info: <property>value-type</property>:<emphasis>list(dict)</emphasis></literallayout>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-tags">
<term>Tags</term>
<listitem>
<para>See <xref linkend="tag-tags"/>.</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>list(dict)</emphasis></literallayout>
<para>Example:</para>
<programlisting language="YAML"><![CDATA[Tags:
- namespace: lvfs
tag: vendor-2021q1
- namespace: plasma
tag: featured]]></programlisting>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-references">
<term>References</term>
<listitem>
<para>See <xref linkend="tag-references"/>.</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>list(dict)</emphasis></literallayout>
<para>Example:</para>
<programlisting language="YAML"><![CDATA[References:
- type: doi
value: 10.1000/182
- type: citation_cff
value: https://example.org/CITATION.cff
- type: registry
value: SCR_000000
registry: SciCrunch]]></programlisting>
</listitem>
</varlistentry>
<varlistentry id="field-dep11-custom">
<term>Custom</term>
<listitem>
<para>See <xref linkend="tag-custom"/>.</para>
<literallayout>Field info: <property>value-type</property>:<emphasis>list(dict)</emphasis></literallayout>
</listitem>
</varlistentry>
</variablelist>
</section>
<section id="spec-dep11-example">
<title>Example YAML file</title>
<para>
This is an example AppStream DEP-11 metadata file:
</para>
<programlisting language="YAML">
<![CDATA[---
File: DEP-11
Version: '0.8'
Origin: chromodoris-main
MediaBaseUrl: https://metadata.tanglu.org/appstream/media/
---
Type: desktop-application
ID: gconf-editor.desktop
Icon:
cached: gconf-editor_gconf-editor.png
Name:
C: Configuration Editor
be@latin: Redaktar naładaŭ
bg: Настройки на програмите
pl: Edytor konfiguracji
Package: gconf-editor
Summary:
C: Directly edit your entire configuration database
ar: حرّر مباشرة كامل قاعدة بيانات الإعدادات.
de: Direkten Zugriff auf Ihre gesamte Konfigurationsdatenbank erlangen
Categories:
- GNOME
- GTK
- System
---
Type: desktop-application
ID: kmplayer.desktop
Icon:
cached: kmplayer_kmplayer.png
Name:
C: KMPlayer
hi: केएम-प्लेयर
hne: केएम-प्लेयर
ku: KMLêdar
pa: KM-ਪਲੇਅਰ
sr: КМ‑плејер
sr@ijekavian: КМ‑плејер
sv: Kmplayer
Package: kmplayer
Summary:
C: KDE interface for MPlayer
Categories:
- Qt
- KDE
- AudioVideo
- Player
Provides:
mediatypes:
- application/ogg
- application/smil
- application/vnd.ms-asf
- application/vnd.rn-realmedia
- application/x-kmplayer
- video/webm
- video/x-avi
---
ID: texstudio.desktop
Type: desktop-application
Package: texstudio
Name:
C: TeXstudio
Summary:
C: LaTeX development environment
fr: Environnement de développement LaTeX
Description:
C: <p>TeXstudio is an integrated writing environment for creating LaTeX documents. It integrates editing,
building and viewing into a single frontend.</p><p>Our goal is to make writing LaTeX as easy and comfortable
as possible. This is achieved through a rich feature set including:</p>
Icon:
cached: texstudio_texstudio.png
Keywords:
C:
- editor
- latex
- pdflatex
- xelatex
- lualatex
- context
- bibtex
ProjectLicense: GPL-2.0
Url:
homepage: https://texstudio.sourceforge.net/
Categories:
- Office
- Publishing
Provides:
mediatypes:
- text/x-tex
Screenshots:
- default: true
source-image:
height: 756
url: texstudio_2.8.4+debian-3_amd64/screenshots/source/screenshot-1.png
width: 1344
thumbnails:
- height: 423
url: texstudio_2.8.4+debian-3_amd64/screenshots/752x423/screenshot-1.png
width: 752
- height: 351
url: texstudio_2.8.4+debian-3_amd64/screenshots/624x351/screenshot-1.png
width: 624
- height: 63
url: texstudio_2.8.4+debian-3_amd64/screenshots/112x63/screenshot-1.png
width: 112]]></programlisting>
</section>
</section>
|