On 15 October 2014 16:38, Zbigniew Jędrzejewski-Szmek <zbys...@in.waw.pl> wrote: > maybe you could include some more information how the font appdata > files themselves should look, as opposed to the one-level-up metadata > files
Right, the examples I gave there are the actual files; that is the post-0.6 AppStream version which only works with Fedora > 20. > E.g. I looked at the schema at > http://people.freedesktop.org/~hughsient/appdata/ > and they don't seem to have the string "font" in them at all. Right, those are AppData files for applications, not MetaInfo files for fonts and addons. When F20 is EOL I'll update that page to the new metadata format. > Some more examples would be good too. Does [1] look OK? > appdata-validate complains about missing screenshots, are those necessary > for fonts' appdata? Right; you need to use a metainfo file and a git version of appstream-glib to validate those. I only wrote the code 6 hours ago :) > [1] http://pkgs.fedoraproject.org/cgit/unifont.git/tree/unifont.appdata.xml Not appdata.xml, but metainfo.xml -- This is the patch I want to apply for lato: diff --git a/lato-fonts.spec b/lato-fonts.spec index 0eb3837..e0f1fa8 100644 --- a/lato-fonts.spec +++ b/lato-fonts.spec @@ -64,9 +64,30 @@ install -m 0755 -d $RPM_BUILD_ROOT%{_fontconfig_templatedir} $RPM_BUILD_ROOT%{_f install -m 0644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_fontconfig_templatedir}/%{fontconf} ln -s %{_fontconfig_templatedir}/%{fontconf} $RPM_BUILD_ROOT%{_fontconfig_confdir}/%{fontconf} +# Add AppStream metadata +mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata +cat > $RPM_BUILD_ROOT%{_datadir}/appdata/Lato.metainfo.xml <<EOF +<?xml version="1.0" encoding="UTF-8"?> +<!-- Copyright 2014 Richard Hughes <rich...@hughsie.com> --> +<component type="font"> + <id>Lato</id> + <metadata_license>CC0-1.0</metadata_license> + <name>Lato</name> + <summary>A classical sans-serif font family</summary> + <description> + <p> + The semi-rounded details of the letters give Lato a feeling of warmth, + while the strong structure provides stability and seriousness. + </p> + </description> + <updatecontact>richard_at_hughsie_dot_com</updatecontact> + <url type="homepage">http://www.latofonts.com/</url> +</component> +EOF %_font_pkg -f %{fontconf} *.ttf %doc Lato2OFL/{OFL.txt,README.txt} +%{_datadir}/appdata/Lato.metainfo.xml Richard -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct