cvsdist 1401a3
%define WITH_SELINUX 1
cvsdist 2c14b3
%define desktop_file 1
cvsdist 2c14b3
%if %{desktop_file}
cvsdist 2c14b3
%define desktop_file_utils_version 0.2.93
cvsdist 2c14b3
%endif
cvsdist e6a956
cvsdist e6a956
# Set this to 1 if you're building the enterprise version
cvsdist e6a956
%define enterprise 0
cvsdist e6a956
cvsdist e6a956
%if %{enterprise}
cvsdist e6a956
# don't build gvim
cvsdist e6a956
%define withgui 0
cvsdist e6a956
# don't include ruby interpreter
cvsdist e6a956
%define withruby 0
cvsdist e6a956
%else
cvsdist 2c14b3
%define withgui 1
cvsdist e6a956
%define withruby 0
cvsdist 4e2ca8
%define withnetbeans 0
cvsdist e6a956
%endif
cvsdist e6a956
cvsdist e6a956
cvsdist 1b4d76
%define baseversion 6.3
cvsdist 1b4d76
%define vimdir vim63
Karsten Hopp 293dff
%define patchlevel 030
cvsdist 2c14b3
cvsdist f1dd31
Summary: The VIM editor.
cvsdist f1dd31
Name: vim
cvsdist e6a956
Version: %{baseversion}.%{patchlevel}
Karsten Hopp 293dff
Release: 1
cvsdist 1b13d4
License: freeware
cvsdist f1dd31
Group: Applications/Editors
cvsdist e6a956
Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}.tar.bz2
cvsdist e6a956
Source1: ftp://ftp.vim.org/pub/vim/extra/vim-%{baseversion}-lang.tar.gz
cvsdist e6a956
Source2: ftp://ftp.vim.org/pub/vim/extra/vim-%{baseversion}-extra.tar.gz
cvsdist e6a956
Source3: gvim.desktop
cvsdist e6a956
Source4: vimrc
cvsdist e6a956
Source5: ftp://ftp.vim.org/pub/vim/patches/README.patches
cvsdist 1401a3
Source6: spec.vim
cvsdist 0c2235
Source7: gvim16.png
cvsdist 0c2235
Source8: gvim32.png
cvsdist 0c2235
Source9: gvim48.png
cvsdist 0c2235
Source10: gvim64.png
cvsdist 705de6
Source11: Changelog.rpm
cvsdist e6a956
Patch2000: vim-4.2-speed_t.patch
cvsdist 1b4d76
Patch2001: vim-5.6a-paths.patch
cvsdist 1b4d76
Patch2002: vim-6.0-fixkeys.patch
cvsdist 1b4d76
Patch2003: vim-6.2-specsyntax.patch
cvsdist 1b4d76
Patch2004: vim-6.0r-crv.patch
cvsdist e6a956
Patch2010: xxd-locale.patch
cvsdist e6a956
# Patches 001 < 999 are patches from the base maintainer.
cvsdist 2c14b3
# If you're as lazy as me, generate the list using
cvsdist 5c68f5
# for i in `seq 1 14`; do printf "Patch%03d: ftp://ftp.vim.org/pub/vim/patches/6.2.%03d\n" $i $i; done
cvsdist 1b4d76
Patch001: ftp://ftp.vim.org/pub/vim/patches/6.3.001
cvsdist 1b4d76
Patch002: ftp://ftp.vim.org/pub/vim/patches/6.3.002
cvsdist 1b4d76
Patch003: ftp://ftp.vim.org/pub/vim/patches/6.3.003
cvsdist 1b4d76
Patch004: ftp://ftp.vim.org/pub/vim/patches/6.3.004
cvsdist 1b4d76
Patch005: ftp://ftp.vim.org/pub/vim/patches/6.3.005
cvsdist 1b4d76
Patch006: ftp://ftp.vim.org/pub/vim/patches/6.3.006
cvsdist 145ee0
Patch007: ftp://ftp.vim.org/pub/vim/patches/6.3.007
cvsdist 145ee0
Patch008: ftp://ftp.vim.org/pub/vim/patches/6.3.008
cvsdist 145ee0
Patch009: ftp://ftp.vim.org/pub/vim/patches/6.3.009
cvsdist 145ee0
Patch010: ftp://ftp.vim.org/pub/vim/patches/6.3.010
cvsdist 145ee0
Patch011: ftp://ftp.vim.org/pub/vim/patches/6.3.011
cvsdist 16173e
Patch012: ftp://ftp.vim.org/pub/vim/patches/6.3.012
cvsdist 16173e
Patch013: ftp://ftp.vim.org/pub/vim/patches/6.3.013
cvsdist 409f8f
Patch014: ftp://ftp.vim.org/pub/vim/patches/6.3.014
cvsdist 705de6
Patch015: ftp://ftp.vim.org/pub/vim/patches/6.3.015
cvsdist d4931c
Patch016: ftp://ftp.vim.org/pub/vim/patches/6.3.016
cvsdist d4931c
Patch017: ftp://ftp.vim.org/pub/vim/patches/6.3.017
cvsdist bd9e91
Patch018: ftp://ftp.vim.org/pub/vim/patches/6.3.018
cvsdist bd9e91
Patch019: ftp://ftp.vim.org/pub/vim/patches/6.3.019
cvsdist bd9e91
Patch020: ftp://ftp.vim.org/pub/vim/patches/6.3.020
cvsdist a35fa1
Patch021: ftp://ftp.vim.org/pub/vim/patches/6.3.021
cvsdist a35fa1
Patch022: ftp://ftp.vim.org/pub/vim/patches/6.3.022
cvsdist a35fa1
Patch023: ftp://ftp.vim.org/pub/vim/patches/6.3.023
cvsdist a35fa1
Patch024: ftp://ftp.vim.org/pub/vim/patches/6.3.024
cvsdist a35fa1
Patch025: ftp://ftp.vim.org/pub/vim/patches/6.3.025
Than Ngo 483797
Patch026: ftp://ftp.vim.org/pub/vim/patches/6.3.026
Than Ngo 483797
Patch027: ftp://ftp.vim.org/pub/vim/patches/6.3.027
Than Ngo 483797
Patch028: ftp://ftp.vim.org/pub/vim/patches/6.3.028
Karsten Hopp fee2fd
Patch029: ftp://ftp.vim.org/pub/vim/patches/6.3.029
Karsten Hopp 293dff
Patch030: ftp://ftp.vim.org/pub/vim/patches/6.3.030
cvsdist 1b4d76
cvsdist 1b4d76
Patch3000: vim-6.1-syntax.patch
cvsdist 1b4d76
Patch3001: vim-6.2-rh1.patch
cvsdist 1b4d76
Patch3002: vim-6.1-rh2.patch
cvsdist 1b4d76
Patch3003: vim-6.1-rh3.patch
cvsdist 1b4d76
Patch3004: vim-6.2-rclocation.patch
cvsdist 1b4d76
Patch3005: vim-6.2-rh4.patch
cvsdist 1b4d76
Patch3006: vim-6.2-rh5.patch
Karsten Hopp 0b345a
Patch3007: vim-6.3-dnssyntax.patch
cvsdist 1b4d76
cvsdist 1b4d76
Patch3100: vim-selinux.patch
cvsdist 1401a3
cvsdist 7a2237
Buildroot: %{_tmppath}/%{name}-%{version}-root
cvsdist e6a956
Buildrequires: python-devel perl libtermcap-devel gettext
cvsdist 0c2235
Buildrequires: libacl-devel gpm-devel
cvsdist e6a956
%if "%{withruby}" == "1"
cvsdist e6a956
Buildrequires: ruby ruby-devel
cvsdist e6a956
%endif
cvsdist 0c2235
%if %{WITH_SELINUX}
cvsdist 0c2235
Buildrequires: libselinux-devel
cvsdist 0c2235
%endif
cvsdist 2c14b3
%if %{desktop_file}
cvsdist 2c14b3
Requires: /usr/bin/desktop-file-install
cvsdist 2c14b3
BuildPrereq: desktop-file-utils >= %{desktop_file_utils_version}
cvsdist 2c14b3
%endif
cvsdist 1b13d4
Epoch: 1
cvsdist f1dd31
cvsdist f1dd31
%description
cvsdist f1dd31
VIM (VIsual editor iMproved) is an updated and improved version of the
cvsdist f1dd31
vi editor.  Vi was the first real screen-based editor for UNIX, and is
cvsdist f1dd31
still very popular.  VIM improves on vi by adding new features:
cvsdist f1dd31
multiple windows, multi-level undo, block highlighting and more.
cvsdist f1dd31
cvsdist f1dd31
%package common
cvsdist f1dd31
Summary: The common files needed by any version of the VIM editor.
cvsdist f1dd31
Group: Applications/Editors
cvsdist f1dd31
cvsdist f1dd31
%description common
cvsdist f1dd31
VIM (VIsual editor iMproved) is an updated and improved version of the
cvsdist f1dd31
vi editor.  Vi was the first real screen-based editor for UNIX, and is
cvsdist f1dd31
still very popular.  VIM improves on vi by adding new features:
cvsdist f1dd31
multiple windows, multi-level undo, block highlighting and more.  The
cvsdist f1dd31
vim-common package contains files which every VIM binary will need in
cvsdist f1dd31
order to run.
cvsdist f1dd31
cvsdist 1401a3
If you are installing vim-enhanced or vim-X11, you'll also need
cvsdist 1401a3
to install the vim-common package.
cvsdist f1dd31
cvsdist f1dd31
%package minimal
cvsdist f1dd31
Summary: A minimal version of the VIM editor.
cvsdist f1dd31
Group: Applications/Editors
cvsdist f1dd31
Obsoletes:  vim
cvsdist f1dd31
cvsdist f1dd31
%description minimal
cvsdist f1dd31
VIM (VIsual editor iMproved) is an updated and improved version of the
cvsdist f1dd31
vi editor.  Vi was the first real screen-based editor for UNIX, and is
cvsdist f1dd31
still very popular.  VIM improves on vi by adding new features:
cvsdist f1dd31
multiple windows, multi-level undo, block highlighting and more. The
cvsdist f1dd31
vim-minimal package includes a minimal version of VIM, which is
cvsdist f1dd31
installed into /bin/vi for use when only the root partition is
cvsdist 1401a3
present. NOTE: The online help is only available when the vim-common
cvsdist 1401a3
package is installed.
cvsdist f1dd31
cvsdist f1dd31
%package enhanced
cvsdist f1dd31
Summary: A version of the VIM editor which includes recent enhancements.
cvsdist f1dd31
Group: Applications/Editors
cvsdist 1401a3
Requires: vim-common 
Karsten Hopp fee2fd
Requires: %(perl -le 'printf("perl >= %vd\n",$^V);')
cvsdist f1dd31
Obsoletes: vim-color
cvsdist f1dd31
cvsdist f1dd31
%description enhanced
cvsdist f1dd31
VIM (VIsual editor iMproved) is an updated and improved version of the
cvsdist f1dd31
vi editor.  Vi was the first real screen-based editor for UNIX, and is
cvsdist f1dd31
still very popular.  VIM improves on vi by adding new features:
cvsdist f1dd31
multiple windows, multi-level undo, block highlighting and more.  The
cvsdist f1dd31
vim-enhanced package contains a version of VIM with extra, recently
cvsdist f1dd31
introduced features like Python and Perl interpreters.
cvsdist f1dd31
cvsdist f1dd31
Install the vim-enhanced package if you'd like to use a version of the
cvsdist f1dd31
VIM editor which includes recently added enhancements like
cvsdist f1dd31
interpreters for the Python and Perl scripting languages.  You'll also
cvsdist f1dd31
need to install the vim-common package.
cvsdist f1dd31
cvsdist 2c14b3
%if "%{withgui}" == "1"
cvsdist f1dd31
%package X11
cvsdist f1dd31
Summary: The VIM version of the vi editor for the X Window System.
cvsdist f1dd31
Group: Applications/Editors
cvsdist 1401a3
Requires: vim-common libattr
cvsdist e6a956
BuildRequires: gtk2-devel
cvsdist f1dd31
cvsdist f1dd31
%description X11
cvsdist f1dd31
VIM (VIsual editor iMproved) is an updated and improved version of the
cvsdist f1dd31
vi editor.  Vi was the first real screen-based editor for UNIX, and is
cvsdist f1dd31
still very popular.  VIM improves on vi by adding new features:
cvsdist f1dd31
multiple windows, multi-level undo, block highlighting and
cvsdist f1dd31
more. VIM-X11 is a version of the VIM editor which will run within the
cvsdist f1dd31
X Window System.  If you install this package, you can run VIM as an X
cvsdist f1dd31
application with a full GUI interface and mouse support.
cvsdist f1dd31
cvsdist f1dd31
Install the vim-X11 package if you'd like to try out a version of vi
cvsdist f1dd31
with graphics and mouse capabilities.  You'll also need to install the
cvsdist f1dd31
vim-common package.
cvsdist 2c14b3
%endif
cvsdist f1dd31
cvsdist f1dd31
%prep
cvsdist e6a956
%setup -q -b 1 -n %{vimdir}
cvsdist 1401a3
cp -f %{SOURCE6} runtime/ftplugin/spec.vim
cvsdist e6a956
%patch2000 -p1 -b .4.2
cvsdist f1dd31
# fix rogue dependencies from sample code
cvsdist f1dd31
chmod -x runtime/tools/mve.awk
cvsdist 1b4d76
%patch2001 -p1 -b .paths
cvsdist f1dd31
find . -name \*.paths | xargs rm -f
cvsdist 1b4d76
%patch2002 -p1 -b .fixkeys
cvsdist 1b4d76
%patch2003 -p1 -b .highlite
cvsdist 1b4d76
%patch2004 -p1 -b .crv
cvsdist e6a956
%patch2010 -p1 -b .xxdloc
cvsdist f1dd31
perl -pi -e "s,bin/nawk,bin/awk,g" runtime/tools/mve.awk
cvsdist f1dd31
cvsdist 2c14b3
# Base patches...
cvsdist 0c2235
# for i in `seq 1 14`; do printf "%%patch%03d -p0 \n" $i; done
cvsdist e6a956
%patch001 -p0
cvsdist e6a956
%patch002 -p0
cvsdist e6a956
%patch003 -p0
cvsdist e6a956
%patch004 -p0
cvsdist e6a956
%patch005 -p0
cvsdist e6a956
%patch006 -p0
cvsdist 145ee0
%patch007 -p0
cvsdist 145ee0
%patch008 -p0
cvsdist 145ee0
%patch009 -p0
cvsdist 145ee0
%patch010 -p0
cvsdist 145ee0
%patch011 -p0
cvsdist 16173e
%patch012 -p0
cvsdist 16173e
%patch013 -p0
cvsdist 409f8f
%patch014 -p0
cvsdist 705de6
%patch015 -p0
cvsdist d4931c
%patch016 -p0
cvsdist d4931c
%patch017 -p0
cvsdist bd9e91
%patch018 -p0
cvsdist bd9e91
%patch019 -p0
cvsdist bd9e91
%patch020 -p0
cvsdist a35fa1
%patch021 -p0
cvsdist a35fa1
# Win32 %patch022 -p0
cvsdist a35fa1
%patch023 -p0
cvsdist a35fa1
%patch024 -p0
cvsdist a35fa1
# Win32 %patch025 -p0
Than Ngo 483797
%patch26 -p0
Than Ngo 483797
# VMS %patch27 -p0
Than Ngo 483797
%patch28 -p0
Karsten Hopp fee2fd
%patch29 -p0
Karsten Hopp 293dff
%patch30 -p0
cvsdist e6a956
cvsdist 1b4d76
%patch3000 -p1 -b .syntx
cvsdist 1b4d76
%patch3001 -p1 -b .rh1
cvsdist 1b4d76
%patch3002 -p1 -b .rh2
cvsdist 1b4d76
%patch3003 -p1 -b .rh3
cvsdist 1b4d76
%patch3004 -p1 -b .rcloc
cvsdist 1b4d76
%patch3005 -p1 -b .rh4
cvsdist 1b4d76
%patch3006 -p1 -b .rh5
Karsten Hopp 0b345a
%patch3007 -p1 -b .dns
cvsdist 1401a3
cvsdist 1401a3
%if %{WITH_SELINUX}
cvsdist 1b4d76
%patch3100 -p1 -b .selinux
cvsdist 1401a3
%endif
cvsdist 840bb7
cvsdist f1dd31
%build
cvsdist f1dd31
cd src
cvsdist 1401a3
autoconf
cvsdist e6a956
perl -pi -e "s,\\\$VIMRUNTIME,/usr/share/vim/%{vimdir},g" os_unix.h
cvsdist e6a956
perl -pi -e "s,\\\$VIM,/usr/share/vim/%{vimdir}/macros,g" os_unix.h
cvsdist 7a2237
cvsdist 7a2237
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"
cvsdist 7a2237
export CXXFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"
cvsdist e6a956
%if "%{withruby}" == "1"
cvsdist e6a956
export  RUBY_CFLAGS=-I$(ruby -r rbconfig -e 'p Config::CONFIG["archdir"]')
cvsdist e6a956
%endif
cvsdist 7a2237
cvsdist e6a956
%if "%{withgui}" == "1"
cvsdist e6a956
%configure --with-features=huge --enable-pythoninterp --enable-perlinterp \
cvsdist e6a956
  --disable-tclinterp --with-x=yes --exec-prefix=/usr/X11R6 \
cvsdist 4e2ca8
  --enable-xim --enable-multibyte \
cvsdist 4e2ca8
  --enable-gtk2-check --enable-gui=gtk2 \
cvsdist 4e2ca8
  --with-compiledby="<bugzilla@redhat.com>" --enable-cscope \
cvsdist 4e2ca8
  --with-modified-by="<bugzilla@redhat.com>" \
cvsdist 4e2ca8
%if "%{withnetbeans}" == "1"
cvsdist 4e2ca8
  --enable-netbeans \
cvsdist 4e2ca8
%else
cvsdist 0f915f
  --disable-netbeans \
cvsdist e6a956
%endif
cvsdist 4e2ca8
%if "%{withruby}" == "1"
cvsdist 4e2ca8
  --enable-rubyinterp
cvsdist e6a956
%endif
cvsdist 4e2ca8
%
cvsdist 2c14b3
make
cvsdist f1dd31
cp vim gvim
cvsdist f1dd31
make clean
cvsdist 2c14b3
%endif
cvsdist f1dd31
cvsdist 7a2237
%configure --prefix=/usr --with-features=huge --enable-pythoninterp \
cvsdist e6a956
 --enable-perlinterp --disable-tclinterp --with-x=no \
cvsdist 4e2ca8
 --enable-gui=no --exec-prefix=/usr --enable-multibyte \
cvsdist 4e2ca8
 --disable-netbeans --enable-cscope --with-modified-by="<bugzilla@redhat.com>" \
cvsdist e6a956
 --with-compiledby="<bugzilla@redhat.com>" \
cvsdist 4e2ca8
%if "%{withnetbeans}" == "1"
cvsdist 4e2ca8
  --enable-netbeans \
cvsdist 4e2ca8
%else
cvsdist 4e2ca8
  --disable-netbeans \
cvsdist 4e2ca8
%endif
cvsdist e6a956
%if "%{withruby}" == "1"
cvsdist e6a956
  --enable-rubyinterp
cvsdist e6a956
%endif
cvsdist e6a956
cvsdist f1dd31
make
cvsdist f1dd31
cp vim enhanced-vim
cvsdist f1dd31
make clean
cvsdist f1dd31
cvsdist 7a2237
%configure --prefix='${DEST}'/usr --with-features=tiny --with-x=no \
cvsdist 813db2
  --enable-multibyte \
cvsdist 0f915f
  --disable-netbeans \
cvsdist f1dd31
  --disable-pythoninterp --disable-perlinterp --disable-tclinterp \
cvsdist 2c14b3
  --with-tlib=termcap --enable-gui=no --disable-gpm --exec-prefix=/ --with-compiledby="<bugzilla@redhat.com>"
cvsdist e6a956
cvsdist 7a2237
make
cvsdist f1dd31
cvsdist f1dd31
%install
cvsdist f1dd31
rm -rf $RPM_BUILD_ROOT
cvsdist f1dd31
mkdir -p $RPM_BUILD_ROOT/bin
cvsdist 7a2237
mkdir -p $RPM_BUILD_ROOT/usr/{bin,share/vim,X11R6/bin}
cvsdist e6a956
cp -f %{SOURCE5} .
cvsdist f1dd31
cvsdist f1dd31
cd src
cvsdist 7a2237
%makeinstall BINDIR=/bin DESTDIR=$RPM_BUILD_ROOT
cvsdist 7a2237
mv $RPM_BUILD_ROOT/bin/xxd $RPM_BUILD_ROOT/usr/bin
cvsdist f1dd31
make installmacros DESTDIR=$RPM_BUILD_ROOT
cvsdist 2c14b3
%if "%{withgui}" == "1"
cvsdist 0c2235
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/{16x16,32x32,48x48,64x64}/apps
cvsdist 7a2237
install -s -m755 gvim $RPM_BUILD_ROOT/usr/X11R6/bin
cvsdist 0c2235
install -s -m644 %{SOURCE7} \
cvsdist 0c2235
   $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/gvim.png
cvsdist 0c2235
install -s -m644 %{SOURCE8} \
cvsdist 0c2235
   $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/gvim.png
cvsdist 0c2235
install -s -m644 %{SOURCE9} \
cvsdist 0c2235
   $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/gvim.png
cvsdist 0c2235
install -s -m644 %{SOURCE10} \
cvsdist 0c2235
   $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps/gvim.png
cvsdist 2c14b3
%endif
cvsdist 7a2237
install -s -m755 enhanced-vim $RPM_BUILD_ROOT/usr/bin/vim
cvsdist f1dd31
cvsdist f1dd31
( cd $RPM_BUILD_ROOT
cvsdist fcc919
  mv ./bin/vimtutor ./usr/bin
cvsdist f1dd31
  mv ./bin/vim ./bin/vi
cvsdist f1dd31
  rm -f ./bin/rvim
cvsdist f1dd31
  ln -sf vi ./bin/view
cvsdist f1dd31
  ln -sf vi ./bin/ex
cvsdist f1dd31
  ln -sf vi ./bin/rvi
cvsdist f1dd31
  ln -sf vi ./bin/rview
cvsdist f1dd31
  ln -sf vim ./usr/bin/ex
cvsdist 7a2237
  ln -sf vim ./usr/bin/rvim
cvsdist 7a2237
  ln -sf vim ./usr/bin/vimdiff
cvsdist f1dd31
  perl -pi -e "s,$RPM_BUILD_ROOT,," .%{_mandir}/man1/vim.1 .%{_mandir}/man1/vimtutor.1
cvsdist f1dd31
  rm -f .%{_mandir}/man1/rvim.1
cvsdist f1dd31
  ln -sf vim.1.gz .%{_mandir}/man1/vi.1.gz
cvsdist f1dd31
  ln -sf vim.1.gz .%{_mandir}/man1/rvi.1.gz
cvsdist 7a2237
  ln -sf vim.1.gz .%{_mandir}/man1/rvim.1.gz
cvsdist 7a2237
  ln -sf vim.1.gz .%{_mandir}/man1/vimdiff.1.gz
cvsdist 2c14b3
%if "%{withgui}" == "1"
cvsdist e6a956
  ln -sf gvim ./usr/X11R6/bin/gview
cvsdist e6a956
  ln -sf gvim ./usr/X11R6/bin/gex
cvsdist e6a956
  ln -sf gvim ./usr/X11R6/bin/evim
cvsdist e6a956
  ln -sf gvim ./usr/X11R6/bin/gvimdiff
cvsdist e6a956
  ln -sf vim.1.gz .%{_mandir}/man1/gvim.1.gz
cvsdist e6a956
  ln -sf vim.1.gz .%{_mandir}/man1/gvimdiff.1.gz
cvsdist f1dd31
  ln -sf gvim ./usr/X11R6/bin/vimx
cvsdist e6a956
  %if "%{desktop_file}" == "1"
cvsdist 2c14b3
    mkdir -p $RPM_BUILD_ROOT/usr/share/applications
cvsdist 2c14b3
    desktop-file-install --vendor net \
cvsdist 2c14b3
        --dir $RPM_BUILD_ROOT/usr/share/applications \
cvsdist 2c14b3
        --add-category "Application;Development;X-Red-Hat-Base" \
cvsdist e6a956
        %{SOURCE3}
cvsdist 2c14b3
  %else
cvsdist 2c14b3
    mkdir -p ./etc/X11/applnk/Applications
cvsdist e6a956
    cp %{SOURCE3} ./etc/X11/applnk/Applications/gvim.desktop
cvsdist 2c14b3
  %endif
cvsdist e6a956
%else
cvsdist e6a956
  rm -f $RPM_BUILD_ROOT/%{_mandir}/man?/evim*
cvsdist 2c14b3
%endif
cvsdist 7a2237
  # ja_JP.ujis is obsolete, ja_JP.eucJP is recommended.
cvsdist e6a956
  ( cd ./usr/share/vim/%{vimdir}/lang; \
cvsdist 7a2237
    ln -sf menu_ja_jp.ujis.vim menu_ja_jp.eucjp.vim )
cvsdist f1dd31
)
cvsdist f1dd31
cvsdist b5c479
pushd $RPM_BUILD_ROOT/usr/share/vim/%{vimdir}/tutor
cvsdist b5c479
mkdir conv
cvsdist b5c479
   iconv -f CP1252 -t UTF8 tutor.ca > conv/tutor.ca
cvsdist b5c479
   iconv -f CP1252 -t UTF8 tutor.it > conv/tutor.it
cvsdist b5c479
   iconv -f CP1253 -t UTF8 tutor.gr > conv/tutor.gr
cvsdist b5c479
   iconv -f CP1252 -t UTF8 tutor.fr > conv/tutor.fr
cvsdist b5c479
   iconv -f CP1252 -t UTF8 tutor.es > conv/tutor.es
cvsdist b5c479
   iconv -f CP1252 -t UTF8 tutor.de > conv/tutor.de
cvsdist b5c479
   #iconv -f CP737 -t UTF8 tutor.gr.cp737 > conv/tutor.gr.cp737
cvsdist b5c479
   #iconv -f EUC-JP -t UTF8 tutor.ja.euc > conv/tutor.ja.euc
cvsdist b5c479
   #iconv -f SJIS -t UTF8 tutor.ja.sjis > conv/tutor.ja.sjis
cvsdist b5c479
   iconv -f UTF8 -t UTF8 tutor.ja.utf-8 > conv/tutor.ja.utf-8
cvsdist b5c479
   iconv -f UTF8 -t UTF8 tutor.ko.utf-8 > conv/tutor.ko.utf-8
cvsdist b5c479
   iconv -f CP1252 -t UTF8 tutor.no > conv/tutor.no
cvsdist 85045d
   iconv -f ISO-8859-2 -t UTF8 tutor.pl > conv/tutor.pl
cvsdist 85045d
   iconv -f ISO-8859-2 -t UTF8 tutor.sk > conv/tutor.sk
cvsdist b5c479
   iconv -f CP1251 -t UTF8 tutor.ru > conv/tutor.ru
cvsdist b5c479
   iconv -f CP1252 -t UTF8 tutor.sv > conv/tutor.sv
cvsdist b5c479
   mv -f tutor.gr.cp737 tutor.ja.euc tutor.ja.sjis tutor.ko.euc tutor.pl.cp1250 tutor.zh.big5 tutor.ru.cp1251 tutor.zh.euc conv/
cvsdist b5c479
   rm -f tutor.ca tutor.de tutor.es tutor.fr tutor.gr tutor.it tutor.ja.utf-8 tutor.ko.utf-8 tutor.no tutor.pl tutor.sk tutor.ru tutor.sv
cvsdist b5c479
mv -f conv/* .
cvsdist b5c479
rmdir conv
cvsdist b5c479
popd
cvsdist b5c479
cvsdist f1dd31
# Dependency cleanups
cvsdist e6a956
chmod 644 $RPM_BUILD_ROOT/usr/share/vim/%{vimdir}/doc/vim2html.pl \
cvsdist e6a956
 $RPM_BUILD_ROOT/usr/share/vim/%{vimdir}/tools/*.pl \
cvsdist e6a956
 $RPM_BUILD_ROOT/usr/share/vim/%{vimdir}/tools/vim132
cvsdist f1dd31
chmod 644 ../runtime/doc/vim2html.pl
cvsdist f1dd31
cvsdist 1b13d4
mkdir -p $RPM_BUILD_ROOT/etc/profile.d
cvsdist 1b13d4
cat >$RPM_BUILD_ROOT/etc/profile.d/vim.sh <
cvsdist 2cc57f
if [ -n "\$BASH_VERSION" -o -n "\$KSH_VERSION" -o -n "\$ZSH_VERSION" ]; then
cvsdist 2cc57f
  # for bash, pdksh and zsh, only if no alias is already set
cvsdist 2c14b3
  alias vi >/dev/null 2>&1 || alias vi=vim
cvsdist 7a2237
fi
cvsdist 1b13d4
EOF
cvsdist 1b13d4
cat >$RPM_BUILD_ROOT/etc/profile.d/vim.csh <
cvsdist 7a2237
alias vi vim
cvsdist 1b13d4
EOF
cvsdist 7a2237
chmod 0755 $RPM_BUILD_ROOT/etc/profile.d/*
cvsdist e6a956
install -s -m644 %{SOURCE4} $RPM_BUILD_ROOT/etc/vimrc
cvsdist e6a956
(cd ../runtime; rm -rf doc; ln -svf ../../vim/%{vimdir}/doc docs;
cvsdist e6a956
 mv -f  macros/README.txt ../README.macros;
cvsdist e6a956
 mv -f  tools/README.txt ../README.tools;
cvsdist e6a956
)
cvsdist 1b13d4
cvsdist f1dd31
%clean
cvsdist f1dd31
rm -rf $RPM_BUILD_ROOT
cvsdist f1dd31
cvsdist f1dd31
%files common
cvsdist f1dd31
%defattr(-,root,root)
cvsdist e6a956
%config(noreplace) /etc/vimrc
cvsdist e6a956
%doc README*
cvsdist 2c14b3
%doc runtime/docs
cvsdist 705de6
%doc $RPM_SOURCE_DIR/Changelog.rpm
cvsdist 7a2237
/usr/share/vim
cvsdist e6a956
%lang(af) /usr/share/vim/%{vimdir}/lang/af/*
cvsdist e6a956
%lang(cs) /usr/share/vim/%{vimdir}/lang/cs/*
cvsdist e6a956
%lang(de) /usr/share/vim/%{vimdir}/lang/de/*
cvsdist e6a956
%lang(es) /usr/share/vim/%{vimdir}/lang/es/*
cvsdist e6a956
%lang(fr) /usr/share/vim/%{vimdir}/lang/fr/*
cvsdist e6a956
%lang(it) /usr/share/vim/%{vimdir}/lang/it/*
cvsdist e6a956
%lang(ja) /usr/share/vim/%{vimdir}/lang/ja/*
cvsdist e6a956
%lang(ko) /usr/share/vim/%{vimdir}/lang/ko/*
cvsdist e6a956
%lang(pl) /usr/share/vim/%{vimdir}/lang/pl/*
cvsdist e6a956
%lang(sk) /usr/share/vim/%{vimdir}/lang/sk/*
cvsdist e6a956
%lang(uk) /usr/share/vim/%{vimdir}/lang/uk/*
cvsdist e6a956
%lang(zh_CN) /usr/share/vim/%{vimdir}/lang/zh_CN/*
cvsdist e6a956
%lang(zh_CN.UTF-8) /usr/share/vim/%{vimdir}/lang/zh_CN.UTF-8/*
cvsdist e6a956
%lang(zh_TW) /usr/share/vim/%{vimdir}/lang/zh_TW/*
cvsdist 840bb7
/usr/bin/xxd
cvsdist f1dd31
%{_mandir}/man1/vim.*
cvsdist f1dd31
%{_mandir}/man1/ex.*
cvsdist f1dd31
%{_mandir}/man1/vi.*
cvsdist f1dd31
%{_mandir}/man1/view.*
cvsdist f1dd31
%{_mandir}/man1/rvi.*
cvsdist f1dd31
%{_mandir}/man1/rview.*
cvsdist f1dd31
%{_mandir}/man1/xxd.*
cvsdist f1dd31
cvsdist f1dd31
%files minimal
cvsdist f1dd31
%defattr(-,root,root)
cvsdist 0c2235
%config(noreplace) /etc/vimrc
cvsdist f1dd31
/bin/ex
cvsdist f1dd31
/bin/vi
cvsdist f1dd31
/bin/view
cvsdist f1dd31
/bin/rvi
cvsdist f1dd31
/bin/rview
cvsdist f1dd31
cvsdist f1dd31
%files enhanced
cvsdist f1dd31
%defattr(-,root,root)
cvsdist 7a2237
/usr/bin/vim
cvsdist 7a2237
/usr/bin/rvim
cvsdist 7a2237
/usr/bin/vimdiff
cvsdist 7a2237
/usr/bin/ex
cvsdist fcc919
/usr/bin/vimtutor
cvsdist 7a2237
%config /etc/profile.d/vim.*
cvsdist 7a2237
%{_mandir}/man1/rvim.*
cvsdist 7a2237
%{_mandir}/man1/vimdiff.*
cvsdist fcc919
%{_mandir}/man1/vimtutor.*
cvsdist f1dd31
cvsdist 2c14b3
%if "%{withgui}" == "1"
cvsdist f1dd31
%files X11
cvsdist f1dd31
%defattr(-,root,root)
cvsdist e6a956
%if "%{desktop_file}" == "1"
cvsdist 2c14b3
/usr/share/applications/*
cvsdist 2c14b3
%else
cvsdist 2c14b3
/etc/X11/applnk/*/gvim.desktop
cvsdist 2c14b3
%endif
cvsdist f1dd31
/usr/X11R6/bin/gvim
cvsdist e6a956
/usr/X11R6/bin/gvimdiff
cvsdist 7a2237
/usr/X11R6/bin/gview
cvsdist 7a2237
/usr/X11R6/bin/gex
cvsdist f1dd31
/usr/X11R6/bin/vimx
cvsdist e6a956
/usr/X11R6/bin/evim
cvsdist 7a2237
%{_mandir}/man1/evim.*
cvsdist e6a956
%{_mandir}/man1/gvim*
cvsdist 0c2235
%{_datadir}/icons/hicolor/*/apps/*
cvsdist 7a2237
%endif
cvsdist f1dd31
cvsdist f1dd31
%changelog
Karsten Hopp 293dff
* Fri Oct 08 2004 Karsten Hopp <karsten@redhat.de> 6.3.030-2
Karsten Hopp 293dff
- patchlevel 30
Karsten Hopp 293dff
Karsten Hopp fee2fd
* Wed Oct 06 2004 Karsten Hopp <karsten@redhat.de> 6.3.029-2 
Karsten Hopp fee2fd
- fix perl requirement
Karsten Hopp fee2fd
- patchlevel 29 to fix crash when inserting a line break
Karsten Hopp fee2fd
Karsten Hopp 0b345a
* Wed Sep 29 2004 Karsten Hopp <karsten@redhat.de> 6.3.028-2 
Karsten Hopp 0b345a
- add patch from Ulrich Drepper to fix syntax highlighting of 
Karsten Hopp 0b345a
  DNS config files (#133746)
Karsten Hopp 0b345a
Than Ngo 483797
* Tue Sep 21 2004 Than Ngo <than@redhat.com> 6.3.028-1
Than Ngo 483797
- add patchlevel 27,28
Than Ngo 483797
Karsten Hopp d06e9f
* Tue Sep 14 2004 Karsten Hopp <karsten@redhat.de> 6.3.026-1
Karsten Hopp d06e9f
- patchlevel 26 (fixes an endless loop in syntax highlighting)
Karsten Hopp d06e9f
cvsdist 4e2ca8
* Wed Sep 08 2004 Karsten Hopp <karsten@redhat.de> 6.3.025-2 
cvsdist 4e2ca8
- clean up spec file
cvsdist 4e2ca8
- disable fontset
cvsdist 4e2ca8
- enable cscope
cvsdist 4e2ca8
cvsdist a35fa1
* Mon Sep 06 2004 Karsten Hopp <karsten@redhat.de> 6.3.025-1 
cvsdist a35fa1
- patchlevel 25
cvsdist a35fa1
cvsdist bd9e91
* Wed Sep 01 2004 Karsten Hopp <karsten@redhat.de> 6.3.020-1
cvsdist bd9e91
- patchlevel 20
cvsdist bd9e91
cvsdist d4931c
* Sun Aug 29 2004 Karsten Hopp <karsten@redhat.de> 6.3.017-1 
cvsdist d4931c
- patchlevel 17
cvsdist d4931c
cvsdist 705de6
* Fri Aug 06 2004 Karsten Hopp <karsten@redhat.de> 6.3.015-1
cvsdist 705de6
- update to patchlevel 15
cvsdist 705de6
- move older rpm changelog entries to Changelog.rpm
cvsdist 705de6
cvsdist 3ed3c8
* Mon Jul 26 2004 Warren Togami <wtogami@redhat.com> 6.3.014-2
cvsdist 3ed3c8
- future proof vim-enhanced perl dep
cvsdist 3ed3c8
cvsdist 409f8f
* Thu Jul 22 2004 Karsten Hopp <karsten@redhat.de> 6.3.014-1
cvsdist 409f8f
- patchlevel 14, fixes 'helplang' default settings
cvsdist 409f8f
- fix escape sequence in /etc/vimrc (#128344)
cvsdist 409f8f
cvsdist 85045d
* Fri Jul 16 2004 Karsten Hopp <karsten@redhat.de> 6.3.013-2
cvsdist 85045d
- use different encoding for tutor.pl (#125376)
cvsdist 85045d
cvsdist 16173e
* Tue Jul 13 2004 Karsten Hopp <karsten@redhat.de> 6.3.013-1
cvsdist 16173e
- patchlevel 13 to fix some crashes with multi-line patterns 
cvsdist 16173e
  and when using CTRL-R in command mode
cvsdist 16173e
cvsdist a46b9f
* Thu Jul 8 2004 Dan Walsh <dwalsh@redhat.com> 6.3.011-4
cvsdist a46b9f
- Fix selinux patch to handle symlinks
cvsdist a46b9f
cvsdist 5056ff
* Wed Jul 07 2004 Karsten Hopp <karsten@redhat.de> 6.3.011-3
cvsdist 5056ff
- rebuild with new gcc
cvsdist 5056ff
cvsdist b5c479
* Mon Jul 05 2004 Karsten Hopp <karsten@redhat.de> 6.3.011-2 
cvsdist b5c479
- convert tutorial files to UTF8 (#125376)
cvsdist b5c479
cvsdist 145ee0
* Sat Jul 03 2004 Karsten Hopp <karsten@redhat.de> 6.3.011-1 
cvsdist 145ee0
- patchlevel 11
cvsdist 145ee0
cvsdist 1b4d76
* Thu Jun 17 2004 Karsten Hopp <karsten@redhat.de> 6.3.006-1 
cvsdist 1b4d76
- update to new major release