Summary: VIsual editor iMproved
Name: vim
Version: 4.6
Release: 4
Copyright: freeware
Group: Applications/Editors
Source0: ftp://ftp.oce.nl/pub/misc/vim/unix/vim-4.6.tar.gz
Source1: vimx.wmconfig
Patch: vim-4.2-speed_t.patch
Patch1: vim-4.2-glibc.patch

%changelog

* Sun Nov 09 1997 Donnie Barnes <djb@redhat.com>

- fixed missing man page

* Wed Oct 22 1997 Donnie Barnes <djb@redhat.com>

- added wmconfig entry to vim-X11

* Mon Oct 20 1997 Donnie Barnes <djb@redhat.com>

- upgraded from 4.5 to 4.6

* Fri Jun 13 1997 Erik Troan <ewt@redhat.com>

- built against glibc

* Tue Mar 25 1997 Michael K. Johnson <johnsonm@redhat.com>

 o Upgraded to 4.5
 o Added ex symlinks

* Tue Mar 11 1997 Michael K. Johnson <johnsonm@redhat.com>

Added view symlink.

%description
The VIsual editor iMproved is an updated and feature-added clone of the 'vi' 
editor that comes with almost all UN*X systems. It adds multiple windows,
multi-level undo, block highliting, and many other features to the standard
vi program.

%package X11
Summary: VIM with X-Windows support
Group: Applications/Editors
Requires: vim

%description X11
This package is a version of VIM with the X-Windows libraries linked in,
allowing you to run VIM as an X-Windows application with a full GUI
interface and mouse support.  You just run 'gvim'.

%prep
%setup
%patch -p1
%patch1 -p1

%build
cd src
./configure --prefix=/usr --with-x=yes --enable-gui --exec-prefix=/usr/X11R6 \

make 
cp vim gvim
make clean
./configure --prefix=/usr --with-x=no --exec-prefix=/

%install
cd src
make install
install -s -m755 gvim /usr/X11R6/bin
cd /bin; ln -sf vim vi
cd /bin; ln -sf vim view
cd /bin; ln -sf vim ex
cd /usr/bin; ln -sf ../../bin/vim vi
cd /usr/bin; ln -sf ../../bin/vim ex
cd /usr/man/man1; ln -sf vim.1 vi.1
ln -sf vim.1 gvim.1
cd /usr/X11R6/bin; ln -sf gvim vimx
mkdir -p /etc/X11/wmconfig
install -m644 -o root -g root $RPM_SOURCE_DIR/vimx.wmconfig /etc/X11/wmconfig/gvim

%files
%doc README
/bin/vim
/bin/vi
/bin/view
/bin/ex
/usr/share/vim
/usr/man/man1/vim.1
/usr/man/man1/vi.1
/usr/bin/vi
/usr/bin/ex

%files X11
%config /etc/X11/wmconfig/gvim
/usr/X11R6/bin/gvim
/usr/X11R6/bin/vimx
/usr/man/man1/vim.1
/usr/man/man1/gvim.1
