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