]> git.pld-linux.org Git - projects/template-specs.git/blobdiff - vim-plugin.spec
lib: fortify source example
[projects/template-specs.git] / vim-plugin.spec
index 8a2cc2e1ce142a025e3b5ca6b7567af1fc763974..204acc8627f45c449922ddf2830ec2bbb89f45c0 100644 (file)
@@ -1,12 +1,13 @@
 # TODO:
 # - What to do with .vimup file?
-Summary:       Vim plugin: NAME
-Name:          vim-plugin-NAME
-Version:       3.0
-Release:       %{gitver}.0.1
-License:       vim
+%define                plugin  PLUGIN_NAME
+Summary:       Vim plugin: PLUGIN_NAME
+Name:          vim-plugin-%{plugin}
+Version:       0.1
+Release:       0.1
+License:       Vim
 Group:         Applications/Editors/Vim
-Source0:       -
+Source0:       http://www.vim.org/scripts/download_script.php?src_id=xxx&/%{plugin}-%{version}.zip
 # Source0-md5: -
 URL:           -
 # for _vimdatadir
@@ -30,6 +31,16 @@ 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)
-%{_vimdatadir}/*
+%doc %{_vimdatadir}/doc/*.txt
+%{_vimdatadir}/plugin/*.vim
This page took 0.026334 seconds and 4 git commands to generate.