diff --git a/vim.spec b/vim.spec index 1f2186c..b465589 100644 --- a/vim.spec +++ b/vim.spec @@ -585,10 +585,12 @@ cat > $RPM_BUILD_ROOT%{_datadir}/metainfo/gvim.appdata.xml <<EOF EmailAddress: Bram@moolenaar.net> SentUpstream: 2014-05-22 --> -<application> - <id type="desktop">gvim.desktop</id> +<component type="desktop-application"> + <id>org.vim.Vim</id> + <name>GVim</name> <metadata_license>CC0-1.0</metadata_license> <project_license>Vim</project_license> + <summary>The VIM version of the vi editor for the X Window System</summary> <description> <p> Vim is an advanced text editor that seeks to provide the power of the @@ -604,13 +606,17 @@ SentUpstream: 2014-05-22 editing configuration files. </p> </description> + <releases> + <release version="%{version}" date="%(date +%F -r %{SOURCE0})" /> + </releases> <screenshots> <screenshot type="default"> <image>https://raw.githubusercontent.com/zdohnal/vim/zdohnal-screenshot/gvim16_9.png</image> </screenshot> </screenshots> <url type="homepage">http://www.vim.org/</url> -</application> + <content_rating type="oars-1.1"/> +</component> EOF appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*.appdata.xml