From 17373b35b608b8c78594dc105550b94f7a211b29eb3d7e9cc357778b90f6d7df Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Fri, 8 Jun 2018 08:53:26 +0000 Subject: [PATCH] Accepting request 614942 from home:mvyskocil:branches:editors - Add a support for update-alternatives, so users can change their "vim" to neovim - Mark LICENSE file as %license OBS-URL: https://build.opensuse.org/request/show/614942 OBS-URL: https://build.opensuse.org/package/show/editors/neovim?expand=0&rev=26 --- neovim.changes | 7 +++++++ neovim.spec | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/neovim.changes b/neovim.changes index 15c08c6..9bda02a 100644 --- a/neovim.changes +++ b/neovim.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jun 7 13:25:23 UTC 2018 - michal.vyskocil@gmail.com + +- Add a support for update-alternatives, so users can change their + "vim" to neovim +- Mark LICENSE file as %license + ------------------------------------------------------------------- Fri May 25 07:37:55 UTC 2018 - mliska@suse.cz diff --git a/neovim.spec b/neovim.spec index f6dc059..503a5e7 100644 --- a/neovim.spec +++ b/neovim.spec @@ -89,15 +89,20 @@ make %{?_smp_mflags} %find_lang nvim %post +%{_sbindir}/update-alternatives --install %{_bindir}/vim vim %{_bindir}/nvim 15 %desktop_database_post %icon_theme_cache_post %postun +if [ ! -e %{_bindir}/nvim ] ; then + %{_sbindir}/update-alternatives --remove vim %{_bindir}/nvim +fi %desktop_database_postun %icon_theme_cache_postun %files -%doc BACKERS.md CONTRIBUTING.md LICENSE README.md +%doc BACKERS.md CONTRIBUTING.md README.md +%license LICENSE %{_bindir}/nvim %{_datadir}/nvim/ %{_datadir}/applications/nvim.desktop