[projects/template-specs] add working sample how to update vim tags

glen glen at pld-linux.org
Wed Jun 25 09:29:27 CEST 2014


commit a844a5ab0f79e0df4303e93c7414cbbfdcaa8a8b
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Jun 25 10:29:18 2014 +0300

    add working sample how to update vim tags

 vim-plugin.spec | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/vim-plugin.spec b/vim-plugin.spec
index 5a6d67e..cb92eaf 100644
--- a/vim-plugin.spec
+++ b/vim-plugin.spec
@@ -7,7 +7,7 @@ Version:	0.1
 Release:	0.1
 License:	Vim
 Group:		Applications/Editors/Vim
-Source0:	http://www.vim.org/scripts/download_script.php?src_id=xxx#/%{plugin}.zip
+Source0:	http://www.vim.org/scripts/download_script.php?src_id=xxx&/%{plugin}-%{version}.zip
 # Source0-md5:	-
 URL:		-
 # for _vimdatadir
@@ -31,6 +31,15 @@ cp -a . $RPM_BUILD_ROOT%{_vimdatadir}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%if 0
+# if packaging doc/* files
+%post
+echo 'helptags %{_vimdatadir}/doc' | vim -e -s -V0 -R -n --noplugin
+
+%postun
+echo 'helptags %{_vimdatadir}/doc' | vim -e -s -V0 -R -n --noplugin
+%endif
+
 %files
 %defattr(644,root,root,755)
 %doc %{_vimdatadir}/doc/*.txt
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/a844a5ab0f79e0df4303e93c7414cbbfdcaa8a8b



More information about the pld-cvs-commit mailing list