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 include ruby interpreter
cvsdist e6a9560
%define withruby 0
cvsdist e6a9560
%else
cvsdist 2c14b33
%define withgui 1
cvsdist e6a9560
%define withruby 0
cvsdist 4e2ca83
%define withnetbeans 0
cvsdist e6a9560
%endif
cvsdist e6a9560
6caafdc
%define withcvim 1
6caafdc
cvsdist e6a9560
f0fabac
%define baseversion 6.4
f0fabac
%define vimdir vim64
f0fabac
%define patchlevel 000
cvsdist 2c14b33
cvsdist f1dd315
Summary: The VIM editor.
cvsdist f1dd315
Name: vim
cvsdist e6a9560
Version: %{baseversion}.%{patchlevel}
b5c2f92
Release: 4
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
696a6dc
# Source at http://www.vim.org/scripts/script.php?script_id=213 :
696a6dc
Source12: cvim.zip
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
b5c2f92
Patch2005: vim-6.4-tmpfile.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
f0fabac
# for i in `seq 1 14`; do printf "Patch%03d: ftp://ftp.vim.org/pub/vim/patches/6.4/6.4.%03d\n" $i $i; done
f0fabac
#Patch001: ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.001
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
0b345aa
Patch3007: vim-6.3-dnssyntax.patch
f0fabac
Patch3008: vim-6.4-cvim.patch
619d304
Patch3009: vim-6.4-checkhl.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
03c1db6
Requires: vim-common = %{epoch}:%{version}-%{release}
14dbb9a
#Requires: %(perl -le 'printf("perl >= %vd\n",$^V);')
abba105
#Requires: perl >= %(rpm -q --qf "%%{epoch}:%%{version}\n" perl)
abba105
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
03c1db6
Requires: vim-common = %{epoch}:%{version}-%{release} libattr
cvsdist e6a9560
BuildRequires: gtk2-devel
0b8934c
Prereq: gtk2 >= 2.6
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
7542ee8
%patch2000 -p1
cvsdist f1dd315
# fix rogue dependencies from sample code
cvsdist f1dd315
chmod -x runtime/tools/mve.awk
7542ee8
%patch2001 -p1
fb8ddfe
%patch2002 -p1
fb8ddfe
%patch2003 -p1
fb8ddfe
%patch2004 -p1
b5c2f92
%patch2005 -p1
fb8ddfe
%patch2010 -p1
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
f0fabac
#%patch001 -p0
1e6c08e
cvsdist e6a9560
fb8ddfe
%patch3000 -p1
fb8ddfe
%patch3001 -p1
fb8ddfe
%patch3002 -p1
fb8ddfe
%patch3003 -p1
fb8ddfe
%patch3004 -p1
fb8ddfe
%patch3005 -p1
fb8ddfe
%patch3006 -p1
fb8ddfe
%patch3007 -p1
cvsdist 1401a3e
619d304
%patch3009 -p1
619d304
cvsdist 1401a3e
%if %{WITH_SELINUX}
fb8ddfe
%patch3100 -p1
cvsdist 1401a3e
%endif
cvsdist 840bb7d
cvsdist f1dd315
%build
6caafdc
%if "%{withcvim}" == "1"
696a6dc
mkdir cvim
6caafdc
( cd cvim; unzip %{SOURCE12}; )
6caafdc
patch -p1 < %{PATCH3008}
6caafdc
%endif
696a6dc
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
8e2227a
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2"
8e2227a
export CXXFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2"
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 \
a8cc794
  --disable-tclinterp --with-x=yes \
cvsdist 4e2ca83
  --enable-xim --enable-multibyte \
cvsdist 4e2ca83
  --enable-gtk2-check --enable-gui=gtk2 \
cvsdist 4e2ca83
  --with-compiledby="<bugzilla@redhat.com>" --enable-cscope \
cvsdist 4e2ca83
  --with-modified-by="<bugzilla@redhat.com>" \
cvsdist 4e2ca83
%if "%{withnetbeans}" == "1"
cvsdist 4e2ca83
  --enable-netbeans \
cvsdist 4e2ca83
%else
cvsdist 0f915f5
  --disable-netbeans \
cvsdist e6a9560
%endif
cvsdist 4e2ca83
%if "%{withruby}" == "1"
cvsdist 4e2ca83
  --enable-rubyinterp
cvsdist e6a9560
%endif
696a6dc
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 4e2ca83
 --enable-gui=no --exec-prefix=/usr --enable-multibyte \
cvsdist 4e2ca83
 --disable-netbeans --enable-cscope --with-modified-by="<bugzilla@redhat.com>" \
cvsdist e6a9560
 --with-compiledby="<bugzilla@redhat.com>" \
cvsdist 4e2ca83
%if "%{withnetbeans}" == "1"
cvsdist 4e2ca83
  --enable-netbeans \
cvsdist 4e2ca83
%else
cvsdist 4e2ca83
  --disable-netbeans \
cvsdist 4e2ca83
%endif
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
a8cc794
mkdir -p $RPM_BUILD_ROOT/usr/{bin,share/vim}
cvsdist e6a9560
cp -f %{SOURCE5} .
cvsdist f1dd315
6caafdc
%if "%{withcvim}" == "1"
696a6dc
# cvim plugin stuff:
696a6dc
mkdir -p $RPM_BUILD_ROOT%{_datadir}/vim/%{vimdir}/codesnippets-c
696a6dc
mkdir -p $RPM_BUILD_ROOT%{_datadir}/vim/%{vimdir}/plugin/templates
696a6dc
mkdir -p $RPM_BUILD_ROOT%{_datadir}/vim/%{vimdir}/wordlists
696a6dc
mkdir -p $RPM_BUILD_ROOT%{_datadir}/vim/%{vimdir}/rc
696a6dc
mkdir -p $RPM_BUILD_ROOT%{_datadir}/vim/%{vimdir}/ftplugin
696a6dc
   install -m644 cvim/codesnippets-c/*  $RPM_BUILD_ROOT%{_datadir}/vim/%{vimdir}/codesnippets-c/
696a6dc
   install -m644 cvim/plugin/templates/*  $RPM_BUILD_ROOT/%{_datadir}/vim/%{vimdir}/plugin/templates/
696a6dc
   install -m644 cvim/plugin/wrapper.sh  $RPM_BUILD_ROOT/%{_datadir}/vim/%{vimdir}/plugin/
696a6dc
   install -m644 cvim/plugin/c.vim  $RPM_BUILD_ROOT/%{_datadir}/vim/%{vimdir}/plugin/
696a6dc
   install -m644 cvim/plugin/templates/*  $RPM_BUILD_ROOT/%{_datadir}/vim/%{vimdir}/plugin/templates/
696a6dc
   install -m644 cvim/rc/*  $RPM_BUILD_ROOT/%{_datadir}/vim/%{vimdir}/rc/
696a6dc
   install -m644 cvim/wordlists/*  $RPM_BUILD_ROOT/%{_datadir}/vim/%{vimdir}/wordlists/
696a6dc
   install -m644 cvim/ftplugin/*  $RPM_BUILD_ROOT/%{_datadir}/vim/%{vimdir}/ftplugin/
6caafdc
   cp cvim/doc/* runtime/doc
696a6dc
   cp cvim/README.csupport .
6caafdc
%endif
696a6dc
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
a8cc794
install -m755 gvim $RPM_BUILD_ROOT/usr/bin
a644c75
install -m644 %{SOURCE7} \
cvsdist 0c22351
   $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/gvim.png
a644c75
install -m644 %{SOURCE8} \
cvsdist 0c22351
   $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/gvim.png
a644c75
install -m644 %{SOURCE9} \
cvsdist 0c22351
   $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/gvim.png
a644c75
install -m644 %{SOURCE10} \
cvsdist 0c22351
   $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps/gvim.png
cvsdist 2c14b33
%endif
a644c75
install -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"
a8cc794
  ln -sf gvim ./usr/bin/gview
a8cc794
  ln -sf gvim ./usr/bin/gex
a8cc794
  ln -sf gvim ./usr/bin/evim
a8cc794
  ln -sf gvim ./usr/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
a8cc794
  ln -sf gvim ./usr/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
7ec3eaf
   iconv -f KOI8R -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
5820b64
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/profile.d
5820b64
cat >$RPM_BUILD_ROOT/%{_sysconfdir}/profile.d/vim.sh <
cvsdist 2cc57f3
if [ -n "\$BASH_VERSION" -o -n "\$KSH_VERSION" -o -n "\$ZSH_VERSION" ]; then
499cbff
  [ -x /usr/bin/id ] || return
5d80bb1
  [ \`/usr/bin/id -u\` -le 100 ] && return
499cbff
  # for bash 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
5820b64
cat >$RPM_BUILD_ROOT/%{_sysconfdir}/profile.d/vim.csh <
499cbff
[ -x /usr/bin/id ] || exit
5d80bb1
[ \`/usr/bin/id -u\` -le 100 ] && exit
cvsdist 7a22376
alias vi vim
cvsdist 1b13d44
EOF
5820b64
chmod 0755 $RPM_BUILD_ROOT/%{_sysconfdir}/profile.d/*
5820b64
install -m644 %{SOURCE4} $RPM_BUILD_ROOT/%{_sysconfdir}/vimrc
94dc0fe
(cd $RPM_BUILD_ROOT/usr/share/vim/%{vimdir}/doc;
94dc0fe
 gzip -9 *.txt; gzip -d help.txt.gz
94dc0fe
 cat tags | sed -e 's/\t\(.*.txt\)\t/\t\1.gz\t/;s/\thelp.txt.gz\t/\thelp.txt\t/' > tags.new; mv -f tags.new tags)
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
0b8934c
%post X11
0b8934c
touch --no-create %{_datadir}/icons/hicolor
fbcffda
if [ -x /usr/bin/gtk-update-icon-cache ]; then
9fb2ef6
  gtk-update-icon-cache -q %{_datadir}/icons/hicolor
0b8934c
fi
0b8934c
0b8934c
%postun X11
0b8934c
touch --no-create %{_datadir}/icons/hicolor
fbcffda
if [ -x /usr/bin/gtk-update-icon-cache ]; then
9fb2ef6
  gtk-update-icon-cache -q %{_datadir}/icons/hicolor
0b8934c
fi
0b8934c
cvsdist f1dd315
%clean
cvsdist f1dd315
rm -rf $RPM_BUILD_ROOT
cvsdist f1dd315
cvsdist f1dd315
%files common
cvsdist f1dd315
%defattr(-,root,root)
5820b64
%config(noreplace) %{_sysconfdir}/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)
5820b64
%config(noreplace) %{_sysconfdir}/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
5820b64
%config %{_sysconfdir}/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
bde9abe
/usr/bin/gvim
a8cc794
/usr/bin/gvimdiff
a8cc794
/usr/bin/gview
a8cc794
/usr/bin/gex
a8cc794
/usr/bin/vimx
a8cc794
/usr/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
b5c2f92
* Fri Nov 25 2005 Karsten Hopp <karsten@redhat.de> 6.4.000-4
b5c2f92
- enable tmpfile patch 
b5c2f92
8c3c1f4
* Thu Oct 27 2005 Karsten Hopp <karsten@redhat.de> 6.4.000-3
8c3c1f4
- test build
8c3c1f4
619d304
* Tue Oct 25 2005 Karsten Hopp <karsten@redhat.de> 6.4.000-2
5820b64
- use %%{_sysconfdir} (#171556)
619d304
- add syntax highlighting rule for %%check (Ralf Ertzinger, #165277)
5820b64
f0fabac
* Mon Oct 17 2005 Karsten Hopp <karsten@redhat.de> 6.4.000-1
f0fabac
- vim-6.4 patchlevel 0
f0fabac
44e8cdf
* Tue Oct 11 2005 Karsten Hopp <karsten@redhat.de> 6.3.090-2
44e8cdf
- don't try to run cscope if cscope binary doesn't exist (#170371)
abba105
- another attempt to fix perl requirements (#145475)
44e8cdf
14dbb9a
* Mon Oct 10 2005 Karsten Hopp <karsten@redhat.de> 6.3.090-1
14dbb9a
- patchlevel 90
14dbb9a
- next attempt to fix perl requirements, add perl-epoch (#145475)
14dbb9a
6caafdc
* Thu Sep 08 2005 Karsten Hopp <karsten@redhat.de> 6.3.086-5
6caafdc
- fix path to csupport templates
6caafdc
- point user at README.csupport so that defaults can be set
6caafdc
- make vim buildable without csupport with a variable
6caafdc
a8cc794
* Thu Sep 01 2005 Karsten Hopp <karsten@redhat.de> 6.3.086-3
a8cc794
- move X11 stuff to /usr/bin per request of xorg.x11 maintainer
a8cc794
  Matthias Saou (#167176)
a8cc794
15a4f82
* Tue Aug 16 2005 Karsten Hopp <karsten@redhat.de> 6.3.086-2
15a4f82
- rebuild
15a4f82
839be04
* Tue Aug 09 2005 Karsten Hopp <karsten@redhat.de> 6.3.086-1
839be04
- update to patchlevel 86
839be04
58f2f73
* Mon Jun 12 2005 Karsten Hopp <karsten@redhat.de> 6.3.080-1
58f2f73
- update to patchlevel 80
58f2f73
9fb2ef6
* Wed Apr 27 2005 Jeremy Katz <katzj@redhat.com> - 1:6.3.071-3
9fb2ef6
- silence %%post
9fb2ef6
7ec3eaf
* Mon Apr 18 2005 Karsten Hopp <karsten@redhat.de> 6.3.071-2
7ec3eaf
- fix wrong Russian code page for vimtutor (#155181)
7ec3eaf
22b8c85
* Mon Apr 11 2005 Karsten Hopp <karsten@redhat.de> 6.3.071-1
22b8c85
- patchlevel 71, fixes crashes when converting text with illegal characters
22b8c85
  and when moving the vertical separator to the far left (vertically splitted 
22b8c85
  window)
22b8c85
5d80bb1
* Mon Apr 11 2005 Karsten Hopp <karsten@redhat.de> 6.3.068-2
5d80bb1
- quote special characters in here documents (vim.sh/vim.csh) (#154321)
5d80bb1
002a196
* Thu Mar 31 2005 Karsten Hopp <karsten@redhat.de> 6.3-068
002a196
- pathlevel 68 (can't write when editing symbolic link to compressed file)
a644c75
- remove -s parameter from install, this should fix debuginfo packages
002a196
fbcffda
* Mon Mar 28 2005 Christopher Aillon <caillon@redhat.com>
fbcffda
- rebuilt
fbcffda
0b8934c
* Fri Mar 25 2005 Christopher Aillon <caillon@redhat.com> 6.3.067-2
0b8934c
- Update the GTK+ theme icon cache on (un)install
0b8934c
3c7097d
* Wed Mar 23 2005 Karsten Hopp <karsten@redhat.de> 6.3.067-1
7e4ccc7
- Newly created files got execute permission (caused by patch 66)
3c7097d
  #151667
3c7097d
f330195
* Fri Mar 18 2005 Karsten Hopp <karsten@redhat.de> 6.3.066-1
f330195
- patchlevel 66
f330195
499cbff
* Mon Mar 14 2005 Karsten Hopp <karsten@redhat.de> 6.3.064-1
499cbff
- patchlevel 64
499cbff
- fix selinux warning (#150126)
499cbff
5c3e297
* Wed Mar 02 2005 Karsten Hopp <karsten@redhat.de> 6.3.062-1
5c3e297
- patchlevel 62, build with gcc-4
5c3e297
ef334d8
* Thu Feb 10 2005 Karsten Hopp <karsten@redhat.de> 6.3.061-3
ef334d8
- spec.vim fix from Andrew Overholt
ef334d8
14c9def
* Mon Feb 07 2005 Karsten Hopp <karsten@redhat.de> 6.3.061-2 
14c9def
- fix tmpfile patch (#147192)
14c9def
aed4477
* Mon Jan 31 2005 Karsten Hopp <karsten@redhat.de> 6.3.061-1 
aed4477
- patchlevel 61
aed4477
cturner ad72ee5
* Tue Jan 18 2005 Chip Turner <cturner@redhat.com> 1:058-2
cturner ad72ee5
- rebuild for new perl
cturner ad72ee5
7542ee8
* Tue Jan 18 2005 Karsten Hopp <karsten@redhat.de> 6.3.058-1
7542ee8
- Patchlevel 58
7542ee8
- rebuild with new perl
7542ee8
- remove all rpm backup files
7542ee8
fb8ddfe
* Wed Jan 12 2005 Karsten Hopp <karsten@redhat.de> 6.3.054-2
fb8ddfe
- remove backup files
fb8ddfe
1e6c08e
* Wed Jan 12 2005 Karsten Hopp <karsten@redhat.de> 6.3.054-1
1e6c08e
- patchlevel 54
1e6c08e
- fix unsecure tempfile usage (#144698)
1e6c08e
bee916b
* Mon Dec 06 2004 Karsten Hopp <karsten@redhat.de> 6.3.042-1 
bee916b
- patchlevel 42
bee916b
94dc0fe
* Thu Dec 02 2004 Karsten Hopp <karsten@redhat.de> 6.3.035-2 
94dc0fe
- fix compressed docs handling (#141565)
94dc0fe
d086bea
* Wed Dec 01 2004 Karsten Hopp <karsten@redhat.de> 6.3.035-1 
d086bea
- patchlevel 35
d086bea
- allow remapping of 'g' (#140747)
d086bea
4bdf89d
* Fri Nov 19 2004 Karsten Hopp <karsten@redhat.de> 6.3.033-1 
4bdf89d
- patchlevel 33
4bdf89d
eb3561f
* Tue Nov 02 2004 Karsten Hopp <karsten@redhat.de> 6.3.030-3 
eb3561f
- fix selinux patch, so that HAVE_SELINUX will not be defined on 
eb3561f
  non-selinux systems (#137860)
eb3561f
03c1db6
* Tue Oct 19 2004 Karsten Hopp <karsten@redhat.de> 6.3.030-3 
03c1db6
- fix dependencies on vim-common (#132371)
03c1db6
9197463
* Mon Oct 11 2004 Karsten Hopp <karsten@redhat.de> 6.3.030-2 
9197463
- add cscope to vimrc so that cscope DB will be used 
9197463
  automatically when available
9197463
293dffa
* Fri Oct 08 2004 Karsten Hopp <karsten@redhat.de> 6.3.030-2
293dffa
- patchlevel 30
293dffa
fee2fd7
* Wed Oct 06 2004 Karsten Hopp <karsten@redhat.de> 6.3.029-2 
fee2fd7
- fix perl requirement
fee2fd7
- patchlevel 29 to fix crash when inserting a line break
fee2fd7
0b345aa
* Wed Sep 29 2004 Karsten Hopp <karsten@redhat.de> 6.3.028-2 
0b345aa
- add patch from Ulrich Drepper to fix syntax highlighting of 
0b345aa
  DNS config files (#133746)
0b345aa
4837971
* Tue Sep 21 2004 Than Ngo <than@redhat.com> 6.3.028-1
4837971
- add patchlevel 27,28
4837971
d06e9f5
* Tue Sep 14 2004 Karsten Hopp <karsten@redhat.de> 6.3.026-1
d06e9f5
- patchlevel 26 (fixes an endless loop in syntax highlighting)
d06e9f5
cvsdist 4e2ca83
* Wed Sep 08 2004 Karsten Hopp <karsten@redhat.de> 6.3.025-2 
cvsdist 4e2ca83
- clean up spec file
cvsdist 4e2ca83
- disable fontset
cvsdist 4e2ca83
- enable cscope
cvsdist 4e2ca83
cvsdist a35fa19
* Mon Sep 06 2004 Karsten Hopp <karsten@redhat.de> 6.3.025-1 
cvsdist a35fa19
- patchlevel 25
cvsdist a35fa19
cvsdist bd9e916
* Wed Sep 01 2004 Karsten Hopp <karsten@redhat.de> 6.3.020-1
cvsdist bd9e916
- patchlevel 20
cvsdist bd9e916
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