Karsten Hopp b7f4bf
%define patchlevel 027
Karsten Hopp f15eb2
%if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1}
cvsdist 1401a3
%define WITH_SELINUX 1
Karsten Hopp f15eb2
%endif
cvsdist 2c14b3
%define desktop_file 1
cvsdist 2c14b3
%if %{desktop_file}
cvsdist 2c14b3
%define desktop_file_utils_version 0.2.93
cvsdist 2c14b3
%endif
cvsdist e6a956
Karsten Hopp 192200
%define withnetbeans 1
cvsdist e6a956
Jeremy Katz a0c2f1
%define withvimspell 0
Karsten Hopp 5a04c1
%define withhunspell 0
Karsten Hopp ba59f5
%define withruby 1
cvsdist e6a956
Karsten Hopp 80fa3a
%define baseversion 7.4
Karsten Hopp 5629fc
%define vimdir vim74
cvsdist 2c14b3
Karsten Hopp 3ca42e
Summary: The VIM editor
Karsten Hopp 3ca42e
URL:     http://www.vim.org/
cvsdist f1dd31
Name: vim
Karsten Hopp 5629fc
Version: %{baseversion}.%{patchlevel}
Karsten Hopp d5e5f0
Release: 2%{?dist}
Karsten Hopp 6b2f4e
License: Vim
cvsdist f1dd31
Group: Applications/Editors
Karsten Hopp 5629fc
Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}.tar.bz2
cvsdist e6a956
Source3: gvim.desktop
cvsdist e6a956
Source4: vimrc
Karsten Hopp a02e7b
Source5: ftp://ftp.vim.org/pub/vim/patches/README.patches
cvsdist 0c2235
Source7: gvim16.png
cvsdist 0c2235
Source8: gvim32.png
cvsdist 0c2235
Source9: gvim48.png
cvsdist 0c2235
Source10: gvim64.png
cvsdist 705de6
Source11: Changelog.rpm
Karsten Hopp d30494
Source12: vi_help.txt
Jeremy Katz a0c2f1
%if %{withvimspell}
Karsten Hopp 44a6ba
Source13: vim-spell-files.tar.bz2
Jeremy Katz a0c2f1
%endif
Karsten Hopp 3ebf80
Source14: spec-template
Karsten Hopp 80a1b0
Source15: spec-template.new
Karsten Hopp 192200
Karsten Hopp 6cabe3
Patch2002: vim-7.0-fixkeys.patch
cvsdist 1b4d76
Patch2003: vim-6.2-specsyntax.patch
Karsten Hopp 5a04c1
%if %{withhunspell}
Karsten Hopp 5a04c1
Patch2011: vim-7.0-hunspell.patch
Karsten Hopp 5a04c1
BuildRequires: hunspell-devel
Karsten Hopp 5a04c1
%endif
cvsdist 2c14b3
# If you're as lazy as me, generate the list using
Karsten Hopp 80fa3a
# for i in `seq 1 14`; do printf "Patch%03d: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.%03d\n" $i $i; done
Karsten Hopp fb7e11
Patch001: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.001
Karsten Hopp fb7e11
Patch002: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.002
Karsten Hopp fb7e11
Patch003: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.003
Karsten Hopp fb7e11
Patch004: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.004
Karsten Hopp fb7e11
Patch005: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.005
Karsten Hopp fb7e11
Patch006: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.006
Karsten Hopp fb7e11
Patch007: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.007
Karsten Hopp fb7e11
Patch008: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.008
Karsten Hopp fb7e11
Patch009: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.009
Karsten Hopp 583e34
Patch010: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.010
Karsten Hopp 583e34
Patch011: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.011
Karsten Hopp 583e34
Patch012: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.012
Karsten Hopp 583e34
Patch013: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.013
Karsten Hopp 583e34
Patch014: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.014
Karsten Hopp 583e34
Patch015: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.015
Karsten Hopp 583e34
Patch016: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.016
Karsten Hopp b7f4bf
Patch017: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.017
Karsten Hopp b7f4bf
Patch018: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.018
Karsten Hopp b7f4bf
Patch019: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.019
Karsten Hopp b7f4bf
Patch020: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.020
Karsten Hopp b7f4bf
Patch021: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.021
Karsten Hopp b7f4bf
Patch022: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.022
Karsten Hopp b7f4bf
Patch023: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.023
Karsten Hopp b7f4bf
Patch024: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.024
Karsten Hopp b7f4bf
Patch025: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.025
Karsten Hopp b7f4bf
Patch026: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.026
Karsten Hopp b7f4bf
Patch027: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.027
Karsten Hopp 80fa3a
Karsten Hopp 80fa3a
Patch3000: vim-7.4-syntax.patch
Karsten Hopp 44a6ba
Patch3002: vim-7.1-nowarnings.patch
Karsten Hopp 6cabe3
Patch3004: vim-7.0-rclocation.patch
Karsten Hopp 52217f
Patch3006: vim-6.4-checkhl.patch
Karsten Hopp 80fa3a
Patch3007: vim-7.4-fstabsyntax.patch
Karsten Hopp 0aa3da
Patch3008: vim-7.0-warning.patch
Karsten Hopp 0aa3da
Patch3009: vim-7.0-syncolor.patch
Karsten Hopp 0aa3da
Patch3010: vim-7.0-specedit.patch
Karsten Hopp 0aa3da
Patch3011: vim72-rh514717.patch
Karsten Hopp 80fa3a
Patch3012: vim-7.3-manpage-typo-668894-675480.patch
Karsten Hopp b656c4
Patch3013: vim-7.3-xsubpp-path.patch
Karsten Hopp 69d638
Patch3014: vim-manpagefixes-948566.patch
cvsdist 1401a3
Karsten Hopp 3ca42e
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Karsten Hopp 57761a
BuildRequires: python-devel ncurses-devel gettext perl-devel
Karsten Hopp 87aef7
BuildRequires: perl(ExtUtils::Embed) perl(ExtUtils::ParseXS)
Karsten Hopp 0170fc
BuildRequires: libacl-devel gpm-devel autoconf
cvsdist 0c2235
%if %{WITH_SELINUX}
Karsten Hopp 0170fc
BuildRequires: libselinux-devel
cvsdist 0c2235
%endif
Karsten Hopp 0aa3da
%if "%{withruby}" == "1"
Karsten Hopp 0aa3da
Buildrequires: ruby-devel ruby
Karsten Hopp 0aa3da
%endif
cvsdist 2c14b3
%if %{desktop_file}
Tom Callaway f5f85d
# for /usr/bin/desktop-file-install
Tom Callaway f5f85d
Requires: desktop-file-utils
Karsten Hopp 3ca42e
BuildRequires: desktop-file-utils >= %{desktop_file_utils_version}
cvsdist 2c14b3
%endif
Karsten Hopp 5d3be3
Epoch: 2
Harald Hoyer 346844
Conflicts: filesystem < 3
cvsdist f1dd31
cvsdist f1dd31
%description
cvsdist f1dd31
VIM (VIsual editor iMproved) is an updated and improved version of the
cvsdist f1dd31
vi editor.  Vi was the first real screen-based editor for UNIX, and is
cvsdist f1dd31
still very popular.  VIM improves on vi by adding new features:
cvsdist f1dd31
multiple windows, multi-level undo, block highlighting and more.
cvsdist f1dd31
cvsdist f1dd31
%package common
Karsten Hopp 0170fc
Summary: The common files needed by any version of the VIM editor
cvsdist f1dd31
Group: Applications/Editors
Karsten Hopp 6cabe3
Conflicts: man-pages-fr < 0.9.7-14
Karsten Hopp 6cabe3
Conflicts: man-pages-it < 0.3.0-17
Karsten Hopp bc12b6
Conflicts: man-pages-pl < 0.24-2
Karsten Hopp ea8207
Requires: %{name}-filesystem
cvsdist f1dd31
cvsdist f1dd31
%description common
cvsdist f1dd31
VIM (VIsual editor iMproved) is an updated and improved version of the
cvsdist f1dd31
vi editor.  Vi was the first real screen-based editor for UNIX, and is
cvsdist f1dd31
still very popular.  VIM improves on vi by adding new features:
cvsdist f1dd31
multiple windows, multi-level undo, block highlighting and more.  The
cvsdist f1dd31
vim-common package contains files which every VIM binary will need in
cvsdist f1dd31
order to run.
cvsdist f1dd31
cvsdist 1401a3
If you are installing vim-enhanced or vim-X11, you'll also need
cvsdist 1401a3
to install the vim-common package.
cvsdist f1dd31
Karsten Hopp d427c0
%package spell
Karsten Hopp 0170fc
Summary: The dictionaries for spell checking. This package is optional
Karsten Hopp d427c0
Group: Applications/Editors
Karsten Hopp d427c0
Requires: vim-common = %{epoch}:%{version}-%{release}
Karsten Hopp d427c0
Karsten Hopp d427c0
%description spell
Karsten Hopp d427c0
This subpackage contains dictionaries for vim spell checking in
Karsten Hopp d427c0
many different languages.
Karsten Hopp d427c0
cvsdist f1dd31
%package minimal
Karsten Hopp 0170fc
Summary: A minimal version of the VIM editor
cvsdist f1dd31
Group: Applications/Editors
Karsten Hopp 3ca42e
Provides: vi = %{version}-%{release}
Harald Hoyer 346844
Provides: /bin/vi
cvsdist f1dd31
cvsdist f1dd31
%description minimal
cvsdist f1dd31
VIM (VIsual editor iMproved) is an updated and improved version of the
cvsdist f1dd31
vi editor.  Vi was the first real screen-based editor for UNIX, and is
cvsdist f1dd31
still very popular.  VIM improves on vi by adding new features:
cvsdist f1dd31
multiple windows, multi-level undo, block highlighting and more. The
cvsdist f1dd31
vim-minimal package includes a minimal version of VIM, which is
cvsdist f1dd31
installed into /bin/vi for use when only the root partition is
cvsdist 1401a3
present. NOTE: The online help is only available when the vim-common
cvsdist 1401a3
package is installed.
cvsdist f1dd31
cvsdist f1dd31
%package enhanced
Karsten Hopp 0170fc
Summary: A version of the VIM editor which includes recent enhancements
cvsdist f1dd31
Group: Applications/Editors
Karsten Hopp be5822
Requires: vim-common = %{epoch}:%{version}-%{release} which
Karsten Hopp 3ca42e
Provides: vim = %{version}-%{release}
Tom Callaway f5f85d
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
cvsdist f1dd31
cvsdist f1dd31
%description enhanced
cvsdist f1dd31
VIM (VIsual editor iMproved) is an updated and improved version of the
cvsdist f1dd31
vi editor.  Vi was the first real screen-based editor for UNIX, and is
cvsdist f1dd31
still very popular.  VIM improves on vi by adding new features:
cvsdist f1dd31
multiple windows, multi-level undo, block highlighting and more.  The
cvsdist f1dd31
vim-enhanced package contains a version of VIM with extra, recently
cvsdist f1dd31
introduced features like Python and Perl interpreters.
cvsdist f1dd31
cvsdist f1dd31
Install the vim-enhanced package if you'd like to use a version of the
cvsdist f1dd31
VIM editor which includes recently added enhancements like
cvsdist f1dd31
interpreters for the Python and Perl scripting languages.  You'll also
cvsdist f1dd31
need to install the vim-common package.
cvsdist f1dd31
Karsten Hopp ea8207
%package filesystem
Karsten Hopp ea8207
Summary: VIM filesystem layout
Karsten Hopp ea8207
Group: Applications/Editors
Karsten Hopp ea8207
Karsten Hopp ea8207
%Description filesystem
Karsten Hopp ea8207
This package provides some directories which are required by other
Karsten Hopp ea8207
packages that add vim files, p.e.  additional syntax files or filetypes.
Karsten Hopp ea8207
cvsdist f1dd31
%package X11
Karsten Hopp 0170fc
Summary: The VIM version of the vi editor for the X Window System
cvsdist f1dd31
Group: Applications/Editors
Karsten Hopp cedda7
Requires: vim-common = %{epoch}:%{version}-%{release} libattr >= 2.4 gtk2 >= 2.6
Karsten Hopp 0170fc
Provides: gvim = %{version}-%{release}
Karsten Hopp 5617c4
BuildRequires: gtk2-devel libSM-devel libXt-devel libXpm-devel
Tom Callaway f5f85d
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Karsten Hopp ea4650
Requires: hicolor-icon-theme
cvsdist f1dd31
cvsdist f1dd31
%description X11
cvsdist f1dd31
VIM (VIsual editor iMproved) is an updated and improved version of the
cvsdist f1dd31
vi editor.  Vi was the first real screen-based editor for UNIX, and is
cvsdist f1dd31
still very popular.  VIM improves on vi by adding new features:
cvsdist f1dd31
multiple windows, multi-level undo, block highlighting and
cvsdist f1dd31
more. VIM-X11 is a version of the VIM editor which will run within the
cvsdist f1dd31
X Window System.  If you install this package, you can run VIM as an X
cvsdist f1dd31
application with a full GUI interface and mouse support.
cvsdist f1dd31
cvsdist f1dd31
Install the vim-X11 package if you'd like to try out a version of vi
cvsdist f1dd31
with graphics and mouse capabilities.  You'll also need to install the
cvsdist f1dd31
vim-common package.
cvsdist f1dd31
cvsdist f1dd31
%prep
Karsten Hopp 1121ed
%setup -q -b 0 -n %{vimdir}
cvsdist f1dd31
# fix rogue dependencies from sample code
cvsdist f1dd31
chmod -x runtime/tools/mve.awk
Karsten Hopp fb8ddf
%patch2002 -p1
Karsten Hopp fb8ddf
%patch2003 -p1
Karsten Hopp 5a04c1
%if %{withhunspell}
Karsten Hopp 5a04c1
%patch2011 -p1
Karsten Hopp 5a04c1
%endif
cvsdist f1dd31
perl -pi -e "s,bin/nawk,bin/awk,g" runtime/tools/mve.awk
cvsdist f1dd31
cvsdist 2c14b3
# Base patches...
cvsdist 0c2235
# for i in `seq 1 14`; do printf "%%patch%03d -p0 \n" $i; done
Karsten Hopp 5629fc
%patch001 -p0
Karsten Hopp af9378
%patch002 -p0
Karsten Hopp c77095
%patch003 -p0
Karsten Hopp 25175f
%patch004 -p0
Karsten Hopp 25175f
%patch005 -p0
Karsten Hopp 5f4121
%patch006 -p0
Karsten Hopp 5f4121
%patch007 -p0
Karsten Hopp 5f4121
%patch008 -p0
Karsten Hopp 5f4121
%patch009 -p0
Karsten Hopp 583e34
%patch010 -p0
Karsten Hopp 583e34
%patch011 -p0
Karsten Hopp 583e34
%patch012 -p0
Karsten Hopp 583e34
%patch013 -p0
Karsten Hopp 583e34
%patch014 -p0
Karsten Hopp 583e34
%patch015 -p0
Karsten Hopp 583e34
%patch016 -p0
Karsten Hopp b7f4bf
%patch017 -p0
Karsten Hopp b7f4bf
%patch018 -p0
Karsten Hopp b7f4bf
%patch019 -p0
Karsten Hopp b7f4bf
%patch020 -p0
Karsten Hopp b7f4bf
%patch021 -p0
Karsten Hopp b7f4bf
%patch022 -p0
Karsten Hopp b7f4bf
%patch023 -p0
Karsten Hopp b7f4bf
%patch024 -p0
Karsten Hopp b7f4bf
%patch025 -p0
Karsten Hopp b7f4bf
%patch026 -p0
Karsten Hopp b7f4bf
%patch027 -p0
Karsten Hopp d427c0
Karsten Hopp d427c0
# install spell files
Jeremy Katz a0c2f1
%if %{withvimspell}
Karsten Hopp 44a6ba
%{__tar} xjf %{SOURCE13}
Jeremy Katz a0c2f1
%endif
cvsdist e6a956
Karsten Hopp fb8ddf
%patch3000 -p1
Karsten Hopp fb8ddf
%patch3002 -p1
Karsten Hopp fb8ddf
%patch3004 -p1
Karsten Hopp 52217f
%patch3006 -p1
Karsten Hopp 52217f
%patch3007 -p1
Karsten Hopp 52217f
%patch3008 -p1
Karsten Hopp 619d30
%patch3009 -p1
Karsten Hopp cd3cd1
%patch3010 -p1
Karsten Hopp d484d1
%patch3011 -p1
Karsten Hopp b3a9f0
%patch3012 -p1
Karsten Hopp 80fa3a
Karsten Hopp ec459c
%if %{?fedora}%{!?fedora:0} >= 20 || %{?rhel}%{!?rhel:0} >= 7
Karsten Hopp b656c4
%patch3013 -p1
Karsten Hopp 80fa3a
%endif
Karsten Hopp 69d638
%patch3014 -p1
Karsten Hopp 619d30
Karsten Hopp 937d1c
%build
Karsten Hopp a02e7b
cp -f %{SOURCE5} .
cvsdist f1dd31
cd src
cvsdist 1401a3
autoconf
cvsdist 7a2237
Karsten Hopp 0aa3da
sed -e "s+VIMRCLOC	= \$(VIMLOC)+VIMRCLOC	= /etc+" Makefile > Makefile.tmp
Karsten Hopp 0aa3da
mv -f Makefile.tmp Makefile
Karsten Hopp 0aa3da
Karsten Hopp 6833e0
export CFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2"
Karsten Hopp 6833e0
export CXXFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2"
cvsdist 7a2237
Karsten Hopp 20a9c5
%configure --with-features=huge \
Karsten Hopp 20a9c5
  --enable-pythoninterp=dynamic \
Karsten Hopp 20a9c5
  --enable-perlinterp \
Karsten Hopp a8cc79
  --disable-tclinterp --with-x=yes \
cvsdist 4e2ca8
  --enable-xim --enable-multibyte \
Karsten Hopp 0a3746
  --with-tlib=ncurses \
cvsdist 4e2ca8
  --enable-gtk2-check --enable-gui=gtk2 \
cvsdist 4e2ca8
  --with-compiledby="<bugzilla@redhat.com>" --enable-cscope \
cvsdist 4e2ca8
  --with-modified-by="<bugzilla@redhat.com>" \
cvsdist 4e2ca8
%if "%{withnetbeans}" == "1"
cvsdist 4e2ca8
  --enable-netbeans \
cvsdist 4e2ca8
%else
cvsdist 0f915f
  --disable-netbeans \
cvsdist e6a956
%endif
Karsten Hopp 3d31b3
%if %{WITH_SELINUX}
Karsten Hopp 3d31b3
  --enable-selinux \
Karsten Hopp 3d31b3
%else
Karsten Hopp 3d31b3
  --disable-selinux \
Karsten Hopp 3d31b3
%endif
Karsten Hopp ba59f5
%if "%{withruby}" == "1"
Karsten Hopp 20a9c5
  --enable-rubyinterp=dynamic \
Karsten Hopp ba59f5
%else
Karsten Hopp ba59f5
  --disable-rubyinterp \
Karsten Hopp ba59f5
%endif
Karsten Hopp 696a6d
Karsten Hopp 0aa3da
make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/%{vimdir} %{?_smp_mflags}
cvsdist f1dd31
cp vim gvim
cvsdist f1dd31
make clean
cvsdist f1dd31
Karsten Hopp 20a9c5
%configure --prefix=%{_prefix} --with-features=huge \
Karsten Hopp 20a9c5
 --enable-pythoninterp=dynamic \
Karsten Hopp 20a9c5
 --enable-perlinterp \
Karsten Hopp 20a9c5
 --disable-tclinterp \
Karsten Hopp 20a9c5
 --with-x=no \
Karsten Hopp 0170fc
 --enable-gui=no --exec-prefix=%{_prefix} --enable-multibyte \
Karsten Hopp ed8b8f
 --enable-cscope --with-modified-by="<bugzilla@redhat.com>" \
Karsten Hopp 0a3746
 --with-tlib=ncurses \
cvsdist e6a956
 --with-compiledby="<bugzilla@redhat.com>" \
cvsdist 4e2ca8
%if "%{withnetbeans}" == "1"
cvsdist 4e2ca8
  --enable-netbeans \
cvsdist 4e2ca8
%else
cvsdist 4e2ca8
  --disable-netbeans \
cvsdist 4e2ca8
%endif
Karsten Hopp 3d31b3
%if %{WITH_SELINUX}
Karsten Hopp 3d31b3
  --enable-selinux \
Karsten Hopp 3d31b3
%else
Karsten Hopp 3d31b3
  --disable-selinux \
Karsten Hopp 3d31b3
%endif
Karsten Hopp ba59f5
%if "%{withruby}" == "1"
Karsten Hopp 20a9c5
  --enable-rubyinterp=dynamic \
Karsten Hopp ba59f5
%else
Karsten Hopp ba59f5
  --disable-rubyinterp \
Karsten Hopp ba59f5
%endif
cvsdist e6a956
Karsten Hopp 0aa3da
make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/%{vimdir} %{?_smp_mflags}
cvsdist f1dd31
cp vim enhanced-vim
cvsdist f1dd31
make clean
cvsdist f1dd31
Karsten Hopp d30494
perl -pi -e "s/help.txt/vi_help.txt/"  os_unix.h ex_cmds.c
Karsten Hopp 3785aa
perl -pi -e "s/\/etc\/vimrc/\/etc\/virc/"  os_unix.h
Karsten Hopp 0170fc
%configure --prefix=%{_prefix} --with-features=small --with-x=no \
cvsdist 813db2
  --enable-multibyte \
cvsdist 0f915f
  --disable-netbeans \
Karsten Hopp 3d31b3
%if %{WITH_SELINUX}
Karsten Hopp 3d31b3
  --enable-selinux \
Karsten Hopp 3d31b3
%else
Karsten Hopp 3d31b3
  --disable-selinux \
Karsten Hopp 3d31b3
%endif
cvsdist f1dd31
  --disable-pythoninterp --disable-perlinterp --disable-tclinterp \
Karsten Hopp 0a3746
  --with-tlib=ncurses --enable-gui=no --disable-gpm --exec-prefix=/ \
Karsten Hopp 37c738
  --with-compiledby="<bugzilla@redhat.com>" \
Karsten Hopp 37c738
  --with-modified-by="<bugzilla@redhat.com>"
cvsdist e6a956
Karsten Hopp 0aa3da
make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/%{vimdir} %{?_smp_mflags}
cvsdist f1dd31
cvsdist f1dd31
%install
Karsten Hopp 6833e0
rm -rf %{buildroot}
Karsten Hopp 6833e0
mkdir -p %{buildroot}/%{_bindir}
Karsten Hopp 6833e0
mkdir -p %{buildroot}/%{_datadir}/%{name}/vimfiles/{after,autoload,colors,compiler,doc,ftdetect,ftplugin,indent,keymap,lang,plugin,print,spell,syntax,tutor}
Karsten Hopp 6833e0
mkdir -p %{buildroot}/%{_datadir}/%{name}/vimfiles/after/{autoload,colors,compiler,doc,ftdetect,ftplugin,indent,keymap,lang,plugin,print,spell,syntax,tutor}
Karsten Hopp 3ca42e
cp -f %{SOURCE11} .
Karsten Hopp 80a1b0
%if %{?fedora}%{!?fedora:0} >= 16 || %{?rhel}%{!?rhel:0} >= 6
Karsten Hopp 6833e0
cp -f %{SOURCE15} %{buildroot}/%{_datadir}/%{name}/vimfiles/template.spec
Karsten Hopp 80a1b0
%else
Karsten Hopp 6833e0
cp -f %{SOURCE14} %{buildroot}/%{_datadir}/%{name}/vimfiles/template.spec
Karsten Hopp 80a1b0
%endif
Karsten Hopp 0170fc
cp runtime/doc/uganda.txt LICENSE
Karsten Hopp ea4650
# Those aren't Linux info files but some binary files for Amiga:
Karsten Hopp ea4650
rm -f README*.info
Karsten Hopp 3ca42e
Karsten Hopp 696a6d
cvsdist f1dd31
cd src
Karsten Hopp 6833e0
make install DESTDIR=%{buildroot} BINDIR=%{_bindir} VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/%{vimdir}
Karsten Hopp 6833e0
make installgtutorbin  DESTDIR=%{buildroot} BINDIR=%{_bindir} VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/%{vimdir}
Karsten Hopp 6833e0
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{16x16,32x32,48x48,64x64}/apps
Karsten Hopp 6833e0
install -m755 vim %{buildroot}%{_bindir}/vi
Karsten Hopp 6833e0
install -m755 enhanced-vim %{buildroot}%{_bindir}/vim
Karsten Hopp 6833e0
install -m755 gvim %{buildroot}%{_bindir}/gvim
Karsten Hopp 0170fc
install -p -m644 %{SOURCE7} \
Karsten Hopp 6833e0
   %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/gvim.png
Karsten Hopp 0170fc
install -p -m644 %{SOURCE8} \
Karsten Hopp 6833e0
   %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/gvim.png
Karsten Hopp 0170fc
install -p -m644 %{SOURCE9} \
Karsten Hopp 6833e0
   %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/gvim.png
Karsten Hopp 0170fc
install -p -m644 %{SOURCE10} \
Karsten Hopp 6833e0
   %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/gvim.png
cvsdist f1dd31
Karsten Hopp 6833e0
( cd %{buildroot}
Harald Hoyer 346844
  ln -sf vi ./%{_bindir}/rvi
Harald Hoyer 346844
  ln -sf vi ./%{_bindir}/rview
Harald Hoyer 346844
  ln -sf vi ./%{_bindir}/view
Harald Hoyer 346844
  ln -sf vi ./%{_bindir}/ex
Karsten Hopp 0170fc
  ln -sf vim ./%{_bindir}/rvim
Karsten Hopp 0170fc
  ln -sf vim ./%{_bindir}/vimdiff
Karsten Hopp 6833e0
  perl -pi -e "s,%{buildroot},," .%{_mandir}/man1/vim.1 .%{_mandir}/man1/vimtutor.1
cvsdist f1dd31
  rm -f .%{_mandir}/man1/rvim.1
cvsdist f1dd31
  ln -sf vim.1.gz .%{_mandir}/man1/vi.1.gz
cvsdist f1dd31
  ln -sf vim.1.gz .%{_mandir}/man1/rvi.1.gz
cvsdist 7a2237
  ln -sf vim.1.gz .%{_mandir}/man1/vimdiff.1.gz
Karsten Hopp 0170fc
  ln -sf gvim ./%{_bindir}/gview
Karsten Hopp 0170fc
  ln -sf gvim ./%{_bindir}/gex
Karsten Hopp 0170fc
  ln -sf gvim ./%{_bindir}/evim
Karsten Hopp 0170fc
  ln -sf gvim ./%{_bindir}/gvimdiff
Karsten Hopp 0170fc
  ln -sf gvim ./%{_bindir}/vimx
cvsdist e6a956
  %if "%{desktop_file}" == "1"
Karsten Hopp 6833e0
    mkdir -p %{buildroot}/%{_datadir}/applications
Toshio Kuratomi 2a1fde
    desktop-file-install \
Toshio Kuratomi 2a1fde
    %if 0%{?fedora} && 0%{?fedora} < 19
Toshio Kuratomi 2a1fde
        --vendor fedora \
Toshio Kuratomi 2a1fde
    %endif
Karsten Hopp 6833e0
        --dir %{buildroot}/%{_datadir}/applications \
cvsdist e6a956
        %{SOURCE3}
Karsten Hopp 0aa3da
        # --add-category "Development;TextEditor;X-Red-Hat-Base" D\
cvsdist 2c14b3
  %else
Karsten Hopp 0170fc
    mkdir -p ./%{_sysconfdir}/X11/applnk/Applications
Karsten Hopp 0170fc
    cp %{SOURCE3} ./%{_sysconfdir}/X11/applnk/Applications/gvim.desktop
cvsdist 2c14b3
  %endif
cvsdist 7a2237
  # ja_JP.ujis is obsolete, ja_JP.eucJP is recommended.
Karsten Hopp 30eb0f
  ( cd ./%{_datadir}/%{name}/%{vimdir}/lang; \
cvsdist 7a2237
    ln -sf menu_ja_jp.ujis.vim menu_ja_jp.eucjp.vim )
cvsdist f1dd31
)
cvsdist f1dd31
Karsten Hopp 6833e0
pushd %{buildroot}/%{_datadir}/%{name}/%{vimdir}/tutor
cvsdist b5c479
mkdir conv
cvsdist b5c479
   iconv -f CP1252 -t UTF8 tutor.ca > conv/tutor.ca
cvsdist b5c479
   iconv -f CP1252 -t UTF8 tutor.it > conv/tutor.it
Karsten Hopp d59842
   #iconv -f CP1253 -t UTF8 tutor.gr > conv/tutor.gr
cvsdist b5c479
   iconv -f CP1252 -t UTF8 tutor.fr > conv/tutor.fr
cvsdist b5c479
   iconv -f CP1252 -t UTF8 tutor.es > conv/tutor.es
cvsdist b5c479
   iconv -f CP1252 -t UTF8 tutor.de > conv/tutor.de
cvsdist b5c479
   #iconv -f CP737 -t UTF8 tutor.gr.cp737 > conv/tutor.gr.cp737
cvsdist b5c479
   #iconv -f EUC-JP -t UTF8 tutor.ja.euc > conv/tutor.ja.euc
cvsdist b5c479
   #iconv -f SJIS -t UTF8 tutor.ja.sjis > conv/tutor.ja.sjis
cvsdist b5c479
   iconv -f UTF8 -t UTF8 tutor.ja.utf-8 > conv/tutor.ja.utf-8
cvsdist b5c479
   iconv -f UTF8 -t UTF8 tutor.ko.utf-8 > conv/tutor.ko.utf-8
cvsdist b5c479
   iconv -f CP1252 -t UTF8 tutor.no > conv/tutor.no
cvsdist 85045d
   iconv -f ISO-8859-2 -t UTF8 tutor.pl > conv/tutor.pl
cvsdist 85045d
   iconv -f ISO-8859-2 -t UTF8 tutor.sk > conv/tutor.sk
Karsten Hopp 7ec3ea
   iconv -f KOI8R -t UTF8 tutor.ru > conv/tutor.ru
cvsdist b5c479
   iconv -f CP1252 -t UTF8 tutor.sv > conv/tutor.sv
Karsten Hopp d59842
   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 b5c479
   rm -f tutor.ca tutor.de tutor.es tutor.fr tutor.gr tutor.it tutor.ja.utf-8 tutor.ko.utf-8 tutor.no tutor.pl tutor.sk tutor.ru tutor.sv
cvsdist b5c479
mv -f conv/* .
cvsdist b5c479
rmdir conv
cvsdist b5c479
popd
cvsdist b5c479
cvsdist f1dd31
# Dependency cleanups
Karsten Hopp 6833e0
chmod 644 %{buildroot}/%{_datadir}/%{name}/%{vimdir}/doc/vim2html.pl \
Karsten Hopp 6833e0
 %{buildroot}/%{_datadir}/%{name}/%{vimdir}/tools/*.pl \
Karsten Hopp 6833e0
 %{buildroot}/%{_datadir}/%{name}/%{vimdir}/tools/vim132
cvsdist f1dd31
chmod 644 ../runtime/doc/vim2html.pl
cvsdist f1dd31
Karsten Hopp 6833e0
mkdir -p %{buildroot}/%{_sysconfdir}/profile.d
Karsten Hopp 6833e0
cat >%{buildroot}/%{_sysconfdir}/profile.d/vim.sh <
cvsdist 2cc57f
if [ -n "\$BASH_VERSION" -o -n "\$KSH_VERSION" -o -n "\$ZSH_VERSION" ]; then
Karsten Hopp d5e5f0
  [ -x %{_bindir}/id ] || return
Karsten Hopp d5e5f0
  ID=\`/usr/bin/id -u\`
Karsten Hopp d5e5f0
  [ -n "\$ID" -a "\$ID" -le 200 ] && return
Karsten Hopp 499cbf
  # for bash and zsh, only if no alias is already set
cvsdist 2c14b3
  alias vi >/dev/null 2>&1 || alias vi=vim
cvsdist 7a2237
fi
cvsdist 1b13d4
EOF
Karsten Hopp 6833e0
cat >%{buildroot}/%{_sysconfdir}/profile.d/vim.csh <
Karsten Hopp 92c345
if ( -x /usr/bin/id ) then
Karsten Hopp d5e5f0
    if ( "\`/usr/bin/id -u\`" > 200 ) then
Karsten Hopp 92c345
        alias vi vim
Karsten Hopp 92c345
    endif
Karsten Hopp 92c345
endif
cvsdist 1b13d4
EOF
Karsten Hopp 6833e0
chmod 0644 %{buildroot}/%{_sysconfdir}/profile.d/*
Karsten Hopp 6833e0
install -p -m644 %{SOURCE4} %{buildroot}/%{_sysconfdir}/vimrc
Karsten Hopp 6833e0
install -p -m644 %{SOURCE4} %{buildroot}/%{_sysconfdir}/virc
Karsten Hopp 6833e0
(cd %{buildroot}/%{_datadir}/%{name}/%{vimdir}/doc;
Karsten Hopp 3785aa
 gzip -9 *.txt
Karsten Hopp d30494
 gzip -d help.txt.gz version7.txt.gz sponsor.txt.gz
Karsten Hopp d30494
 cp %{SOURCE12} .
Karsten Hopp d30494
 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
Karsten Hopp d30494
cat >> tags << EOF
Karsten Hopp d30494
vi_help.txt	vi_help.txt	/*vi_help.txt*
Karsten Hopp d30494
vi-author.txt	vi_help.txt	/*vi-author*
Karsten Hopp d30494
vi-Bram.txt	vi_help.txt	/*vi-Bram*
Karsten Hopp d30494
vi-Moolenaar.txt	vi_help.txt	/*vi-Moolenaar*
Karsten Hopp d30494
vi-credits.txt	vi_help.txt	/*vi-credits*
Karsten Hopp d30494
EOF
Karsten Hopp 0aa3da
LANG=C sort tags > tags.tmp; mv tags.tmp tags
Karsten Hopp 3785aa
 )
Karsten Hopp 6cabe3
(cd ../runtime; rm -rf doc; ln -svf ../../vim/%{vimdir}/doc docs;) 
Karsten Hopp 6833e0
rm -f %{buildroot}/%{_datadir}/vim/%{vimdir}/macros/maze/maze*.c
Karsten Hopp 6833e0
rm -rf %{buildroot}/%{_datadir}/vim/%{vimdir}/tools
Karsten Hopp 6833e0
rm -rf %{buildroot}/%{_datadir}/vim/%{vimdir}/doc/vim2html.pl
Karsten Hopp 6833e0
rm -f %{buildroot}/%{_datadir}/vim/%{vimdir}/tutor/tutor.gr.utf-8~
Karsten Hopp 6833e0
( cd %{buildroot}/%{_mandir}
Karsten Hopp 0170fc
  for i in `find ??/ -type f`; do
Karsten Hopp 0170fc
    bi=`basename $i`
Karsten Hopp 6833e0
    iconv -f latin1 -t UTF8 $i > %{buildroot}/$bi
Karsten Hopp 6833e0
    mv -f %{buildroot}/$bi $i
Karsten Hopp 0170fc
  done
Karsten Hopp 0170fc
)
cvsdist 1b13d4
Karsten Hopp ea4650
# Remove not UTF-8 manpages
Karsten Hopp ea4650
for i in pl.ISO8859-2 it.ISO8859-1 ru.KOI8-R fr.ISO8859-1; do
Karsten Hopp 6833e0
  rm -rf %{buildroot}/%{_mandir}/$i
Karsten Hopp ea4650
done
Karsten Hopp ea4650
Karsten Hopp ea4650
# use common man1/ru directory
Karsten Hopp 6833e0
mv %{buildroot}/%{_mandir}/ru.UTF-8 %{buildroot}/%{_mandir}/ru
Karsten Hopp ea4650
Karsten Hopp ea4650
# Remove duplicate man pages
Karsten Hopp ea4650
for i in fr.UTF-8 it.UTF-8 pl.UTF-8; do
Karsten Hopp 6833e0
  rm -rf %{buildroot}/%{_mandir}/$i
Karsten Hopp ea4650
done
Karsten Hopp ea4650
Karsten Hopp 69d638
for i in rvim.1 gvim.1 gex.1 gview.1 vimx.1; do 
Karsten Hopp 6833e0
  echo ".so man1/vim.1" > %{buildroot}/%{_mandir}/man1/$i
Karsten Hopp ea4650
done
Karsten Hopp 69d638
echo ".so man1/vimdiff.1" > %{buildroot}/%{_mandir}/man1/gvimdiff.1
Karsten Hopp 69d638
echo ".so man1/vimtutor.1" > %{buildroot}/%{_mandir}/man1/gvimtutor.1
Karsten Hopp 6833e0
mkdir -p %{buildroot}/%{_mandir}/man5
Karsten Hopp 6833e0
for i in virc.5 vimrc.5; do 
Karsten Hopp 6833e0
  echo ".so man1/vim.1" > %{buildroot}/%{_mandir}/man5/$i
Karsten Hopp 6833e0
done
Karsten Hopp 6833e0
touch %{buildroot}/%{_datadir}/%{name}/vimfiles/doc/tags
Karsten Hopp ea4650
Christopher Aillon 0b8934
%post X11
Christopher Aillon 0b8934
touch --no-create %{_datadir}/icons/hicolor
Karsten Hopp 0170fc
if [ -x /%{_bindir}/gtk-update-icon-cache ]; then
Karsten Hopp 13dc82
  gtk-update-icon-cache --ignore-theme-index -q %{_datadir}/icons/hicolor
Christopher Aillon 0b8934
fi
Karsten Hopp 0170fc
update-desktop-database &> /dev/null ||:
Christopher Aillon 0b8934
Christopher Aillon 0b8934
%postun X11
Christopher Aillon 0b8934
touch --no-create %{_datadir}/icons/hicolor
Karsten Hopp 0170fc
if [ -x /%{_bindir}/gtk-update-icon-cache ]; then
Karsten Hopp 13dc82
  gtk-update-icon-cache --ignore-theme-index -q %{_datadir}/icons/hicolor
Christopher Aillon 0b8934
fi
Karsten Hopp 0170fc
update-desktop-database &> /dev/null ||:
Christopher Aillon 0b8934
cvsdist f1dd31
%clean
Karsten Hopp 6833e0
rm -rf %{buildroot}
cvsdist f1dd31
cvsdist f1dd31
%files common
cvsdist f1dd31
%defattr(-,root,root)
Karsten Hopp 5820b6
%config(noreplace) %{_sysconfdir}/vimrc
Karsten Hopp a02e7b
%doc README* LICENSE 
cvsdist 2c14b3
%doc runtime/docs
Karsten Hopp 3ca42e
%doc Changelog.rpm
Karsten Hopp 30eb0f
%dir %{_datadir}/%{name}
Karsten Hopp 8889ac
%{_datadir}/%{name}/vimfiles/template.spec
Ville Skyttä c38290
%dir %{_datadir}/%{name}/%{vimdir}
Karsten Hopp 30eb0f
%{_datadir}/%{name}/%{vimdir}/autoload
Karsten Hopp 30eb0f
%{_datadir}/%{name}/%{vimdir}/colors
Karsten Hopp 30eb0f
%{_datadir}/%{name}/%{vimdir}/compiler
Karsten Hopp 30eb0f
%{_datadir}/%{name}/%{vimdir}/doc
Karsten Hopp 30eb0f
%{_datadir}/%{name}/%{vimdir}/*.vim
Karsten Hopp 30eb0f
%{_datadir}/%{name}/%{vimdir}/ftplugin
Karsten Hopp 30eb0f
%{_datadir}/%{name}/%{vimdir}/indent
Karsten Hopp 30eb0f
%{_datadir}/%{name}/%{vimdir}/keymap
Karsten Hopp 30eb0f
%{_datadir}/%{name}/%{vimdir}/lang/*.vim
Karsten Hopp 30eb0f
%{_datadir}/%{name}/%{vimdir}/lang/*.txt
Karsten Hopp 30eb0f
%dir %{_datadir}/%{name}/%{vimdir}/lang
Karsten Hopp 30eb0f
%{_datadir}/%{name}/%{vimdir}/macros
Karsten Hopp 30eb0f
%{_datadir}/%{name}/%{vimdir}/plugin
Karsten Hopp 30eb0f
%{_datadir}/%{name}/%{vimdir}/print
Karsten Hopp 30eb0f
%{_datadir}/%{name}/%{vimdir}/syntax
Karsten Hopp 30eb0f
%{_datadir}/%{name}/%{vimdir}/tutor
Jeremy Katz a0c2f1
%if ! %{withvimspell}
Karsten Hopp 30eb0f
%{_datadir}/%{name}/%{vimdir}/spell
Jeremy Katz a0c2f1
%endif
Karsten Hopp 30eb0f
%lang(af) %{_datadir}/%{name}/%{vimdir}/lang/af
Karsten Hopp 30eb0f
%lang(ca) %{_datadir}/%{name}/%{vimdir}/lang/ca
Karsten Hopp 30eb0f
%lang(cs) %{_datadir}/%{name}/%{vimdir}/lang/cs
Karsten Hopp bb2da1
%lang(cs.cp1250) %{_datadir}/%{name}/%{vimdir}/lang/cs.cp1250
Karsten Hopp 30eb0f
%lang(de) %{_datadir}/%{name}/%{vimdir}/lang/de
Karsten Hopp 30eb0f
%lang(en_GB) %{_datadir}/%{name}/%{vimdir}/lang/en_GB
Karsten Hopp d59842
%lang(eo) %{_datadir}/%{name}/%{vimdir}/lang/eo
Karsten Hopp 30eb0f
%lang(es) %{_datadir}/%{name}/%{vimdir}/lang/es
Karsten Hopp d59842
%lang(fi) %{_datadir}/%{name}/%{vimdir}/lang/fi
Karsten Hopp 30eb0f
%lang(fr) %{_datadir}/%{name}/%{vimdir}/lang/fr
Karsten Hopp 30eb0f
%lang(ga) %{_datadir}/%{name}/%{vimdir}/lang/ga
Karsten Hopp 30eb0f
%lang(it) %{_datadir}/%{name}/%{vimdir}/lang/it
Karsten Hopp 30eb0f
%lang(ja) %{_datadir}/%{name}/%{vimdir}/lang/ja
Karsten Hopp 80fa3a
%lang(ja.euc-jp) %{_datadir}/%{name}/%{vimdir}/lang/ja.euc-jp
Karsten Hopp bb2da1
%lang(ja.sjis) %{_datadir}/%{name}/%{vimdir}/lang/ja.sjis
Karsten Hopp 30eb0f
%lang(ko) %{_datadir}/%{name}/%{vimdir}/lang/ko
Karsten Hopp 5a0d8b
%lang(ko) %{_datadir}/%{name}/%{vimdir}/lang/ko.UTF-8
Karsten Hopp 5a0d8b
%lang(nb) %{_datadir}/%{name}/%{vimdir}/lang/nb
Karsten Hopp bb2da1
%lang(nl) %{_datadir}/%{name}/%{vimdir}/lang/nl
Karsten Hopp 30eb0f
%lang(no) %{_datadir}/%{name}/%{vimdir}/lang/no
Karsten Hopp 30eb0f
%lang(pl) %{_datadir}/%{name}/%{vimdir}/lang/pl
Karsten Hopp bb2da1
%lang(pl.UTF-8) %{_datadir}/%{name}/%{vimdir}/lang/pl.UTF-8
Karsten Hopp bb2da1
%lang(pl.cp1250) %{_datadir}/%{name}/%{vimdir}/lang/pl.cp1250
Karsten Hopp d59842
%lang(pt_BR) %{_datadir}/%{name}/%{vimdir}/lang/pt_BR
Karsten Hopp 30eb0f
%lang(ru) %{_datadir}/%{name}/%{vimdir}/lang/ru
Karsten Hopp bb2da1
%lang(ru.cp1251) %{_datadir}/%{name}/%{vimdir}/lang/ru.cp1251
Karsten Hopp 30eb0f
%lang(sk) %{_datadir}/%{name}/%{vimdir}/lang/sk
Karsten Hopp bb2da1
%lang(sk.cp1250) %{_datadir}/%{name}/%{vimdir}/lang/sk.cp1250
Karsten Hopp 30eb0f
%lang(sv) %{_datadir}/%{name}/%{vimdir}/lang/sv
Karsten Hopp 30eb0f
%lang(uk) %{_datadir}/%{name}/%{vimdir}/lang/uk
Karsten Hopp bb2da1
%lang(uk.cp1251) %{_datadir}/%{name}/%{vimdir}/lang/uk.cp1251
Karsten Hopp 30eb0f
%lang(vi) %{_datadir}/%{name}/%{vimdir}/lang/vi
Karsten Hopp 30eb0f
%lang(zh_CN) %{_datadir}/%{name}/%{vimdir}/lang/zh_CN
Karsten Hopp bb2da1
%lang(zh_CN.cp936) %{_datadir}/%{name}/%{vimdir}/lang/zh_CN.cp936
Karsten Hopp 30eb0f
%lang(zh_TW) %{_datadir}/%{name}/%{vimdir}/lang/zh_TW
Karsten Hopp 30eb0f
%lang(zh_CN.UTF-8) %{_datadir}/%{name}/%{vimdir}/lang/zh_CN.UTF-8
Karsten Hopp 30eb0f
%lang(zh_TW.UTF-8) %{_datadir}/%{name}/%{vimdir}/lang/zh_TW.UTF-8
Karsten Hopp 0170fc
/%{_bindir}/xxd
cvsdist f1dd31
%{_mandir}/man1/ex.*
Karsten Hopp 6833e0
%{_mandir}/man1/gex.*
Karsten Hopp 6833e0
%{_mandir}/man1/gview.*
Karsten Hopp 6833e0
%{_mandir}/man1/gvim*
cvsdist f1dd31
%{_mandir}/man1/rvi.*
cvsdist f1dd31
%{_mandir}/man1/rview.*
Karsten Hopp 6833e0
%{_mandir}/man1/rvim.*
Karsten Hopp 6833e0
%{_mandir}/man1/vi.*
Karsten Hopp 6833e0
%{_mandir}/man1/view.*
Karsten Hopp 6833e0
%{_mandir}/man1/vim.*
Karsten Hopp 6833e0
%{_mandir}/man1/vimdiff.*
Karsten Hopp 6833e0
%{_mandir}/man1/vimtutor.*
Karsten Hopp 6833e0
%{_mandir}/man1/vimx.*
cvsdist f1dd31
%{_mandir}/man1/xxd.*
Karsten Hopp 6833e0
%{_mandir}/man5/vimrc.*
Karsten Hopp ea4650
%lang(fr) %{_mandir}/fr/man1/*
Karsten Hopp ea4650
%lang(it) %{_mandir}/it/man1/*
Karsten Hopp 80fa3a
%lang(ja) %{_mandir}/ja/man1/*
Karsten Hopp ea4650
%lang(pl) %{_mandir}/pl/man1/*
Karsten Hopp ea4650
%lang(ru) %{_mandir}/ru/man1/*
cvsdist f1dd31
Jeremy Katz a0c2f1
%if %{withvimspell}
Karsten Hopp d427c0
%files spell
Karsten Hopp 0170fc
%defattr(-,root,root)
Karsten Hopp 30eb0f
%dir %{_datadir}/%{name}/%{vimdir}/spell
Karsten Hopp 30eb0f
%{_datadir}/%{name}/vim70/spell/cleanadd.vim
Karsten Hopp 30eb0f
%lang(af) %{_datadir}/%{name}/%{vimdir}/spell/af.*
Karsten Hopp 30eb0f
%lang(am) %{_datadir}/%{name}/%{vimdir}/spell/am.*
Karsten Hopp 30eb0f
%lang(bg) %{_datadir}/%{name}/%{vimdir}/spell/bg.*
Karsten Hopp 30eb0f
%lang(ca) %{_datadir}/%{name}/%{vimdir}/spell/ca.*
Karsten Hopp 30eb0f
%lang(cs) %{_datadir}/%{name}/%{vimdir}/spell/cs.*
Karsten Hopp 30eb0f
%lang(cy) %{_datadir}/%{name}/%{vimdir}/spell/cy.*
Karsten Hopp 30eb0f
%lang(da) %{_datadir}/%{name}/%{vimdir}/spell/da.*
Karsten Hopp 30eb0f
%lang(de) %{_datadir}/%{name}/%{vimdir}/spell/de.*
Karsten Hopp 30eb0f
%lang(el) %{_datadir}/%{name}/%{vimdir}/spell/el.*
Karsten Hopp 30eb0f
%lang(en) %{_datadir}/%{name}/%{vimdir}/spell/en.*
Karsten Hopp 30eb0f
%lang(eo) %{_datadir}/%{name}/%{vimdir}/spell/eo.*
Karsten Hopp 30eb0f
%lang(es) %{_datadir}/%{name}/%{vimdir}/spell/es.*
Karsten Hopp 30eb0f
%lang(fo) %{_datadir}/%{name}/%{vimdir}/spell/fo.*
Karsten Hopp 30eb0f
%lang(fr) %{_datadir}/%{name}/%{vimdir}/spell/fr.*
Karsten Hopp 30eb0f
%lang(ga) %{_datadir}/%{name}/%{vimdir}/spell/ga.*
Karsten Hopp 30eb0f
%lang(gd) %{_datadir}/%{name}/%{vimdir}/spell/gd.*
Karsten Hopp 30eb0f
%lang(gl) %{_datadir}/%{name}/%{vimdir}/spell/gl.*
Karsten Hopp 30eb0f
%lang(he) %{_datadir}/%{name}/%{vimdir}/spell/he.*
Karsten Hopp 30eb0f
%lang(hr) %{_datadir}/%{name}/%{vimdir}/spell/hr.*
Karsten Hopp 30eb0f
%lang(hu) %{_datadir}/%{name}/%{vimdir}/spell/hu.*
Karsten Hopp 30eb0f
%lang(id) %{_datadir}/%{name}/%{vimdir}/spell/id.*
Karsten Hopp 30eb0f
%lang(it) %{_datadir}/%{name}/%{vimdir}/spell/it.*
Karsten Hopp 30eb0f
%lang(ku) %{_datadir}/%{name}/%{vimdir}/spell/ku.*
Karsten Hopp 30eb0f
%lang(la) %{_datadir}/%{name}/%{vimdir}/spell/la.*
Karsten Hopp 30eb0f
%lang(lt) %{_datadir}/%{name}/%{vimdir}/spell/lt.*
Karsten Hopp 30eb0f
%lang(lv) %{_datadir}/%{name}/%{vimdir}/spell/lv.*
Karsten Hopp 30eb0f
%lang(mg) %{_datadir}/%{name}/%{vimdir}/spell/mg.*
Karsten Hopp 30eb0f
%lang(mi) %{_datadir}/%{name}/%{vimdir}/spell/mi.*
Karsten Hopp 30eb0f
%lang(ms) %{_datadir}/%{name}/%{vimdir}/spell/ms.*
Karsten Hopp 30eb0f
%lang(nb) %{_datadir}/%{name}/%{vimdir}/spell/nb.*
Karsten Hopp 30eb0f
%lang(nl) %{_datadir}/%{name}/%{vimdir}/spell/nl.*
Karsten Hopp 30eb0f
%lang(nn) %{_datadir}/%{name}/%{vimdir}/spell/nn.*
Karsten Hopp 30eb0f
%lang(ny) %{_datadir}/%{name}/%{vimdir}/spell/ny.*
Karsten Hopp 30eb0f
%lang(pl) %{_datadir}/%{name}/%{vimdir}/spell/pl.*
Karsten Hopp 30eb0f
%lang(pt) %{_datadir}/%{name}/%{vimdir}/spell/pt.*
Karsten Hopp 30eb0f
%lang(ro) %{_datadir}/%{name}/%{vimdir}/spell/ro.*
Karsten Hopp 30eb0f
%lang(ru) %{_datadir}/%{name}/%{vimdir}/spell/ru.*
Karsten Hopp 30eb0f
%lang(rw) %{_datadir}/%{name}/%{vimdir}/spell/rw.*
Karsten Hopp 30eb0f
%lang(sk) %{_datadir}/%{name}/%{vimdir}/spell/sk.*
Karsten Hopp 30eb0f
%lang(sl) %{_datadir}/%{name}/%{vimdir}/spell/sl.*
Karsten Hopp 30eb0f
%lang(sv) %{_datadir}/%{name}/%{vimdir}/spell/sv.*
Karsten Hopp 30eb0f
%lang(sw) %{_datadir}/%{name}/%{vimdir}/spell/sw.*
Karsten Hopp 30eb0f
%lang(tet) %{_datadir}/%{name}/%{vimdir}/spell/tet.*
Karsten Hopp 30eb0f
%lang(th) %{_datadir}/%{name}/%{vimdir}/spell/th.*
Karsten Hopp 30eb0f
%lang(tl) %{_datadir}/%{name}/%{vimdir}/spell/tl.*
Karsten Hopp 30eb0f
%lang(tn) %{_datadir}/%{name}/%{vimdir}/spell/tn.*
Karsten Hopp 30eb0f
%lang(uk) %{_datadir}/%{name}/%{vimdir}/spell/uk.*
Karsten Hopp 30eb0f
%lang(yi) %{_datadir}/%{name}/%{vimdir}/spell/yi.*
Karsten Hopp 30eb0f
%lang(yi-tr) %{_datadir}/%{name}/%{vimdir}/spell/yi-tr.*
Karsten Hopp 30eb0f
%lang(zu) %{_datadir}/%{name}/%{vimdir}/spell/zu.*
Jeremy Katz a0c2f1
%endif
Karsten Hopp d427c0
cvsdist f1dd31
%files minimal
cvsdist f1dd31
%defattr(-,root,root)
Karsten Hopp 3785aa
%config(noreplace) %{_sysconfdir}/virc
Harald Hoyer 346844
%{_bindir}/ex
Harald Hoyer 346844
%{_bindir}/vi
Harald Hoyer 346844
%{_bindir}/view
Harald Hoyer 346844
%{_bindir}/rvi
Harald Hoyer 346844
%{_bindir}/rview
Karsten Hopp 6833e0
%{_mandir}/man1/vim.*
Karsten Hopp 6833e0
%{_mandir}/man1/vi.*
Karsten Hopp 6833e0
%{_mandir}/man1/ex.*
Karsten Hopp 6833e0
%{_mandir}/man1/rvi.*
Karsten Hopp 6833e0
%{_mandir}/man1/rview.*
Karsten Hopp 6833e0
%{_mandir}/man1/view.*
Karsten Hopp 6833e0
%{_mandir}/man5/virc.*
cvsdist f1dd31
cvsdist f1dd31
%files enhanced
cvsdist f1dd31
%defattr(-,root,root)
Karsten Hopp 0170fc
%{_bindir}/vim
Karsten Hopp 0170fc
%{_bindir}/rvim
Karsten Hopp 0170fc
%{_bindir}/vimdiff
Karsten Hopp 0170fc
%{_bindir}/vimtutor
Karsten Hopp 5a04c1
%config(noreplace) %{_sysconfdir}/profile.d/vim.*
cvsdist f1dd31
Karsten Hopp ea8207
%files filesystem
Karsten Hopp ea8207
%defattr(-,root,root)
Karsten Hopp ea8207
%dir %{_datadir}/%{name}/vimfiles
Karsten Hopp ea8207
%dir %{_datadir}/%{name}/vimfiles/after
Karsten Hopp ea8207
%dir %{_datadir}/%{name}/vimfiles/after/*
Karsten Hopp ea8207
%dir %{_datadir}/%{name}/vimfiles/autoload
Karsten Hopp ea8207
%dir %{_datadir}/%{name}/vimfiles/colors
Karsten Hopp ea8207
%dir %{_datadir}/%{name}/vimfiles/compiler
Karsten Hopp ea8207
%dir %{_datadir}/%{name}/vimfiles/doc
Karsten Hopp c8d55a
%ghost %{_datadir}/%{name}/vimfiles/doc/tags
Karsten Hopp ea8207
%dir %{_datadir}/%{name}/vimfiles/ftdetect
Karsten Hopp ea8207
%dir %{_datadir}/%{name}/vimfiles/ftplugin
Karsten Hopp ea8207
%dir %{_datadir}/%{name}/vimfiles/indent
Karsten Hopp ea8207
%dir %{_datadir}/%{name}/vimfiles/keymap
Karsten Hopp ea8207
%dir %{_datadir}/%{name}/vimfiles/lang
Karsten Hopp ea8207
%dir %{_datadir}/%{name}/vimfiles/plugin
Karsten Hopp ea8207
%dir %{_datadir}/%{name}/vimfiles/print
Karsten Hopp ea8207
%dir %{_datadir}/%{name}/vimfiles/spell
Karsten Hopp ea8207
%dir %{_datadir}/%{name}/vimfiles/syntax
Karsten Hopp ea8207
%dir %{_datadir}/%{name}/vimfiles/tutor
Karsten Hopp ea8207
cvsdist f1dd31
%files X11
cvsdist f1dd31
%defattr(-,root,root)
cvsdist e6a956
%if "%{desktop_file}" == "1"
Karsten Hopp 0170fc
/%{_datadir}/applications/*
cvsdist 2c14b3
%else
Karsten Hopp 0170fc
/%{_sysconfdir}/X11/applnk/*/gvim.desktop
cvsdist 2c14b3
%endif
Karsten Hopp 024396
%{_bindir}/gvimtutor
Karsten Hopp 0170fc
%{_bindir}/gvim
Karsten Hopp 0170fc
%{_bindir}/gvimdiff
Karsten Hopp 0170fc
%{_bindir}/gview
Karsten Hopp 0170fc
%{_bindir}/gex
Karsten Hopp 0170fc
%{_bindir}/vimx
Karsten Hopp 0170fc
%{_bindir}/evim
cvsdist 7a2237
%{_mandir}/man1/evim.*
cvsdist 0c2235
%{_datadir}/icons/hicolor/*/apps/*
cvsdist f1dd31
cvsdist f1dd31
%changelog
Karsten Hopp d5e5f0
* Wed Sep 11 2013 Karsten Hopp <karsten@redhat.com> 7.4.027-2
Karsten Hopp d5e5f0
- update vim icons (#1004788)
Karsten Hopp d5e5f0
- check if 'id -u' returns empty string (vim.sh)
Karsten Hopp d5e5f0
Karsten Hopp b7f4bf
* Wed Sep 11 2013 Karsten Hopp <karsten@redhat.com> 7.4.027-1
Karsten Hopp b7f4bf
- patchlevel 027
Karsten Hopp b7f4bf
Karsten Hopp 583e34
* Wed Sep 04 2013 Karsten Hopp <karsten@redhat.com> 7.4.016-1
Karsten Hopp 583e34
- patchlevel 016
Karsten Hopp 583e34
Karsten Hopp 5f4121
* Wed Aug 28 2013 Karsten Hopp <karsten@redhat.com> 7.4.009-1
Karsten Hopp 5f4121
- patchlevel 009
Karsten Hopp fb7e11
  mkdir("foo/bar/", "p") gives an error message
Karsten Hopp fb7e11
  creating a preview window on startup messes up the screen
Karsten Hopp fb7e11
  new regexp engine can't be interrupted
Karsten Hopp fb7e11
  too easy to write a file was not decrypted (yet)
Karsten Hopp 5f4121
Karsten Hopp 25175f
* Wed Aug 21 2013 Karsten Hopp <karsten@redhat.com> 7.4.5-1
Karsten Hopp 25175f
- patchlevel 5
Karsten Hopp 25175f
- when closing a window fails ":bwipe" may hang
Karsten Hopp 25175f
- "vaB" while 'virtualedit' is set selects the wrong area
Karsten Hopp 25175f
Karsten Hopp c77095
* Wed Aug 21 2013 Karsten Hopp <karsten@redhat.com> 7.4.3-1
Karsten Hopp c77095
- patchlevel 3, memory access error in Ruby syntax highlighting
Karsten Hopp c77095
Karsten Hopp af9378
* Wed Aug 21 2013 Karsten Hopp <karsten@redhat.com> 7.4.2-1
Karsten Hopp af9378
- patchlevel 2, pattern with two alternative look-behind matches doesn't match
Karsten Hopp af9378
Karsten Hopp 5629fc
* Wed Aug 21 2013 Karsten Hopp <karsten@redhat.com> 7.4.1-1
Karsten Hopp 5629fc
- patchlevel 1, 'ic' doesn't work for patterns such as [a-z]
Karsten Hopp 5629fc
Karsten Hopp 80fa3a
* Mon Aug 12 2013 Karsten Hopp <karsten@redhat.com> 7.4.0-1
Karsten Hopp 80fa3a
- update to vim-7.4
Karsten Hopp 80fa3a
4351ab
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:7.3.1314-3
4351ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4351ab
Karsten Hopp 69d638
* Fri Jul 26 2013 Karsten Hopp <karsten@redhat.com> 7.3.1314-2
Karsten Hopp 69d638
- document gex and vimx in man page
Karsten Hopp 69d638
- fix gvimdiff and gvimtutor man page redirects
Karsten Hopp 69d638
Petr Písař 67ebe0
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 2:7.3.1314-2
Petr Písař 67ebe0
- Perl 5.18 rebuild
Petr Písař 67ebe0
Karsten Hopp a9a1b4
* Tue Jul 09 2013 Karsten Hopp <karsten@redhat.com> 7.3.1314-1
Karsten Hopp a9a1b4
- patchlevel 1314
Karsten Hopp a9a1b4
Karsten Hopp 05d887
* Thu Jul 04 2013 Karsten Hopp <karsten@redhat.com> 7.3.1293-1
Karsten Hopp 05d887
- patchlevel 1293
Karsten Hopp 05d887
Karsten Hopp a24f9a
* Fri Jun 14 2013 Karsten Hopp <karsten@redhat.com> 7.3.1189-1
Karsten Hopp a24f9a
- patchlevel 1189
Karsten Hopp a24f9a
Karsten Hopp d3b012
* Tue Jun 04 2013 Karsten Hopp <karsten@redhat.com> 7.3.1109-1
Karsten Hopp d3b012
- patchlevel 1109
Karsten Hopp d3b012
Karsten Hopp 4874ab
* Wed May 22 2013 Karsten Hopp <karsten@redhat.com> 7.3.1004-1
Karsten Hopp 4874ab
- patchlevel 1004
Karsten Hopp 4874ab
Karsten Hopp ae61a4
* Wed May 22 2013 Karsten Hopp <karsten@redhat.com> 7.3.1000-1
Karsten Hopp ae61a4
- patchlevel 1000 !
Karsten Hopp ae61a4
Karsten Hopp 510678
* Tue May 21 2013 Karsten Hopp <karsten@redhat.com> 7.3.987-1
Karsten Hopp 510678
- patchlevel 987
Karsten Hopp 510678
Karsten Hopp 6833e0
* Tue May 21 2013 Karsten Hopp <karsten@redhat.com> 7.3.944-2
Karsten Hopp 6833e0
- consistent use of macros in spec file
Karsten Hopp 6833e0
- add some links to man pages
Karsten Hopp 6833e0
Karsten Hopp 0a58ac
* Tue May 14 2013 Karsten Hopp <karsten@redhat.com> 7.3.944-1
Karsten Hopp 0a58ac
- patchlevel 944
Karsten Hopp 0a58ac
Karsten Hopp 87aef7
* Mon May 13 2013 Karsten Hopp <karsten@redhat.com> 7.3.943-2
Karsten Hopp 87aef7
- add BR perl(ExtUtils::ParseXS)
Karsten Hopp 87aef7
Karsten Hopp 47a0a0
* Mon May 13 2013 Karsten Hopp <karsten@redhat.com> 7.3.943-1
Karsten Hopp 47a0a0
- patchlevel 943
Karsten Hopp 47a0a0
Karsten Hopp 94b639
* Wed May 08 2013 Karsten Hopp <karsten@redhat.com> 7.3.931-1
Karsten Hopp 94b639
- patchlevel 931
Karsten Hopp 94b639
Karsten Hopp 197132
* Wed May 08 2013 Karsten Hopp <karsten@redhat.com> 7.3.903-1
Karsten Hopp 197132
- fix ruby version check
Karsten Hopp 197132
Karsten Hopp 64f562
* Fri Apr 19 2013 Karsten Hopp <karsten@redhat.com> 7.3.903-1
Karsten Hopp 64f562
- drop crv patch
Karsten Hopp 64f562
- update 7.3.838 patch, it was broken upstream
Karsten Hopp 64f562
Karsten Hopp 410624
* Mon Apr 15 2013 Karsten Hopp <karsten@redhat.com> 7.3.903-1
Karsten Hopp 410624
- patchlevel 903
Karsten Hopp 410624
Karsten Hopp bcafa0
* Mon Feb 18 2013 Karsten Hopp <karsten@redhat.com> 7.3.822-1
Karsten Hopp bcafa0
- patchlevel 822
Karsten Hopp bcafa0
Toshio Kuratomi 2a1fde
* Fri Feb 15 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 7.3.797-2
Toshio Kuratomi 2a1fde
- Only use --vendor for desktop-file-install on F18 or less
Toshio Kuratomi 2a1fde
Karsten Hopp 93b11c
* Thu Jan 31 2013 Karsten Hopp <karsten@redhat.com> 7.3.797-1
Karsten Hopp 93b11c
- patchlevel 797
Karsten Hopp 93b11c
Karsten Hopp 86a5db
* Mon Jan 28 2013 Karsten Hopp <karsten@redhat.com> 7.3.785-1
Karsten Hopp 86a5db
- patchlevel 785
Karsten Hopp 86a5db
Karsten Hopp f977c8
* Tue Nov 20 2012 Karsten Hopp <karsten@redhat.com> 7.3.715-1
Karsten Hopp f977c8
- patchlevel 715
Karsten Hopp b3a775
Karsten Hopp 722559
* Mon Nov 12 2012 Karsten Hopp <karsten@redhat.com> 7.3.712-1
Karsten Hopp 722559
- patchlevel 712
Karsten Hopp 722559
Karsten Hopp 92c345
* Mon Nov 12 2012 Karsten Hopp <karsten@redhat.com> 7.3.682-2
Karsten Hopp 92c345
- fix vim.csh syntax
Karsten Hopp 92c345
Karsten Hopp 32cfa5
* Tue Oct 23 2012 Karsten Hopp <karsten@redhat.com> 7.3.712-1
Karsten Hopp 32cfa5
- patchlevel 712
Karsten Hopp 32cfa5
Karsten Hopp 4f0789
* Mon Oct 15 2012 Karsten Hopp <karsten@redhat.com> 7.3.691-1
Karsten Hopp 4f0789
- patchlevel 691
Karsten Hopp 4f0789
Karsten Hopp acfd5f
* Fri Oct 05 2012 Karsten Hopp <karsten@redhat.com> 7.3.682-1
Karsten Hopp acfd5f
- patchlevel 682
Karsten Hopp 20a9c5
- use --enable-rubyinterp=dynamic and --enable-pythoninterp=dynamic
Karsten Hopp acfd5f
Karsten Hopp 52f4b2
* Mon Sep 03 2012 Karsten Hopp <karsten@redhat.com> 7.3.646-1
Karsten Hopp 52f4b2
- patchlevel 646
Karsten Hopp 52f4b2
Karsten Hopp c8d55a
* Tue Aug 28 2012 Karsten Hopp <karsten@redhat.com> 7.3.638-2
Karsten Hopp c8d55a
- fix some man page typos (#668894, #675480)
Karsten Hopp c8d55a
- own usr/share/vim/vimfiles/doc/tags (#845564)
Karsten Hopp c8d55a
- add path to csope database (#844843)
Karsten Hopp c8d55a
Karsten Hopp 230159
* Tue Aug 28 2012 Karsten Hopp <karsten@redhat.com> 7.3.638-1
Karsten Hopp 230159
- patchlevel 638
Karsten Hopp 230159
Karsten Hopp 6d3e55
# vim:nrformats-=octal