diff options
author | Vít Ondruch <vondruch@redhat.com> | 2015-05-12 13:22:04 +0200 |
---|---|---|
committer | Vít Ondruch <vondruch@redhat.com> | 2015-05-12 13:35:42 +0200 |
commit | ffe4f95c4f3707288ba1c893c050e3f6c201b17e (patch) | |
tree | 1a77c0472f879956a20a4b38d12d7e469637b28d | |
parent | 4d0ecae39e4efda2de7046e53122da454847e4b8 (diff) | |
download | vim-fugitive-ffe4f95c4f3707288ba1c893c050e3f6c201b17e.tar.gz vim-fugitive-ffe4f95c4f3707288ba1c893c050e3f6c201b17e.tar.xz vim-fugitive-ffe4f95c4f3707288ba1c893c050e3f6c201b17e.zip |
Add gnome-software plugin metadata.
-rw-r--r-- | vim-fugitive.metainfo.xml | 11 | ||||
-rw-r--r-- | vim-fugitive.spec | 10 |
2 files changed, 21 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<component type="addon"> +<id>vim-fugitive</id> +<extends>gvim.desktop</extends> +<name>fugitive.vim</name> +<summary>A Git wrapper so awesome, it should be illegal</summary> +<url type="homepage">http://www.vim.org/scripts/script.php?script_id=2975</url> +<metadata_license>CC0-1.0</metadata_license> +<project_license>VIM</project_license> +<updatecontact>v.ondruch@gmail.com</updatecontact> +</component> 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 |