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