Summary: Vim - Text editor Name: vim Version: 7.2b Release: 1 License: GPL Group: System/Base Source: ftp://ftp.vim.org/pub/vim/unix/%{name}-%{version}.tar.bz2 %description Vim is a improved clone of the Vi editor. %prep %setup -q -n vim72b echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h %build ./configure --prefix=/usr --with-features=huge --enable-multibyte make %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install ln -sv vim $RPM_BUILD_ROOT/usr/bin/vi %clean rm -rf $RPM_BUILD_ROOT %post if [ ! -f /etc/vimrc ];then echo -e "Creating /etc/vimrc now: \c " cat > /etc/vimrc << "EOF" "Begin /etc/vimrc set nocompatible set backspace=2 syntax on if (&term == "iterm") || (&term == "putty") set background=dark endif set nu set nowrap hi StatusLine cterm=none ctermbg=darkblue ctermfg=white hi Comment cterm=none ctermbg=none ctermfg=cyan set laststatus=2 " End /etc/vimrc EOF echo "Done." fi %files %defattr(-,root,root) / %changelog * Sun Aug 03 2008 Jonathan Norman 7.2b-1 - Upgraded from 7.1-3 to 7.2b-1 - Removed patch - Fix listed files - Changed source dir to reflect new version * Thu May 15 2008 Jonathan Norman 7.1-3 - Added multibyte support - Added branch update patch - Fixed vimrc path - Added default vimrc for BSL * Sat Mar 30 2008 Jonathan Norman 7.1-2 - Added vi symbolic link