forked from pool/neovim
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:
parent
06dc598bac
commit
17373b35b6
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user