Name: vim-omnicppcomplete Version: 0.41 Release: 1%{?dist} Summary: ftplugin for C/C++ autocompletion using ctags database Group: Applications/Editors # Dunno the License ?! License: Vim URL: http://www.vim.org/scripts/script.php?script_id=1520 # The tarball could be downloaded from: # http://www.vim.org/scripts/download_script.php?src_id=7722 Source0: omnicppcomplete-0.41.zip BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildArch: noarch Requires: vim ctags-etags %description This script provides an omnifunc cppcomplete function for vim. You can use the omni completion (intellisense) in C and C++ files. This is a full vim script and you only need a ctags database. %prep %setup -q -c vim-omnicppcomplete-%{version} %build #nothing to build %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/after/ftplugin mkdir -p $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/doc mkdir -p $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/autoload cp -pr after/ftplugin $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/after/ cp -pr autoload/omni $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/autoload/ cp -p doc/omnicppcomplete.txt $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/doc/ %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %files vim %defattr(-,root,root,-) %doc %{_datadir}/vim/vimfiles/doc/omnicppcomplete.txt %{_datadir}/vim/vimfiles/after/ftplugin/cpp.vim %{_datadir}/vim/vimfiles/after/ftplugin/c.vim %{_datadir}/vim/vimfiles/autoload/omni/* %changelog * Sun Nov 28 2011 Kévin Raymond 0.41-1 - Initial release