[packages/neovim] package nvimi/init.vim - place for per site global customizations
glen
glen at pld-linux.org
Sun Sep 18 11:42:14 CEST 2016
commit 3fb7b0d69c064c15e6475817c46140f6e386d0d5
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Sep 18 12:20:07 2016 +0300
package nvimi/init.vim - place for per site global customizations
neovim.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/neovim.spec b/neovim.spec
index bf5817f..0f491d2 100644
--- a/neovim.spec
+++ b/neovim.spec
@@ -96,7 +96,8 @@ rm -rf $RPM_BUILD_ROOT
%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_iconsdir}/hicolor/scalable/apps}
+install -d $RPM_BUILD_ROOT{/etc/xdg/nvim,%{_desktopdir},%{_iconsdir}/hicolor/scalable/apps}
+touch $RPM_BUILD_ROOT/etc/xdg/nvim/init.vim
cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/neovim.desktop
cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps/neovim.svg
@@ -147,6 +148,8 @@ EOF
%files -f nvim.lang
%defattr(644,root,root,755)
%doc BACKERS.md CONTRIBUTING.md LICENSE README.md
+%dir /etc/xdg/nvim
+%config(noreplace) %verify(not md5 mtime size) /etc/xdg/nvim/init.vim
%attr(755,root,root) %{_bindir}/nvim
%{_datadir}/nvim
%{_desktopdir}/%{name}.desktop
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/neovim.git/commitdiff/3fb7b0d69c064c15e6475817c46140f6e386d0d5
More information about the pld-cvs-commit
mailing list