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
This commit is contained in:
Martin Pluskal 2018-06-08 08:53:26 +00:00 committed by Git OBS Bridge
parent 06dc598bac
commit 17373b35b6
2 changed files with 13 additions and 1 deletions

View File

@ -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

View File

@ -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