]> git.pld-linux.org Git - projects/template-specs.git/blobdiff - vim-plugin.spec
golang: alternative install
[projects/template-specs.git] / vim-plugin.spec
index 254b7c852deeb34d910eb12f3e2b7f74da748451..204acc8627f45c449922ddf2830ec2bbb89f45c0 100644 (file)
@@ -1,20 +1,21 @@
 # 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
-Requires:      vim-rt >= 4:6.3.058-3
+Requires:      vim-rt >= 4:7.2.170
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _vimdatadir     %{_datadir}/vim/vimfiles
+%define                _vimdatadir     %{_datadir}/vim
 
 %description
 Vim plugin for foo and even bar.
@@ -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.086925 seconds and 4 git commands to generate.