From ffe4f95c4f3707288ba1c893c050e3f6c201b17e Mon Sep 17 00:00:00 2001 From: Vít Ondruch Date: Tue, 12 May 2015 13:22:04 +0200 Subject: Add gnome-software plugin metadata. --- vim-fugitive.metainfo.xml | 11 +++++++++++ vim-fugitive.spec | 10 ++++++++++ 2 files changed, 21 insertions(+) create mode 100644 vim-fugitive.metainfo.xml diff --git a/vim-fugitive.metainfo.xml b/vim-fugitive.metainfo.xml new file mode 100644 index 0000000..d51c29a --- /dev/null +++ b/vim-fugitive.metainfo.xml @@ -0,0 +1,11 @@ + + +vim-fugitive +gvim.desktop +fugitive.vim +A Git wrapper so awesome, it should be illegal +http://www.vim.org/scripts/script.php?script_id=2975 +CC0-1.0 +VIM +v.ondruch@gmail.com + diff --git a/vim-fugitive.spec b/vim-fugitive.spec index 39f1375..6f87300 100644 --- a/vim-fugitive.spec +++ b/vim-fugitive.spec @@ -2,6 +2,8 @@ # https://bugzilla.redhat.com/show_bug.cgi?id=844975 %global vimfiles %{_datadir}/vim/vimfiles +%global appdata_dir %{_datadir}/appdata + Name: vim-fugitive Version: 2.2 Release: 1%{?dist} @@ -10,6 +12,9 @@ Group: Applications/Editors License: Vim URL: http://www.vim.org/scripts/script.php?script_id=2975 Source0: https://github.com/tpope/vim-fugitive/archive/v2.2/%{name}-%{version}.tar.gz +# Plug-in AppData for Gnome Software. +# https://github.com/tpope/vim-fugitive/pull/638 +Source1: vim-fugitive.metainfo.xml Requires: vim-common Requires(post): %{_bindir}/vim Requires(postun): %{_bindir}/vim @@ -62,6 +67,10 @@ Oh, and of course there's :Git for running any arbitrary command. mkdir -p %{buildroot}%{vimfiles} cp -pr doc plugin %{buildroot}%{vimfiles} +# Install AppData. +mkdir -p %{buildroot}%{appdata_dir} +install -m 644 %{SOURCE1} %{buildroot}%{appdata_dir} + %post vim -c ":helptags %{vimfiles}/doc" -c :q &> /dev/null @@ -73,6 +82,7 @@ vim -c ":helptags %{vimfiles}/doc" -c :q &> /dev/null %doc CONTRIBUTING.markdown README.markdown %{vimfiles}/doc/* %{vimfiles}/plugin/* +%{appdata_dir}/vim-fugitive.metainfo.xml %changelog -- cgit