# _without_gtk - without gtk+-based gvim support
# _without_gnome - without gnome-based gvim support
# _with_ispell - with spell checking (non-standard feature; disables RIGHTLEFT and FKMAP)
-# _with_python - with support for pyhon scripts
-# _with_perl - with support for perl scripts
+# _with_perl - with perl interp
+# _with_python - with python interp
+# _with_ruby - with ruby interp
+# _with_tcl - with tcl interp
%define _ver 6.0
-%define _patchlevel 158
+%define _patchlevel 208
Summary: Vi IMproved - a Vi clone
Summary(de): VIsual editor iMproved
Summary(es): Editor visual incrementado
%{!?_without_static:BuildRequires: ncurses-static}
%{?_with_perl:BuildRequires: perl-devel}
%{?_with_python:BuildRequires: python-devel}
+%{?_with_ruby:BuildRequires: ruby}
+%{?_with_tcl:BuildRequires: tcl-devel}
Requires: %{name}-rt = %{version}
%{?_without_static:Requires: %{name}-static = %{version}}
Obsoletes: vim-enhanced
%{?_with_ispell:%patch4 -p1}
# these patches are to "extra" package which we don't need (nor use)
-rm -f patches/6.0.{027,048,053,064,070,073,093,106,107,115,116,117,119,123,121,122,125,135}
+rm -f patches/6.0.{027,048,053,064,070,073,093,106,107,115,116,117,119,123,121,122,125,135,161,162,164,165,179,186,188,205,207}
# apply the rest of official patches
for f in patches/6.0.* ; do
echo "Applying official patch `basename $f` ..."
%{?_with_perl:--enable-perlinterp} \
%{!?_with_python:--disable-pythoninterp} \
%{?_with_python:--enable-pythoninterp} \
- --disable-rubyinterp \
+ %{!?_with_ruby:--disable-rubyinterp} \
+ %{?_with_ruby:--enable-rubyinterp} \
+ %{!?_with_tcl:--disable-tclinterp} \
+ %{?_with_tcl:--enable-tclinterp} \
--enable-cscope \
--enable-gpm \
--with-features=huge \
--without-x \
--disable-perlinterp \
--disable-pythoninterp \
+ --disable-rubyinterp \
--disable-tclinterp \
--disable-cscope \
--disable-gpm \
%{?_with_perl:--enable-perlinterp} \
%{!?_with_python:--disable-pythoninterp} \
%{?_with_python:--enable-pythoninterp} \
+ %{!?_with_ruby:--disable-rubyinterp} \
+ %{?_with_ruby:--enable-rubyinterp} \
+ %{!?_with_tcl:--disable-tclinterp} \
+ %{?_with_tcl:--enable-tclinterp} \
--enable-cscope \
--enable-fontset \
--disable-gpm \
%{?_with_perl:--enable-perlinterp} \
%{!?_with_python:--disable-pythoninterp} \
%{?_with_python:--enable-pythoninterp} \
+ %{!?_with_ruby:--disable-rubyinterp} \
+ %{?_with_ruby:--enable-rubyinterp} \
+ %{!?_with_tcl:--disable-tclinterp} \
+ %{?_with_tcl:--enable-tclinterp} \
--enable-multibyte \
--enable-cscope \
--enable-fontset \
%{?_with_perl:--enable-perlinterp} \
%{!?_with_python:--disable-pythoninterp} \
%{?_with_python:--enable-pythoninterp} \
+ %{!?_with_ruby:--disable-rubyinterp} \
+ %{?_with_ruby:--enable-rubyinterp} \
+ %{!?_with_tcl:--disable-tclinterp} \
+ %{?_with_tcl:--enable-tclinterp} \
--disable-gpm \
--enable-cscope \
--enable-fontset \
%{?_with_perl:--enable-perlinterp} \
%{!?_with_python:--disable-pythoninterp} \
%{?_with_python:--enable-pythoninterp} \
+ %{!?_with_ruby:--disable-rubyinterp} \
+ %{?_with_ruby:--enable-rubyinterp} \
+ %{!?_with_tcl:--disable-tclinterp} \
+ %{?_with_tcl:--enable-tclinterp} \
--disable-gpm \
--enable-cscope \
--enable-fontset \
$RPM_BUILD_ROOT{%{_prefix}/X11R6/bin,%{_applnkdir}/Development/Editors}
%{__make} install DESTDIR=$RPM_BUILD_ROOT
-rm $RPM_BUILD_ROOT%{_bindir}/*
+rm -f $RPM_BUILD_ROOT%{_bindir}/*
%{!?_without_static:install src/vim.ncurses $RPM_BUILD_ROOT%{_bindir}/vim}
%{?_without_static:install src/vim.ncurses $RPM_BUILD_ROOT/bin/vi}