3785aa2
# used for CVS snapshots:
3785aa2
%define CVSDATE %{nil}
f15eb2e
%if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1}
cvsdist 1401a3e
%define WITH_SELINUX 1
f15eb2e
%endif
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
bb267a3
%define withnetbeans 1
cvsdist e6a9560
a0c2f1f
%define withvimspell 0
5a04c16
%define withhunspell 0
3783268
%define withruby 1
cvsdist e6a9560
d82ff2d
%define baseversion 7.2
3785aa2
#used for pre-releases:
3785aa2
%define beta %{nil}
d82ff2d
%define vimdir vim72%{?beta}
bb267a3
%define patchlevel 060
cvsdist 2c14b33
3ca42e5
Summary: The VIM editor
3ca42e5
URL:     http://www.vim.org/
cvsdist f1dd315
Name: vim
d173542
Version: %{baseversion}.%{beta}%{patchlevel}
bb267a3
Release: 1%{?dist}
6b2f4e4
License: Vim
cvsdist f1dd315
Group: Applications/Editors
eb5ddae
Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}%{?beta}%{?CVSDATE}.tar.bz2
eb5ddae
Source1: ftp://ftp.vim.org/pub/vim/extra/vim-%{baseversion}%{?beta}-lang%{?CVSDATE}.tar.gz
eb5ddae
Source2: ftp://ftp.vim.org/pub/vim/extra/vim-%{baseversion}%{?beta}-extra%{?CVSDATE}.tar.gz
cvsdist e6a9560
Source3: gvim.desktop
cvsdist e6a9560
Source4: vimrc
6cabe3c
#Source5: ftp://ftp.vim.org/pub/vim/patches/README.patches
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
e73e8b0
Source12: vi_help.txt
a0c2f1f
%if %{withvimspell}
44a6bac
Source13: vim-spell-files.tar.bz2
a0c2f1f
%endif
f757d89
Source14: spec-template
87c2150
Source15: http://www.cvjb.de/comp/vim/forth.vim
d427c0e
bb267a3
# remove this for the next major version, CVE fixes:
bb267a3
Source16: ftp://ftp.vim.org/vol/2/vim/runtime/plugin/netrwPlugin.vim
bb267a3
Source17: ftp://ftp.vim.org/vol/2/vim/runtime/plugin/gzip.vim
bb267a3
Source18: ftp://ftp.vim.org/vol/2/vim/runtime/filetype.vim
bb267a3
Source19: ftp://ftp.vim.org/vol/2/vim/runtime/autoload/zip.vim
bb267a3
Source20: ftp://ftp.vim.org/vol/2/vim/runtime/autoload/tar.vim
bb267a3
Source21: ftp://ftp.vim.org/vol/2/vim/runtime/autoload/netrwFileHandlers.vim
bb267a3
Source22: ftp://ftp.vim.org/vol/2/vim/runtime/autoload/netrw.vim
bb267a3
Source23: ftp://ftp.vim.org/vol/2/vim/runtime/autoload/netrwSettings.vim
bb267a3
6cabe3c
Patch2002: vim-7.0-fixkeys.patch
cvsdist 1b4d760
Patch2003: vim-6.2-specsyntax.patch
6cabe3c
Patch2004: vim-7.0-crv.patch
cvsdist e6a9560
Patch2010: xxd-locale.patch
5a04c16
%if %{withhunspell}
5a04c16
Patch2011: vim-7.0-hunspell.patch
5a04c16
BuildRequires: hunspell-devel
5a04c16
%endif
cvsdist e6a9560
# Patches 001 < 999 are patches from the base maintainer.
cvsdist 2c14b33
# If you're as lazy as me, generate the list using
44a6bac
# for i in `seq 1 14`; do printf "Patch%03d: ftp://ftp.vim.org/pub/vim/patches/7.1/7.1.%03d\n" $i $i; done
bb267a3
Patch001: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.001
bb267a3
Patch002: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.002
bb267a3
Patch003: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.003
bb267a3
Patch004: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.004
bb267a3
Patch005: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.005
bb267a3
Patch006: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.006
bb267a3
Patch007: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.007
bb267a3
Patch008: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.008
bb267a3
Patch009: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.009
bb267a3
Patch010: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.010
bb267a3
Patch011: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.011
bb267a3
Patch012: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.012
bb267a3
Patch013: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.013
bb267a3
Patch014: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.014
bb267a3
Patch015: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.015
bb267a3
Patch016: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.016
bb267a3
Patch017: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.017
bb267a3
Patch018: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.018
bb267a3
Patch019: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.019
bb267a3
Patch020: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.020
bb267a3
Patch021: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.021
bb267a3
Patch022: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.022
bb267a3
Patch023: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.023
bb267a3
Patch024: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.024
bb267a3
Patch025: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.025
bb267a3
Patch026: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.026
bb267a3
Patch027: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.027
bb267a3
Patch028: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.028
bb267a3
Patch029: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.029
bb267a3
Patch030: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.030
bb267a3
Patch031: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.031
bb267a3
Patch032: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.032
bb267a3
Patch033: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.033
bb267a3
Patch034: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.034
bb267a3
Patch035: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.035
bb267a3
Patch036: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.036
bb267a3
Patch037: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.037
bb267a3
Patch038: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.038
bb267a3
Patch039: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.039
bb267a3
Patch040: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.040
bb267a3
Patch041: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.041
bb267a3
Patch042: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.042
bb267a3
Patch043: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.043
bb267a3
Patch044: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.044
bb267a3
Patch045: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.045
bb267a3
Patch046: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.046
bb267a3
Patch047: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.047
bb267a3
Patch048: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.048
bb267a3
Patch049: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.049
bb267a3
Patch050: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.050
bb267a3
Patch051: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.051
bb267a3
Patch052: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.052
bb267a3
Patch053: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.053
bb267a3
Patch054: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.054
bb267a3
Patch055: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.055
bb267a3
Patch056: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.056
bb267a3
Patch057: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.057
bb267a3
Patch058: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.058
bb267a3
Patch059: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.059
bb267a3
Patch060: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.060
6cabe3c
6cabe3c
Patch3000: vim-7.0-syntax.patch
44a6bac
Patch3002: vim-7.1-nowarnings.patch
cvsdist 1b4d760
Patch3003: vim-6.1-rh3.patch
6cabe3c
Patch3004: vim-7.0-rclocation.patch
52217fd
Patch3006: vim-6.4-checkhl.patch
d82ff2d
Patch3007: vim-7.2-fstabsyntax.patch
4217159
Patch3008: vim-7.1-lib64.patch
52217fd
Patch3009: vim-7.0-warning.patch
cd3cd11
Patch3010: vim-7.0-syncolor.patch
d82ff2d
Patch3011: vim-7.0-specedit.patch
cvsdist 1401a3e
3ca42e5
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
57761aa
BuildRequires: python-devel ncurses-devel gettext perl-devel
779335b
BuildRequires: perl(ExtUtils::Embed)
0170fcc
BuildRequires: libacl-devel gpm-devel autoconf
cvsdist 0c22351
%if %{WITH_SELINUX}
0170fcc
BuildRequires: libselinux-devel
cvsdist 0c22351
%endif
cvsdist 2c14b33
%if %{desktop_file}
a8897a2
# for /usr/bin/desktop-file-install
a8897a2
Requires: desktop-file-utils
3ca42e5
BuildRequires: desktop-file-utils >= %{desktop_file_utils_version}
cvsdist 2c14b33
%endif
5d3be3a
Epoch: 2
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
0170fcc
Summary: The common files needed by any version of the VIM editor
cvsdist f1dd315
Group: Applications/Editors
6cabe3c
Conflicts: man-pages-fr < 0.9.7-14
6cabe3c
Conflicts: man-pages-it < 0.3.0-17
bc12b64
Conflicts: man-pages-pl < 0.24-2
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
d427c0e
%package spell
0170fcc
Summary: The dictionaries for spell checking. This package is optional
d427c0e
Group: Applications/Editors
d427c0e
Requires: vim-common = %{epoch}:%{version}-%{release}
d427c0e
d427c0e
%description spell
d427c0e
This subpackage contains dictionaries for vim spell checking in
d427c0e
many different languages.
d427c0e
cvsdist f1dd315
%package minimal
0170fcc
Summary: A minimal version of the VIM editor
cvsdist f1dd315
Group: Applications/Editors
3ca42e5
Provides: vi = %{version}-%{release}
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
0170fcc
Summary: A version of the VIM editor which includes recent enhancements
cvsdist f1dd315
Group: Applications/Editors
be5822d
Requires: vim-common = %{epoch}:%{version}-%{release} which
3ca42e5
Provides: vim = %{version}-%{release}
a8897a2
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
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 f1dd315
%package X11
0170fcc
Summary: The VIM version of the vi editor for the X Window System
cvsdist f1dd315
Group: Applications/Editors
cedda78
Requires: vim-common = %{epoch}:%{version}-%{release} libattr >= 2.4 gtk2 >= 2.6
0170fcc
Provides: gvim = %{version}-%{release}
5617c4f
BuildRequires: gtk2-devel libSM-devel libXt-devel libXpm-devel
a8897a2
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
d8279b0
Requires: hicolor-icon-theme
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 f1dd315
cvsdist f1dd315
%prep
1121ed8
%setup -q -b 0 -n %{vimdir}
57761aa
%setup -q -D -b 1 -n %{vimdir}
57761aa
%setup -q -D -b 2 -n %{vimdir}
cvsdist f1dd315
# fix rogue dependencies from sample code
cvsdist f1dd315
chmod -x runtime/tools/mve.awk
fb8ddfe
%patch2002 -p1
fb8ddfe
%patch2003 -p1
fb8ddfe
%patch2004 -p1
fb8ddfe
%patch2010 -p1
5a04c16
%if %{withhunspell}
5a04c16
%patch2011 -p1
5a04c16
%endif
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
8a1aa95
%patch001 -p0
8a1aa95
%patch002 -p0
8a1aa95
%patch003 -p0
8a1aa95
%patch004 -p0
8a1aa95
%patch005 -p0
8a1aa95
%patch006 -p0
62f925f
%patch007 -p0
62f925f
%patch008 -p0
62f925f
%patch009 -p0
62f925f
%patch010 -p0
62f925f
%patch011 -p0
62f925f
%patch012 -p0
533e94f
%patch013 -p0
307bbf4
%patch014 -p0
307bbf4
%patch015 -p0
307bbf4
%patch016 -p0
307bbf4
%patch017 -p0
307bbf4
%patch018 -p0
307bbf4
%patch019 -p0
307bbf4
%patch020 -p0
307bbf4
%patch021 -p0
307bbf4
%patch022 -p0
d8279b0
%patch023 -p0
d8279b0
%patch024 -p0
d8279b0
%patch025 -p0
6cd58e7
%patch026 -p0
bb267a3
%patch027 -p0
bb267a3
%patch028 -p0
bb267a3
%patch029 -p0
bb267a3
%patch030 -p0
bb267a3
%patch031 -p0
bb267a3
%patch032 -p0
bb267a3
%patch033 -p0
bb267a3
%patch034 -p0
bb267a3
%patch035 -p0
bb267a3
%patch036 -p0
bb267a3
%patch037 -p0
bb267a3
%patch038 -p0
bb267a3
%patch039 -p0
bb267a3
%patch040 -p0
bb267a3
%patch041 -p0
bb267a3
%patch042 -p0
bb267a3
%patch043 -p0
bb267a3
%patch044 -p0
bb267a3
%patch045 -p0
bb267a3
%patch046 -p0
bb267a3
%patch047 -p0
bb267a3
%patch048 -p0
bb267a3
%patch049 -p0
bb267a3
%patch050 -p0
bb267a3
%patch051 -p0
bb267a3
%patch052 -p0
bb267a3
%patch053 -p0
bb267a3
%patch054 -p0
bb267a3
%patch055 -p0
bb267a3
%patch056 -p0
bb267a3
%patch057 -p0
bb267a3
%patch058 -p0
bb267a3
%patch059 -p0
bb267a3
%patch060 -p0
bb267a3
d427c0e
d427c0e
# install spell files
a0c2f1f
%if %{withvimspell}
44a6bac
%{__tar} xjf %{SOURCE13}
a0c2f1f
%endif
cvsdist e6a9560
fb8ddfe
%patch3000 -p1
fb8ddfe
%patch3002 -p1
fb8ddfe
%patch3003 -p1
fb8ddfe
%patch3004 -p1
cvsdist 1401a3e
52217fd
%patch3006 -p1
52217fd
%patch3007 -p1
52217fd
%patch3008 -p1
619d304
%patch3009 -p1
cd3cd11
%patch3010 -p1
3036dca
%patch3011 -p1
619d304
87c2150
cp -f %{SOURCE15} runtime/syntax/forth.vim
bb267a3
cp -f %{SOURCE16} runtime/plugin/netrwPlugin.vim
bb267a3
cp -f %{SOURCE17} runtime/plugin/gzip.vim
bb267a3
cp -f %{SOURCE18} runtime/plugin/filetype.vim
bb267a3
cp -f %{SOURCE19} runtime/autoload/zip.vim
bb267a3
cp -f %{SOURCE20} runtime/autoload/tar.vim
bb267a3
cp -f %{SOURCE21} runtime/autoload/netrwFileHandlers.vim
bb267a3
cp -f %{SOURCE22} runtime/autoload/netrw.vim
bb267a3
cp -f %{SOURCE23} runtime/autoload/netrwSettings.vim
cvsdist 840bb7d
937d1ce
937d1ce
%build
cvsdist f1dd315
cd src
cvsdist 1401a3e
autoconf
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 7a22376
cvsdist e6a9560
%configure --with-features=huge --enable-pythoninterp --enable-perlinterp \
a8cc794
  --disable-tclinterp --with-x=yes \
cvsdist 4e2ca83
  --enable-xim --enable-multibyte \
0a37466
  --with-tlib=ncurses \
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
816a4c3
%if %{WITH_SELINUX}
816a4c3
  --enable-selinux \
816a4c3
%else
816a4c3
  --disable-selinux \
816a4c3
%endif
3783268
%if "%{withruby}" == "1"
3783268
  --enable-rubyinterp \
3783268
%else
3783268
  --disable-rubyinterp \
3783268
%endif
696a6dc
3ca42e5
make %{?_smp_mflags}
cvsdist f1dd315
cp vim gvim
cvsdist f1dd315
make clean
cvsdist f1dd315
0170fcc
%configure --prefix=%{_prefix} --with-features=huge --enable-pythoninterp \
cvsdist e6a9560
 --enable-perlinterp --disable-tclinterp --with-x=no \
0170fcc
 --enable-gui=no --exec-prefix=%{_prefix} --enable-multibyte \
ed8b8f4
 --enable-cscope --with-modified-by="<bugzilla@redhat.com>" \
0a37466
 --with-tlib=ncurses \
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
816a4c3
%if %{WITH_SELINUX}
816a4c3
  --enable-selinux \
816a4c3
%else
816a4c3
  --disable-selinux \
816a4c3
%endif
3783268
%if "%{withruby}" == "1"
3783268
  --enable-rubyinterp \
3783268
%else
3783268
  --disable-rubyinterp \
3783268
%endif
cvsdist e6a9560
3ca42e5
make %{?_smp_mflags}
cvsdist f1dd315
cp vim enhanced-vim
cvsdist f1dd315
make clean
cvsdist f1dd315
e73e8b0
perl -pi -e "s/help.txt/vi_help.txt/"  os_unix.h ex_cmds.c
3785aa2
perl -pi -e "s/\/etc\/vimrc/\/etc\/virc/"  os_unix.h
0170fcc
%configure --prefix=%{_prefix} --with-features=small --with-x=no \
cvsdist 813db27
  --enable-multibyte \
cvsdist 0f915f5
  --disable-netbeans \
816a4c3
%if %{WITH_SELINUX}
816a4c3
  --enable-selinux \
816a4c3
%else
816a4c3
  --disable-selinux \
816a4c3
%endif
cvsdist f1dd315
  --disable-pythoninterp --disable-perlinterp --disable-tclinterp \
0a37466
  --with-tlib=ncurses --enable-gui=no --disable-gpm --exec-prefix=/ \
37c7385
  --with-compiledby="<bugzilla@redhat.com>" \
37c7385
  --with-modified-by="<bugzilla@redhat.com>"
cvsdist e6a9560
3ca42e5
make %{?_smp_mflags}
cvsdist f1dd315
cvsdist f1dd315
%install
cvsdist f1dd315
rm -rf $RPM_BUILD_ROOT
cvsdist f1dd315
mkdir -p $RPM_BUILD_ROOT/bin
0170fcc
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
83470ef
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}/vimfiles/{after,autoload,colors,compiler,doc,ftdetect,ftplugin,indent,keymap,lang,plugin,print,spell,syntax,tutor}
83470ef
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}/vimfiles/after/{autoload,colors,compiler,doc,ftdetect,ftplugin,indent,keymap,lang,plugin,print,spell,syntax,tutor}
3ca42e5
cp -f %{SOURCE11} .
10143b6
cp -f %{SOURCE14} $RPM_BUILD_ROOT/%{_datadir}/%{name}/vimfiles/template.spec
0170fcc
cp runtime/doc/uganda.txt LICENSE
d8279b0
# Those aren't Linux info files but some binary files for Amiga:
d8279b0
rm -f README*.info
3ca42e5
696a6dc
cvsdist f1dd315
cd src
3ca42e5
make install DESTDIR=$RPM_BUILD_ROOT BINDIR=/bin
9605be1
make installgtutorbin  DESTDIR=$RPM_BUILD_ROOT BINDIR=/bin
0170fcc
mv $RPM_BUILD_ROOT/bin/xxd $RPM_BUILD_ROOT/%{_bindir}/xxd
004f21d
mv $RPM_BUILD_ROOT/bin/gvimtutor $RPM_BUILD_ROOT/%{_bindir}/gvimtutor
cvsdist 0c22351
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/{16x16,32x32,48x48,64x64}/apps
0170fcc
install -m755 gvim $RPM_BUILD_ROOT/%{_bindir}/gvim
0170fcc
install -p -m644 %{SOURCE7} \
cvsdist 0c22351
   $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/gvim.png
0170fcc
install -p -m644 %{SOURCE8} \
cvsdist 0c22351
   $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/gvim.png
0170fcc
install -p -m644 %{SOURCE9} \
cvsdist 0c22351
   $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/gvim.png
0170fcc
install -p -m644 %{SOURCE10} \
cvsdist 0c22351
   $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps/gvim.png
0170fcc
install -m755 enhanced-vim $RPM_BUILD_ROOT/%{_bindir}/vim
cvsdist f1dd315
cvsdist f1dd315
( cd $RPM_BUILD_ROOT
0170fcc
  mv ./bin/vimtutor ./%{_bindir}/vimtutor
cvsdist f1dd315
  mv ./bin/vim ./bin/vi
cvsdist f1dd315
  rm -f ./bin/rvim
cvsdist f1dd315
  ln -sf vi ./bin/ex
cvsdist f1dd315
  ln -sf vi ./bin/rvi
cvsdist f1dd315
  ln -sf vi ./bin/rview
6cabe3c
  ln -sf vi ./bin/view
0170fcc
  ln -sf vim ./%{_bindir}/ex
0170fcc
  ln -sf vim ./%{_bindir}/rvim
0170fcc
  ln -sf vim ./%{_bindir}/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/vimdiff.1.gz
0170fcc
  ln -sf gvim ./%{_bindir}/gview
0170fcc
  ln -sf gvim ./%{_bindir}/gex
0170fcc
  ln -sf gvim ./%{_bindir}/evim
0170fcc
  ln -sf gvim ./%{_bindir}/gvimdiff
0170fcc
  ln -sf gvim ./%{_bindir}/vimx
cvsdist e6a9560
  %if "%{desktop_file}" == "1"
30eb0f7
    mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
0170fcc
    desktop-file-install --vendor fedora \
30eb0f7
        --dir $RPM_BUILD_ROOT/%{_datadir}/applications \
39965cf
        --add-category "Development;TextEditor;X-Red-Hat-Base" \
cvsdist e6a9560
        %{SOURCE3}
cvsdist 2c14b33
  %else
0170fcc
    mkdir -p ./%{_sysconfdir}/X11/applnk/Applications
0170fcc
    cp %{SOURCE3} ./%{_sysconfdir}/X11/applnk/Applications/gvim.desktop
cvsdist 2c14b33
  %endif
cvsdist 7a22376
  # ja_JP.ujis is obsolete, ja_JP.eucJP is recommended.
30eb0f7
  ( cd ./%{_datadir}/%{name}/%{vimdir}/lang; \
cvsdist 7a22376
    ln -sf menu_ja_jp.ujis.vim menu_ja_jp.eucjp.vim )
cvsdist f1dd315
)
cvsdist f1dd315
30eb0f7
pushd $RPM_BUILD_ROOT/%{_datadir}/%{name}/%{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
d82ff2d
   #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
d82ff2d
   mv -f 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
30eb0f7
chmod 644 $RPM_BUILD_ROOT/%{_datadir}/%{name}/%{vimdir}/doc/vim2html.pl \
30eb0f7
 $RPM_BUILD_ROOT/%{_datadir}/%{name}/%{vimdir}/tools/*.pl \
30eb0f7
 $RPM_BUILD_ROOT/%{_datadir}/%{name}/%{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
0170fcc
  [ -x /%{_bindir}/id ] || return
0170fcc
  [ \`/%{_bindir}/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 <
0170fcc
[ -x /%{_bindir}/id ] || exit
0170fcc
[ \`/%{_bindir}/id -u\` -gt 100 ] && alias vi vim
cvsdist 1b13d44
EOF
5a04c16
chmod 0644 $RPM_BUILD_ROOT/%{_sysconfdir}/profile.d/*
0170fcc
install -p -m644 %{SOURCE4} $RPM_BUILD_ROOT/%{_sysconfdir}/vimrc
0170fcc
install -p -m644 %{SOURCE4} $RPM_BUILD_ROOT/%{_sysconfdir}/virc
30eb0f7
(cd $RPM_BUILD_ROOT/%{_datadir}/%{name}/%{vimdir}/doc;
3785aa2
 gzip -9 *.txt
e73e8b0
 gzip -d help.txt.gz version7.txt.gz sponsor.txt.gz
e73e8b0
 cp %{SOURCE12} .
e73e8b0
 cat tags | sed -e 's/\t\(.*.txt\)\t/\t\1.gz\t/;s/\thelp.txt.gz\t/\thelp.txt\t/;s/\tversion7.txt.gz\t/\tversion7.txt\t/;s/\tsponsor.txt.gz\t/\tsponsor.txt\t/' > tags.new; mv -f tags.new tags
e73e8b0
cat >> tags << EOF
e73e8b0
vi_help.txt	vi_help.txt	/*vi_help.txt*
e73e8b0
vi-author.txt	vi_help.txt	/*vi-author*
e73e8b0
vi-Bram.txt	vi_help.txt	/*vi-Bram*
e73e8b0
vi-Moolenaar.txt	vi_help.txt	/*vi-Moolenaar*
e73e8b0
vi-credits.txt	vi_help.txt	/*vi-credits*
e73e8b0
EOF
3785aa2
 )
6cabe3c
(cd ../runtime; rm -rf doc; ln -svf ../../vim/%{vimdir}/doc docs;) 
0170fcc
rm -f $RPM_BUILD_ROOT/%{_datadir}/vim/%{vimdir}/macros/maze/maze*.c
0170fcc
rm -rf $RPM_BUILD_ROOT/%{_datadir}/vim/%{vimdir}/tools
0170fcc
rm -rf $RPM_BUILD_ROOT/%{_datadir}/vim/%{vimdir}/doc/vim2html.pl
0170fcc
rm -f $RPM_BUILD_ROOT/%{_datadir}/vim/%{vimdir}/tutor/tutor.gr.utf-8~
0170fcc
( cd $RPM_BUILD_ROOT/%{_mandir}
0170fcc
  for i in `find ??/ -type f`; do
0170fcc
    bi=`basename $i`
0170fcc
    iconv -f latin1 -t UTF8 $i > $RPM_BUILD_ROOT/$bi
0170fcc
    mv -f $RPM_BUILD_ROOT/$bi $i
0170fcc
  done
0170fcc
)
cvsdist 1b13d44
d8279b0
# Remove not UTF-8 manpages
d8279b0
for i in pl.ISO8859-2 it.ISO8859-1 ru.KOI8-R fr.ISO8859-1; do
d8279b0
  rm -rf $RPM_BUILD_ROOT/%{_mandir}/$i
d8279b0
done
d8279b0
d8279b0
# use common man1/ru directory
d8279b0
mv $RPM_BUILD_ROOT/%{_mandir}/ru.UTF-8 $RPM_BUILD_ROOT/%{_mandir}/ru
d8279b0
d8279b0
# Remove duplicate man pages
d8279b0
for i in fr.UTF-8 it.UTF-8 pl.UTF-8; do
d8279b0
  rm -rf $RPM_BUILD_ROOT/%{_mandir}/$i
d8279b0
done
d8279b0
d8279b0
for i in rvim gvim.1 gvimdiff.1; do 
d8279b0
  echo ".so man1/vim.1" > $RPM_BUILD_ROOT/%{_mandir}/man1/$i
d8279b0
done
d8279b0
0b8934c
%post X11
0b8934c
touch --no-create %{_datadir}/icons/hicolor
0170fcc
if [ -x /%{_bindir}/gtk-update-icon-cache ]; then
13dc822
  gtk-update-icon-cache --ignore-theme-index -q %{_datadir}/icons/hicolor
0b8934c
fi
0170fcc
update-desktop-database &> /dev/null ||:
0b8934c
0b8934c
%postun X11
0b8934c
touch --no-create %{_datadir}/icons/hicolor
0170fcc
if [ -x /%{_bindir}/gtk-update-icon-cache ]; then
13dc822
  gtk-update-icon-cache --ignore-theme-index -q %{_datadir}/icons/hicolor
0b8934c
fi
0170fcc
update-desktop-database &> /dev/null ||:
0b8934c
cvsdist f1dd315
%clean
092e606
rm -rf $RPM_BUILD_ROOT
cvsdist f1dd315
cvsdist f1dd315
%files common
cvsdist f1dd315
%defattr(-,root,root)
5820b64
%config(noreplace) %{_sysconfdir}/vimrc
0170fcc
%doc README* LICENSE
cvsdist 2c14b33
%doc runtime/docs
3ca42e5
%doc Changelog.rpm
30eb0f7
%dir %{_datadir}/%{name}
30eb0f7
%dir %{_datadir}/%{name}/%{vimdir}
0099cd5
%dir %{_datadir}/%{name}/vimfiles
0099cd5
%dir %{_datadir}/%{name}/vimfiles/after
83470ef
%dir %{_datadir}/%{name}/vimfiles/after/*
83470ef
%dir %{_datadir}/%{name}/vimfiles/autoload
6cd58e7
%dir %{_datadir}/%{name}/vimfiles/colors
83470ef
%dir %{_datadir}/%{name}/vimfiles/compiler
6cd58e7
%dir %{_datadir}/%{name}/vimfiles/doc
6cd58e7
%dir %{_datadir}/%{name}/vimfiles/ftdetect
6cd58e7
%dir %{_datadir}/%{name}/vimfiles/ftplugin
6cd58e7
%dir %{_datadir}/%{name}/vimfiles/indent
83470ef
%dir %{_datadir}/%{name}/vimfiles/keymap
83470ef
%dir %{_datadir}/%{name}/vimfiles/lang
6cd58e7
%dir %{_datadir}/%{name}/vimfiles/plugin
83470ef
%dir %{_datadir}/%{name}/vimfiles/print
83470ef
%dir %{_datadir}/%{name}/vimfiles/spell
6cd58e7
%dir %{_datadir}/%{name}/vimfiles/syntax
83470ef
%dir %{_datadir}/%{name}/vimfiles/tutor
19c138f
%{_datadir}/%{name}/vimfiles/template.spec
30eb0f7
%{_datadir}/%{name}/%{vimdir}/autoload
30eb0f7
%{_datadir}/%{name}/%{vimdir}/colors
30eb0f7
%{_datadir}/%{name}/%{vimdir}/compiler
30eb0f7
%{_datadir}/%{name}/%{vimdir}/doc
30eb0f7
%{_datadir}/%{name}/%{vimdir}/*.vim
30eb0f7
%{_datadir}/%{name}/%{vimdir}/ftplugin
30eb0f7
%{_datadir}/%{name}/%{vimdir}/indent
30eb0f7
%{_datadir}/%{name}/%{vimdir}/keymap
30eb0f7
%{_datadir}/%{name}/%{vimdir}/lang/*.vim
30eb0f7
%{_datadir}/%{name}/%{vimdir}/lang/*.txt
30eb0f7
%dir %{_datadir}/%{name}/%{vimdir}/lang
30eb0f7
%{_datadir}/%{name}/%{vimdir}/macros
30eb0f7
%{_datadir}/%{name}/%{vimdir}/plugin
30eb0f7
%{_datadir}/%{name}/%{vimdir}/print
30eb0f7
%{_datadir}/%{name}/%{vimdir}/syntax
30eb0f7
%{_datadir}/%{name}/%{vimdir}/tutor
a0c2f1f
%if ! %{withvimspell}
30eb0f7
%{_datadir}/%{name}/%{vimdir}/spell
a0c2f1f
%endif
30eb0f7
%lang(af) %{_datadir}/%{name}/%{vimdir}/lang/af
30eb0f7
%lang(ca) %{_datadir}/%{name}/%{vimdir}/lang/ca
30eb0f7
%lang(cs) %{_datadir}/%{name}/%{vimdir}/lang/cs
30eb0f7
%lang(de) %{_datadir}/%{name}/%{vimdir}/lang/de
30eb0f7
%lang(en_GB) %{_datadir}/%{name}/%{vimdir}/lang/en_GB
d82ff2d
%lang(eo) %{_datadir}/%{name}/%{vimdir}/lang/eo
30eb0f7
%lang(es) %{_datadir}/%{name}/%{vimdir}/lang/es
d82ff2d
%lang(fi) %{_datadir}/%{name}/%{vimdir}/lang/fi
30eb0f7
%lang(fr) %{_datadir}/%{name}/%{vimdir}/lang/fr
30eb0f7
%lang(ga) %{_datadir}/%{name}/%{vimdir}/lang/ga
30eb0f7
%lang(it) %{_datadir}/%{name}/%{vimdir}/lang/it
30eb0f7
%lang(ja) %{_datadir}/%{name}/%{vimdir}/lang/ja
30eb0f7
%lang(ko) %{_datadir}/%{name}/%{vimdir}/lang/ko
30eb0f7
%lang(no) %{_datadir}/%{name}/%{vimdir}/lang/no
30eb0f7
%lang(pl) %{_datadir}/%{name}/%{vimdir}/lang/pl
d82ff2d
%lang(pt_BR) %{_datadir}/%{name}/%{vimdir}/lang/pt_BR
30eb0f7
%lang(ru) %{_datadir}/%{name}/%{vimdir}/lang/ru
30eb0f7
%lang(sk) %{_datadir}/%{name}/%{vimdir}/lang/sk
30eb0f7
%lang(sv) %{_datadir}/%{name}/%{vimdir}/lang/sv
30eb0f7
%lang(uk) %{_datadir}/%{name}/%{vimdir}/lang/uk
30eb0f7
%lang(vi) %{_datadir}/%{name}/%{vimdir}/lang/vi
30eb0f7
%lang(zh_CN) %{_datadir}/%{name}/%{vimdir}/lang/zh_CN
30eb0f7
%lang(zh_TW) %{_datadir}/%{name}/%{vimdir}/lang/zh_TW
30eb0f7
%lang(zh_CN.UTF-8) %{_datadir}/%{name}/%{vimdir}/lang/zh_CN.UTF-8
30eb0f7
%lang(zh_TW.UTF-8) %{_datadir}/%{name}/%{vimdir}/lang/zh_TW.UTF-8
0170fcc
/%{_bindir}/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.*
d8279b0
%lang(fr) %{_mandir}/fr/man1/*
d8279b0
%lang(it) %{_mandir}/it/man1/*
d8279b0
%lang(pl) %{_mandir}/pl/man1/*
d8279b0
%lang(ru) %{_mandir}/ru/man1/*
cvsdist f1dd315
a0c2f1f
%if %{withvimspell}
d427c0e
%files spell
0170fcc
%defattr(-,root,root)
30eb0f7
%dir %{_datadir}/%{name}/%{vimdir}/spell
30eb0f7
%{_datadir}/%{name}/vim70/spell/cleanadd.vim
30eb0f7
%lang(af) %{_datadir}/%{name}/%{vimdir}/spell/af.*
30eb0f7
%lang(am) %{_datadir}/%{name}/%{vimdir}/spell/am.*
30eb0f7
%lang(bg) %{_datadir}/%{name}/%{vimdir}/spell/bg.*
30eb0f7
%lang(ca) %{_datadir}/%{name}/%{vimdir}/spell/ca.*
30eb0f7
%lang(cs) %{_datadir}/%{name}/%{vimdir}/spell/cs.*
30eb0f7
%lang(cy) %{_datadir}/%{name}/%{vimdir}/spell/cy.*
30eb0f7
%lang(da) %{_datadir}/%{name}/%{vimdir}/spell/da.*
30eb0f7
%lang(de) %{_datadir}/%{name}/%{vimdir}/spell/de.*
30eb0f7
%lang(el) %{_datadir}/%{name}/%{vimdir}/spell/el.*
30eb0f7
%lang(en) %{_datadir}/%{name}/%{vimdir}/spell/en.*
30eb0f7
%lang(eo) %{_datadir}/%{name}/%{vimdir}/spell/eo.*
30eb0f7
%lang(es) %{_datadir}/%{name}/%{vimdir}/spell/es.*
30eb0f7
%lang(fo) %{_datadir}/%{name}/%{vimdir}/spell/fo.*
30eb0f7
%lang(fr) %{_datadir}/%{name}/%{vimdir}/spell/fr.*
30eb0f7
%lang(ga) %{_datadir}/%{name}/%{vimdir}/spell/ga.*
30eb0f7
%lang(gd) %{_datadir}/%{name}/%{vimdir}/spell/gd.*
30eb0f7
%lang(gl) %{_datadir}/%{name}/%{vimdir}/spell/gl.*
30eb0f7
%lang(he) %{_datadir}/%{name}/%{vimdir}/spell/he.*
30eb0f7
%lang(hr) %{_datadir}/%{name}/%{vimdir}/spell/hr.*
30eb0f7
%lang(hu) %{_datadir}/%{name}/%{vimdir}/spell/hu.*
30eb0f7
%lang(id) %{_datadir}/%{name}/%{vimdir}/spell/id.*
30eb0f7
%lang(it) %{_datadir}/%{name}/%{vimdir}/spell/it.*
30eb0f7
%lang(ku) %{_datadir}/%{name}/%{vimdir}/spell/ku.*
30eb0f7
%lang(la) %{_datadir}/%{name}/%{vimdir}/spell/la.*
30eb0f7
%lang(lt) %{_datadir}/%{name}/%{vimdir}/spell/lt.*
30eb0f7
%lang(lv) %{_datadir}/%{name}/%{vimdir}/spell/lv.*
30eb0f7
%lang(mg) %{_datadir}/%{name}/%{vimdir}/spell/mg.*
30eb0f7
%lang(mi) %{_datadir}/%{name}/%{vimdir}/spell/mi.*
30eb0f7
%lang(ms) %{_datadir}/%{name}/%{vimdir}/spell/ms.*
30eb0f7
%lang(nb) %{_datadir}/%{name}/%{vimdir}/spell/nb.*
30eb0f7
%lang(nl) %{_datadir}/%{name}/%{vimdir}/spell/nl.*
30eb0f7
%lang(nn) %{_datadir}/%{name}/%{vimdir}/spell/nn.*
30eb0f7
%lang(ny) %{_datadir}/%{name}/%{vimdir}/spell/ny.*
30eb0f7
%lang(pl) %{_datadir}/%{name}/%{vimdir}/spell/pl.*
30eb0f7
%lang(pt) %{_datadir}/%{name}/%{vimdir}/spell/pt.*
30eb0f7
%lang(ro) %{_datadir}/%{name}/%{vimdir}/spell/ro.*
30eb0f7
%lang(ru) %{_datadir}/%{name}/%{vimdir}/spell/ru.*
30eb0f7
%lang(rw) %{_datadir}/%{name}/%{vimdir}/spell/rw.*
30eb0f7
%lang(sk) %{_datadir}/%{name}/%{vimdir}/spell/sk.*
30eb0f7
%lang(sl) %{_datadir}/%{name}/%{vimdir}/spell/sl.*
30eb0f7
%lang(sv) %{_datadir}/%{name}/%{vimdir}/spell/sv.*
30eb0f7
%lang(sw) %{_datadir}/%{name}/%{vimdir}/spell/sw.*
30eb0f7
%lang(tet) %{_datadir}/%{name}/%{vimdir}/spell/tet.*
30eb0f7
%lang(th) %{_datadir}/%{name}/%{vimdir}/spell/th.*
30eb0f7
%lang(tl) %{_datadir}/%{name}/%{vimdir}/spell/tl.*
30eb0f7
%lang(tn) %{_datadir}/%{name}/%{vimdir}/spell/tn.*
30eb0f7
%lang(uk) %{_datadir}/%{name}/%{vimdir}/spell/uk.*
30eb0f7
%lang(yi) %{_datadir}/%{name}/%{vimdir}/spell/yi.*
30eb0f7
%lang(yi-tr) %{_datadir}/%{name}/%{vimdir}/spell/yi-tr.*
30eb0f7
%lang(zu) %{_datadir}/%{name}/%{vimdir}/spell/zu.*
a0c2f1f
%endif
d427c0e
cvsdist f1dd315
%files minimal
cvsdist f1dd315
%defattr(-,root,root)
3785aa2
%config(noreplace) %{_sysconfdir}/virc
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)
0170fcc
%{_bindir}/vim
0170fcc
%{_bindir}/rvim
0170fcc
%{_bindir}/vimdiff
0170fcc
%{_bindir}/ex
0170fcc
%{_bindir}/vimtutor
5a04c16
%config(noreplace) %{_sysconfdir}/profile.d/vim.*
cvsdist 7a22376
%{_mandir}/man1/rvim.*
cvsdist 7a22376
%{_mandir}/man1/vimdiff.*
cvsdist fcc9190
%{_mandir}/man1/vimtutor.*
cvsdist f1dd315
cvsdist f1dd315
%files X11
cvsdist f1dd315
%defattr(-,root,root)
cvsdist e6a9560
%if "%{desktop_file}" == "1"
0170fcc
/%{_datadir}/applications/*
cvsdist 2c14b33
%else
0170fcc
/%{_sysconfdir}/X11/applnk/*/gvim.desktop
cvsdist 2c14b33
%endif
004f21d
%{_bindir}/gvimtutor
0170fcc
%{_bindir}/gvim
0170fcc
%{_bindir}/gvimdiff
0170fcc
%{_bindir}/gview
0170fcc
%{_bindir}/gex
0170fcc
%{_bindir}/vimx
0170fcc
%{_bindir}/evim
cvsdist 7a22376
%{_mandir}/man1/evim.*
cvsdist e6a9560
%{_mandir}/man1/gvim*
cvsdist 0c22351
%{_datadir}/icons/hicolor/*/apps/*
cvsdist f1dd315
cvsdist f1dd315
%changelog
bb267a3
* Mon Dec 01 2008 Karsten Hopp <karsten@redhat.com> 7.2.060-1
bb267a3
- patchlevel 60
bb267a3
bb267a3
* Mon Nov 10 2008 Karsten Hopp <karsten@redhat.com> 7.2.032-1
bb267a3
- patchlevel 32
bb267a3
83470ef
* Mon Nov 03 2008 Karsten Hopp <karsten@redhat.com> 7.2.026-2
83470ef
- add more /usr/share/vim/vimfiles directories (#444387)
83470ef
6cd58e7
* Mon Nov 03 2008 Karsten Hopp <karsten@redhat.com> 7.2.026-1
6cd58e7
- patchlevel 26
6cd58e7
- own some directories in /usr/share/vim/vimfiles (#469491)
6cd58e7
092e606
* Tue Oct 21 2008 Karsten Hopp <karsten@redhat.com> 7.2.025-2
092e606
- re-enable clean
092e606
d8279b0
* Mon Oct 20 2008 Karsten Hopp <karsten@redhat.com> 7.2.025-1
d8279b0
- patchlevel 25
d8279b0
- add Categories tag to desktop file (#226526)
d8279b0
- add requirement on hicolor-icon-theme to vim-X11 (#226526)
d8279b0
- drop Amiga info files (#226526)
d8279b0
- remove non-utf8 man pages (#226526)
39965cf
- drop Application from categories (#226526)
d8279b0
307bbf4
* Tue Sep 30 2008 Karsten Hopp <karsten@redhat.com> 7.2.022-1
307bbf4
- patchlevel 22
307bbf4
533e94f
* Mon Sep 08 2008 Karsten Hopp <karsten@redhat.com> 7.2.013-1
533e94f
- patchlevel 13
62f925f
8a1aa95
* Mon Aug 25 2008 Karsten Hopp <karsten@redhat.com> 7.2.006-1
8a1aa95
- patchlevel 6
8a1aa95
8a1aa95
* Mon Aug 18 2008 Karsten Hopp <karsten@redhat.com> 7.2.002-1
8a1aa95
- patchlevel 2
8a1aa95
- fix specfile template (#446070)
8a1aa95
- old specfile changelog moved to Changelog.rpm
8a1aa95
d82ff2d
* Fri Aug 14 2008 Karsten Hopp <karsten@redhat.com> 7.2.000-1
d82ff2d
- vim 7.2
d82ff2d
- drop 330 patches
d82ff2d
6d3e55b
# vim:nrformats-=octal