2 # - What to do with .vimup file?
3 %define plugin PLUGIN_NAME
4 Summary: Vim plugin: PLUGIN_NAME
5 Name: vim-plugin-%{plugin}
9 Group: Applications/Editors/Vim
10 Source0: http://www.vim.org/scripts/download_script.php?src_id=xxx&/%{plugin}-%{version}.zip
14 Requires: vim-rt >= 4:7.2.170
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _vimdatadir %{_datadir}/vim
21 Vim plugin for foo and even bar.
27 rm -rf $RPM_BUILD_ROOT
28 install -d $RPM_BUILD_ROOT%{_vimdatadir}
29 cp -a . $RPM_BUILD_ROOT%{_vimdatadir}
32 rm -rf $RPM_BUILD_ROOT
35 # if packaging doc/* files
37 echo 'helptags %{_vimdatadir}/doc' | vim -e -s -V0 -R -n --noplugin
40 echo 'helptags %{_vimdatadir}/doc' | vim -e -s -V0 -R -n --noplugin
44 %defattr(644,root,root,755)
45 %doc %{_vimdatadir}/doc/*.txt
46 %{_vimdatadir}/plugin/*.vim