Name: vim-clang-completion Version: 0.41 Release: 1%{?dist} Summary: clang plugin for accurately completing C/C++ code in vim Group: Applications/Editors License: bsd, llvm URL: http://www.vim.org/scripts/script.php?script_id=3302 # The source of this package was pulled from the upstream's github. # Use the following commands to generate the tarball: # git clone https://github.com/Rip-Rip/clang_complete.git vim-clang-completion-20111129 # tar -cJvf vim-clang-completion-20111129.tar.xz vim-clang-completion-20111129 Source0: clang_complete-20111129git1e907b0.tar.xz BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildArch: noarch Requires: vim>=7.3 clang # Conflict with vim-omnicppcomplete. From the clang_complete.txt doc file: # Note: This plugin is incompatible with omnicppcomplete due to the # unconditionnaly set mapping done by omnicppcomplete. So don't forget to # suppress it before using this plugin. # TODO remove if omni_ not packaged Conflicts: vim-omnicppcomplete %description This plugin use clang for accurately completing C, C++, Objective-C and Objective-C++ code in Vim. %prep %setup -q -c vim-clang-completion-%{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