diff options
Diffstat (limited to 'vim-fugitive.spec')
-rw-r--r-- | vim-fugitive.spec | 10 |
1 files changed, 10 insertions, 0 deletions
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 |