diff --git a/neovim.changes b/neovim.changes index 85a6a03..33ec945 100644 --- a/neovim.changes +++ b/neovim.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Aug 25 20:15:52 UTC 2018 - mcepl@suse.com + +- Put the system-wide config in /etc, and just a symlink to $VIM + (hopefully finally fixes boo#1098800) + ------------------------------------------------------------------- Sat Aug 18 15:04:51 UTC 2018 - Matěj Cepl diff --git a/neovim.spec b/neovim.spec index 659ab02..2be2a4c 100644 --- a/neovim.spec +++ b/neovim.spec @@ -103,7 +103,9 @@ make %{?_smp_mflags} %cmake_install # system-wide configuration file -install -D -m 644 -p %{SOURCE1} %{buildroot}%{_datadir}/nvim/sysinit.vim +install -D -m 644 -p %{SOURCE1} %{buildroot}%{_sysconfdir}/nvim/sysinit.vim +ln -sf %{_sysconfdir}/nvim/sysinit.vim %{buildroot}%{_datadir}/nvim/sysinit.vim + %if 0%{?suse_version} install -p -m 644 %{SOURCE3} %{buildroot}%{_datadir}/nvim/template.spec %else @@ -131,6 +133,8 @@ install -p -m 644 %{SOURCE2} %{buildroot}%{_datadir}/nvim/template.spec %{_datadir}/applications/nvim.desktop %{_datadir}/pixmaps/nvim.png %{_mandir}/man1/nvim.1%{?ext_man} +%dir %{_sysconfdir}/nvim +%config(noreplace) %{_sysconfdir}/nvim/sysinit.vim %files lang -f nvim.lang