2006-12-15 17:15:12 +01:00
|
|
|
#
|
2011-03-02 11:27:58 +01:00
|
|
|
# spec file for package vim
|
2006-12-15 17:15:12 +01:00
|
|
|
#
|
2012-02-19 20:11:32 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-15 17:15:12 +01:00
|
|
|
#
|
2008-09-13 12:25:42 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-15 17:15:12 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-02-19 20:11:32 +01:00
|
|
|
|
2006-12-15 17:15:12 +01:00
|
|
|
Name: vim
|
2010-11-22 13:28:22 +01:00
|
|
|
Version: 7.3
|
2011-12-21 11:58:43 +01:00
|
|
|
Release: 0
|
2011-04-18 17:03:21 +02:00
|
|
|
BuildRequires: db-devel
|
|
|
|
%if 0%{?suse_version} > 1020
|
|
|
|
BuildRequires: fdupes
|
|
|
|
%endif
|
2011-12-21 11:58:43 +01:00
|
|
|
BuildRequires: autoconf
|
2011-04-18 17:03:21 +02:00
|
|
|
BuildRequires: gettext-devel
|
2011-04-18 17:05:18 +02:00
|
|
|
BuildRequires: gtk2-devel
|
2012-02-19 20:11:32 +01:00
|
|
|
%if 0%{?suse_version} > 1200
|
|
|
|
BuildRequires: pkgconfig(xt)
|
|
|
|
%endif
|
2011-04-18 17:03:21 +02:00
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: perl
|
2011-04-18 17:05:18 +02:00
|
|
|
BuildRequires: pkgconfig
|
2011-04-18 17:03:21 +02:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: ruby-devel
|
2012-02-28 14:16:48 +01:00
|
|
|
BuildRequires: systemd
|
2011-04-18 17:03:21 +02:00
|
|
|
BuildRequires: tcl-devel
|
|
|
|
BuildRequires: update-alternatives
|
|
|
|
BuildRequires: update-desktop-files
|
2007-03-29 01:04:15 +02:00
|
|
|
#
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-09-09 11:59:31 +02:00
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
BuildRequires: gpm-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: gpm
|
|
|
|
%endif
|
2007-03-29 01:04:15 +02:00
|
|
|
#
|
2010-11-22 13:28:22 +01:00
|
|
|
%define pkg_version 7.3
|
2012-02-28 14:16:48 +01:00
|
|
|
%define official_ptchlvl 456
|
2010-11-22 13:28:22 +01:00
|
|
|
%define VIM_SUBDIR vim73
|
2008-01-30 18:53:25 +01:00
|
|
|
%define site_runtimepath /usr/share/vim/site
|
2007-04-24 23:36:59 +02:00
|
|
|
#
|
2007-03-29 01:04:15 +02:00
|
|
|
%define make make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/current MAKE="make -e" %{?jobs:-j%jobs}
|
2007-04-24 23:36:59 +02:00
|
|
|
#
|
|
|
|
%define vim_prereq %{name}-base = %{version}
|
2008-01-30 18:53:25 +01:00
|
|
|
# Explicitly require versioned perl for libperl.so
|
2008-02-01 01:34:08 +01:00
|
|
|
%define perl_requires perl = %(rpm -q --qf '%{VERSION}' perl)
|
2007-03-29 01:04:15 +02:00
|
|
|
%if 0%{?with_splitted_gvim}
|
|
|
|
%define gvim_prereq g%{name}-base = %{version}
|
|
|
|
%else
|
|
|
|
%define gvim_prereq %{vim_prereq}
|
|
|
|
%endif
|
2011-04-18 17:03:21 +02:00
|
|
|
PreReq: %{vim_prereq}
|
2007-03-29 01:04:15 +02:00
|
|
|
#
|
2011-04-18 17:03:21 +02:00
|
|
|
PreReq: fileutils
|
|
|
|
PreReq: sh-utils
|
2007-03-29 01:04:15 +02:00
|
|
|
PreReq: update-alternatives
|
2007-04-24 23:36:59 +02:00
|
|
|
#
|
2008-02-01 01:34:08 +01:00
|
|
|
Provides: vi
|
2012-02-19 20:11:32 +01:00
|
|
|
Provides: vim_client
|
2007-04-24 23:36:59 +02:00
|
|
|
#
|
2007-03-29 01:04:15 +02:00
|
|
|
%if 0%{?suse_version} >= 1010
|
|
|
|
Recommends: vim-data = %{version}
|
|
|
|
%endif
|
2011-04-18 17:03:21 +02:00
|
|
|
Summary: Vi IMproved
|
2011-12-21 11:58:43 +01:00
|
|
|
License: Vim
|
|
|
|
Group: Productivity/Editors/Vi
|
2007-03-29 01:04:15 +02:00
|
|
|
#
|
2007-10-05 00:39:30 +02:00
|
|
|
Url: http://www.vim.org/
|
2007-03-29 01:04:15 +02:00
|
|
|
Source: ftp://ftp.vim.org/pub/vim/unix/vim-%{pkg_version}.tar.bz2
|
2006-12-15 17:15:12 +01:00
|
|
|
Source3: suse.vimrc
|
|
|
|
Source4: vimrc_example1
|
|
|
|
Source5: vimrc_example2
|
|
|
|
Source6: ANNOUNCEMENT.vim-%{version}
|
|
|
|
Source8: suse.gvimrc
|
|
|
|
Source10: README.Japanese-XIM
|
|
|
|
Source13: vitmp.c
|
|
|
|
Source14: vitmp.1
|
|
|
|
Source15: vim132
|
2007-04-24 23:36:59 +02:00
|
|
|
Source18: missing-vim-client
|
2007-07-05 19:05:52 +02:00
|
|
|
Source19: gvim.desktop
|
2009-02-20 23:53:18 +01:00
|
|
|
Source20: spec.skeleton
|
2010-11-04 22:36:11 +01:00
|
|
|
Source22: vim.conf
|
2011-01-10 16:38:12 +01:00
|
|
|
Source23: apparmor.vim
|
2010-11-22 13:28:22 +01:00
|
|
|
Source98: %{name}-7.3-patches.tar.bz2
|
|
|
|
Source99: %{name}-7.3-rpmlintrc
|
|
|
|
Patch3: %{name}-7.3-disable_lang_no.patch
|
|
|
|
Patch4: %{name}-7.3-gvimrc_fontset.patch
|
|
|
|
Patch5: %{name}-7.3-highlight_fstab.patch
|
|
|
|
Patch6: %{name}-7.3-sh_is_bash.patch
|
|
|
|
Patch7: %{name}-7.3-filetype_ftl.patch
|
|
|
|
Patch8: %{name}-7.3-help_tags.patch
|
|
|
|
Patch9: %{name}-7.3-use_awk.patch
|
|
|
|
Patch10: %{name}-7.3-name_vimrc.patch
|
|
|
|
Patch11: %{name}-7.3-mktemp_tutor.patch
|
|
|
|
Patch12: %{name}-7.3-ruby_ldflags_configure.patch
|
|
|
|
Patch14: %{name}-7.3-grub.patch
|
|
|
|
Patch15: %{name}-7.3-filetype_apparmor.patch
|
|
|
|
Patch18: %{name}-7.3-filetype_spec.patch
|
|
|
|
Patch19: %{name}-7.3-diff_check.patch
|
|
|
|
Patch21: %{name}-7.3-filetype_changes.patch
|
2011-03-02 11:27:58 +01:00
|
|
|
Patch22: %{name}-7.3-filetype_mine.patch
|
2009-02-26 12:46:59 +01:00
|
|
|
Patch100: vim-7.1.314-CVE-2009-0316-debian.patch
|
2011-11-06 09:57:45 +01:00
|
|
|
Patch101: vim73-no-static-libpython.patch
|
2006-12-15 17:15:12 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Vim (Vi IMproved) is an almost compatible version of the UNIX editor
|
|
|
|
vi. Almost every possible command can be performed using only ASCII
|
|
|
|
characters. Only the 'Q' command is missing (you do not need it). Many
|
|
|
|
new features have been added: multilevel undo, command line history,
|
|
|
|
file name completion, block operations, and editing of binary data.
|
|
|
|
|
|
|
|
Vi is available for the AMIGA, MS-DOS, Windows NT, and various versions
|
|
|
|
of UNIX.
|
|
|
|
|
2010-08-30 12:16:42 +02:00
|
|
|
For SUSE Linux, Vim is used as /usr/bin/vi.
|
2006-12-15 17:15:12 +01:00
|
|
|
|
2007-05-07 18:16:51 +02:00
|
|
|
Package vim contains the normal version of vim. To get the full runtime
|
|
|
|
environment install additionally vim-data.
|
2006-12-15 17:15:12 +01:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
%package data
|
2011-05-27 11:30:20 +02:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
Summary: Vi IMproved
|
2011-12-23 12:22:21 +01:00
|
|
|
Group: Productivity/Editors/Vi
|
2011-04-18 17:03:21 +02:00
|
|
|
PreReq: %{vim_prereq}
|
2010-02-11 13:42:04 +01:00
|
|
|
%if 0%{?suse_version} >= 1120
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2006-12-15 17:15:12 +01:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
%description data
|
|
|
|
Vim (Vi IMproved) is an almost compatible version of the UNIX editor
|
|
|
|
vi. Almost every possible command can be performed using only ASCII
|
|
|
|
characters. Only the 'Q' command is missing (you do not need it). Many
|
|
|
|
new features have been added: multilevel undo, command line history,
|
|
|
|
file name completion, block operations, and editing of binary data.
|
2006-12-15 17:15:12 +01:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
Vi is available for the AMIGA, MS-DOS, Windows NT, and various versions
|
|
|
|
of UNIX.
|
2006-12-15 17:15:12 +01:00
|
|
|
|
2010-08-30 12:16:42 +02:00
|
|
|
For SUSE Linux, Vim is used as /usr/bin/vi.
|
2007-03-29 01:04:15 +02:00
|
|
|
|
|
|
|
Package vim-data contains the runtime files.
|
2006-12-15 17:15:12 +01:00
|
|
|
|
2007-04-24 23:36:59 +02:00
|
|
|
%package base
|
2011-05-27 11:30:20 +02:00
|
|
|
|
2011-04-18 17:03:21 +02:00
|
|
|
Summary: Vi IMproved
|
2011-12-23 12:22:21 +01:00
|
|
|
Group: Productivity/Editors/Vi
|
2007-03-29 01:04:15 +02:00
|
|
|
PreReq: %{vim_prereq}
|
2007-04-25 02:13:08 +02:00
|
|
|
PreReq: update-alternatives
|
2007-03-29 01:04:15 +02:00
|
|
|
|
2007-04-24 23:36:59 +02:00
|
|
|
%description base
|
2007-03-29 01:04:15 +02:00
|
|
|
Vim (Vi IMproved) is an almost compatible version of the UNIX editor
|
|
|
|
vi. Almost every possible command can be performed using only ASCII
|
|
|
|
characters. Only the 'Q' command is missing (you do not need it). Many
|
|
|
|
new features have been added: multilevel undo, command line history,
|
|
|
|
file name completion, block operations, and editing of binary data.
|
|
|
|
|
|
|
|
Vi is available for the AMIGA, MS-DOS, Windows NT, and various versions
|
|
|
|
of UNIX.
|
|
|
|
|
2010-08-30 12:16:42 +02:00
|
|
|
For SUSE Linux, Vim is used as /usr/bin/vi.
|
2007-03-29 01:04:15 +02:00
|
|
|
|
2007-05-07 18:16:51 +02:00
|
|
|
Package vim-base contains the common files needed for all different vim
|
|
|
|
versions. You still need to select at least one of the vim,
|
|
|
|
vim-enhanced or gvim packages. For full runtime support you might also
|
|
|
|
want to install the vim-data package.
|
2007-03-29 01:04:15 +02:00
|
|
|
|
2006-12-15 17:15:12 +01:00
|
|
|
%package enhanced
|
2011-05-27 11:30:20 +02:00
|
|
|
|
2011-04-18 17:03:21 +02:00
|
|
|
Summary: A version of the VIM editor which includes recent enhancements
|
2011-12-23 12:22:21 +01:00
|
|
|
Group: Productivity/Editors/Vi
|
2007-03-29 01:04:15 +02:00
|
|
|
PreReq: %{vim_prereq}
|
2007-04-25 02:13:08 +02:00
|
|
|
PreReq: update-alternatives
|
2011-04-18 17:03:21 +02:00
|
|
|
Requires: %{perl_requires}
|
2008-02-01 01:34:08 +01:00
|
|
|
Provides: vi
|
2007-03-29 01:04:15 +02:00
|
|
|
Provides: vim_client
|
2006-12-15 17:15:12 +01:00
|
|
|
|
|
|
|
%description enhanced
|
|
|
|
The vim-enhanced package contains a version of VIM with extra, recently
|
|
|
|
introduced features like Ruby, Perl and TCL interpreters, but it has no
|
|
|
|
graphical user interface. Please use gvim instead, if you need a gui
|
|
|
|
too.
|
|
|
|
|
|
|
|
Install the vim-enhanced package if you'd like to use a version of the
|
|
|
|
VIM editor which includes recently added enhancements like interpreters
|
|
|
|
for the Python and Perl scripting languages. You'll also need to
|
|
|
|
install the base package 'vim', for online help, etc. If you need the
|
|
|
|
graphical features of vim, you might want to install package gvim too.
|
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
%if 0%{?with_splitted_gvim}
|
2008-01-30 18:53:25 +01:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
%package -n gvim-base
|
2011-05-27 11:30:20 +02:00
|
|
|
|
2011-04-18 17:03:21 +02:00
|
|
|
Summary: dummy package for a subpackage only build in the buildservice
|
2011-12-23 12:22:21 +01:00
|
|
|
Group: Productivity/Editors/Vi
|
2007-03-29 01:04:15 +02:00
|
|
|
PreReq: %{vim_prereq}
|
2007-04-25 02:13:08 +02:00
|
|
|
PreReq: update-alternatives
|
2007-03-29 01:04:15 +02:00
|
|
|
Requires: gvim_client
|
|
|
|
|
|
|
|
%description -n gvim-base
|
2007-04-03 21:51:24 +02:00
|
|
|
dummy package for a subpackage only build in the buildservice
|
2007-03-29 01:04:15 +02:00
|
|
|
|
|
|
|
%package -n gvim-enhanced
|
2011-05-27 11:30:20 +02:00
|
|
|
|
2011-04-18 17:03:21 +02:00
|
|
|
Summary: dummy package for a subpackage only build in the buildservice
|
2011-12-23 12:22:21 +01:00
|
|
|
Group: Productivity/Editors/Vi
|
2007-03-29 01:04:15 +02:00
|
|
|
PreReq: %{gvim_prereq}
|
2007-04-25 02:13:08 +02:00
|
|
|
PreReq: update-alternatives
|
2007-03-29 01:04:15 +02:00
|
|
|
Provides: gvim_client
|
2008-02-01 01:34:08 +01:00
|
|
|
Provides: vi
|
2012-02-28 14:16:48 +01:00
|
|
|
Provides: vim_client
|
2007-03-29 01:04:15 +02:00
|
|
|
|
|
|
|
%description -n gvim-enhanced
|
2007-04-03 21:51:24 +02:00
|
|
|
dummy package for a subpackage only build in the buildservice
|
2007-03-29 01:04:15 +02:00
|
|
|
|
|
|
|
%endif
|
2008-01-30 18:53:25 +01:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
%package -n gvim
|
2011-05-27 11:30:20 +02:00
|
|
|
|
2011-04-18 17:03:21 +02:00
|
|
|
Summary: A GUI for Vi
|
2011-12-23 12:22:21 +01:00
|
|
|
Group: Productivity/Editors/Vi
|
2007-03-29 01:04:15 +02:00
|
|
|
PreReq: %{gvim_prereq}
|
2007-04-25 02:13:08 +02:00
|
|
|
PreReq: update-alternatives
|
2011-04-18 17:03:21 +02:00
|
|
|
Requires: %{perl_requires}
|
2007-03-29 01:04:15 +02:00
|
|
|
Requires: gvim_client
|
2011-04-18 17:03:21 +02:00
|
|
|
Provides: gvim-base = %{version}
|
|
|
|
Provides: gvim-enhanced = %{version}
|
2007-03-29 01:04:15 +02:00
|
|
|
Provides: gvim_client
|
2008-02-01 01:34:08 +01:00
|
|
|
Provides: vi
|
2012-02-28 14:16:48 +01:00
|
|
|
Provides: vim_client
|
2007-03-29 01:04:15 +02:00
|
|
|
|
|
|
|
%description -n gvim
|
|
|
|
Copy and modify /usr/share/vim/current/gvimrc to ~/.gvimrc if needed.
|
|
|
|
|
|
|
|
Package gvim contains the largest set of features of vim, which is
|
|
|
|
graphical windows and language interpreter, like python, ruby, or perl.
|
|
|
|
You need package vim for the help and other documentation too. If you
|
|
|
|
want less features, you might want to install packages vim-enhanced or
|
|
|
|
vim instead.
|
|
|
|
|
2006-12-15 17:15:12 +01:00
|
|
|
%prep
|
2010-11-22 13:28:22 +01:00
|
|
|
%setup -q -n %{VIM_SUBDIR} -b 98
|
2009-02-20 23:53:18 +01:00
|
|
|
for p in ../vim-%{pkg_version}-patches/%{pkg_version}*; do
|
|
|
|
test -e $p || break
|
|
|
|
test ${p#*/%{pkg_version}.} -le %{official_ptchlvl} || exit 1
|
|
|
|
echo Patch $p
|
|
|
|
patch -s -p0 < $p
|
|
|
|
done
|
|
|
|
unset p
|
2010-11-22 13:28:22 +01:00
|
|
|
%patch3 -p1
|
2006-12-15 17:15:12 +01:00
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
|
|
|
%patch10 -p1
|
|
|
|
%patch11 -p1
|
|
|
|
%patch12 -p1
|
2010-11-22 13:28:22 +01:00
|
|
|
%patch14 -p1
|
2006-12-15 17:15:12 +01:00
|
|
|
%patch15 -p1
|
2011-04-18 17:03:21 +02:00
|
|
|
cp %{SOURCE23} runtime/syntax/apparmor.vim
|
2010-11-22 13:28:22 +01:00
|
|
|
%patch18 -p1
|
2007-08-31 16:04:23 +02:00
|
|
|
%patch19 -p1
|
2008-03-12 19:39:32 +01:00
|
|
|
%patch21 -p1
|
2011-03-02 11:27:58 +01:00
|
|
|
%patch22 -p1
|
2009-02-26 12:46:59 +01:00
|
|
|
%patch100 -p1
|
2011-11-06 09:57:45 +01:00
|
|
|
%patch101
|
2011-05-17 09:52:29 +02:00
|
|
|
cp %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE8} %{SOURCE10} .
|
2006-12-15 17:15:12 +01:00
|
|
|
|
|
|
|
%build
|
2007-03-29 01:04:15 +02:00
|
|
|
export CFLAGS="%{optflags} -Wall -pipe -fno-strict-aliasing"
|
2011-12-02 20:34:31 +01:00
|
|
|
export CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/-D_FORTIFY_SOURCE=1}
|
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
export COMMON_OPTIONS="\
|
|
|
|
--with-vim-name=vim \
|
|
|
|
--with-ex-name=ex \
|
|
|
|
--with-view-name=view \
|
|
|
|
--enable-cscope \
|
|
|
|
--enable-multibyte \
|
|
|
|
--enable-sniff \
|
|
|
|
--with-features=huge \
|
|
|
|
--with-compiledby='http://www.opensuse.org/' \
|
2011-11-23 08:06:49 +01:00
|
|
|
%if 0%{?suse_version} > 1210
|
|
|
|
--with-tlib=tinfo \
|
|
|
|
%else
|
2008-01-30 18:53:25 +01:00
|
|
|
--with-tlib=ncurses \
|
2011-11-23 08:06:49 +01:00
|
|
|
%endif
|
2008-01-30 18:53:25 +01:00
|
|
|
--with-global-runtime=%{site_runtimepath}"
|
2007-03-29 01:04:15 +02:00
|
|
|
export SCRIPT_OPTIONS="\
|
|
|
|
--enable-perlinterp \
|
|
|
|
--enable-pythoninterp \
|
|
|
|
--enable-rubyinterp \
|
|
|
|
--enable-tclinterp \
|
|
|
|
--with-tclsh=%{_bindir}/tclsh \
|
|
|
|
--with-python-config-dir=%{py_libdir}/config"
|
2011-12-09 14:34:00 +01:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
export GUI_OPTIONS="\
|
|
|
|
--enable-xim \
|
|
|
|
--enable-fontset \
|
2011-12-09 14:34:00 +01:00
|
|
|
--enable-gui=gtk2 \
|
|
|
|
--enable-gtk2-check"
|
2011-11-06 09:57:45 +01:00
|
|
|
|
|
|
|
pushd src
|
|
|
|
autoconf
|
|
|
|
popd
|
2007-03-29 01:04:15 +02:00
|
|
|
#
|
|
|
|
# build small default binary
|
|
|
|
%configure \
|
|
|
|
${COMMON_OPTIONS} --disable-gui --without-x --disable-gpm \
|
|
|
|
--disable-perlinterp --disable-pythoninterp \
|
|
|
|
--disable-rubyinterp --disable-tclinterp
|
2010-08-30 12:16:42 +02:00
|
|
|
sed -i -e 's|define HAVE_DATE_TIME 1|undef HAVE_DATE_TIME|' src/auto/config.h
|
2007-03-29 01:04:15 +02:00
|
|
|
%make
|
2011-04-18 17:03:21 +02:00
|
|
|
cp src/vim vim-normal
|
|
|
|
make distclean
|
2007-03-29 01:04:15 +02:00
|
|
|
#
|
|
|
|
# build enhanced binary
|
|
|
|
%configure ${COMMON_OPTIONS} ${SCRIPT_OPTIONS} --disable-gui
|
2010-08-30 12:16:42 +02:00
|
|
|
sed -i -e 's|define HAVE_DATE_TIME 1|undef HAVE_DATE_TIME|' src/auto/config.h
|
2007-03-29 01:04:15 +02:00
|
|
|
%make
|
2011-04-18 17:03:21 +02:00
|
|
|
cp src/vim vim-enhanced
|
|
|
|
make distclean
|
2007-03-29 01:04:15 +02:00
|
|
|
#
|
|
|
|
# build enhanced gvim binary
|
|
|
|
%configure ${COMMON_OPTIONS} ${SCRIPT_OPTIONS} ${GUI_OPTIONS}
|
2010-08-30 12:16:42 +02:00
|
|
|
sed -i -e 's|define HAVE_DATE_TIME 1|undef HAVE_DATE_TIME|' src/auto/config.h
|
2007-03-29 01:04:15 +02:00
|
|
|
%if 0%{?with_splitted_gvim}
|
|
|
|
%make
|
2011-04-18 17:03:21 +02:00
|
|
|
cp src/vim gvim-enhanced
|
|
|
|
make distclean
|
2007-03-29 01:04:15 +02:00
|
|
|
#
|
|
|
|
# build gvim binary
|
|
|
|
%configure ${COMMON_OPTIONS} ${GUI_OPTIONS}
|
2010-08-30 12:16:42 +02:00
|
|
|
sed -i -e 's|define HAVE_DATE_TIME 1|undef HAVE_DATE_TIME|' src/auto/config.h
|
2007-03-29 01:04:15 +02:00
|
|
|
%endif
|
|
|
|
%make
|
|
|
|
#
|
|
|
|
# build vitmp
|
2011-04-18 17:03:21 +02:00
|
|
|
gcc %{optflags} %{SOURCE13} -o vitmp
|
2006-12-15 17:15:12 +01:00
|
|
|
|
|
|
|
%install
|
2010-03-27 17:11:05 +01:00
|
|
|
# create icon directory to have the icon from the tarball installed
|
2011-04-18 17:03:21 +02:00
|
|
|
install -d -m 0755 %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
|
2007-03-29 01:04:15 +02:00
|
|
|
%makeinstall STRIP=:
|
2011-11-07 13:59:59 +01:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
# the last installed binary is gvim. preserve it and
|
|
|
|
# fix its symlinks. e* was added here as it doesnt make much sense in
|
|
|
|
# console
|
2011-04-18 17:03:21 +02:00
|
|
|
mv -v %{buildroot}%{_bindir}/{vim,gvim-normal}
|
2007-03-29 01:04:15 +02:00
|
|
|
for f in egvim egview eview evim gex gvi gview gvimdiff rgview rgvim ; do
|
2011-04-18 17:03:21 +02:00
|
|
|
ln -s -vf gvim %{buildroot}%{_bindir}/$f
|
2007-03-29 01:04:15 +02:00
|
|
|
done
|
2011-11-07 13:59:59 +01:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
# install the other binaries
|
2011-04-18 17:03:21 +02:00
|
|
|
install -D -m 0755 vim-normal %{buildroot}/bin/vim-normal
|
|
|
|
install -D -m 0755 vim-enhanced %{buildroot}%{_bindir}/vim-enhanced
|
2007-03-29 01:04:15 +02:00
|
|
|
%if 0%{?with_splitted_gvim}
|
2011-04-18 17:03:21 +02:00
|
|
|
install -D -m 0755 gvim-enhanced %{buildroot}%{_bindir}/gvim-enhanced
|
2007-03-29 01:04:15 +02:00
|
|
|
%endif
|
2011-11-07 13:59:59 +01:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
# compat symlinks
|
2007-10-05 00:39:30 +02:00
|
|
|
# we need a dummy target for /etc/alternatives/vim
|
2011-04-18 17:03:21 +02:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
|
|
|
touch %{buildroot}%{_sysconfdir}/alternatives/vim
|
|
|
|
ln -s -f /etc/alternatives/vim %{buildroot}/bin/vim
|
|
|
|
ln -s -f /bin/vim %{buildroot}/bin/vi
|
|
|
|
ln -s -f /bin/vim %{buildroot}%{_bindir}/vim
|
|
|
|
ln -s -f /bin/vim %{buildroot}%{_bindir}/vi
|
|
|
|
ln -s -f vim %{buildroot}%{_bindir}/edit
|
|
|
|
ln -s -f /bin/vim %{buildroot}/bin/ex
|
2011-11-07 13:59:59 +01:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
# man pages
|
2011-04-18 17:03:21 +02:00
|
|
|
ln -s -f vim.1.gz %{buildroot}%{_mandir}/man1/vi.1.gz
|
|
|
|
ln -s -f vim.1.gz %{buildroot}%{_mandir}/man1/ex.1.gz
|
2011-11-07 13:59:59 +01:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
# vitmp
|
2011-04-18 17:03:21 +02:00
|
|
|
install -m 0755 vitmp %{buildroot}%{_bindir}/vitmp
|
|
|
|
install -m 0644 %{SOURCE14} %{buildroot}%{_mandir}/man1/vitmp.1
|
|
|
|
install -m 0755 %{SOURCE15} %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/tools/vim132
|
2011-11-07 13:59:59 +01:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
# make the vim settings more generic
|
2011-04-18 17:03:21 +02:00
|
|
|
ln -s -f %{VIM_SUBDIR} %{buildroot}%{_datadir}/vim/current
|
2011-11-07 13:59:59 +01:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
# additional files
|
2011-04-18 17:03:21 +02:00
|
|
|
install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/vimrc
|
|
|
|
install -D -m 0644 %{SOURCE8} %{buildroot}%{_sysconfdir}/gvimrc
|
2011-11-07 13:59:59 +01:00
|
|
|
|
2008-01-30 18:53:25 +01:00
|
|
|
# create site wide runtime directory
|
|
|
|
mkdir -p -m 0755 %{buildroot}%{site_runtimepath}/after
|
2008-10-06 18:03:59 +02:00
|
|
|
mkdir -m 0755 %{buildroot}%{site_runtimepath}/autoload
|
|
|
|
mkdir -m 0755 %{buildroot}%{site_runtimepath}/colors
|
|
|
|
mkdir -m 0755 %{buildroot}%{site_runtimepath}/doc
|
|
|
|
mkdir -m 0755 %{buildroot}%{site_runtimepath}/plugin
|
2008-01-30 18:53:25 +01:00
|
|
|
mkdir -m 0755 %{buildroot}%{site_runtimepath}/syntax
|
|
|
|
mkdir -m 0755 %{buildroot}%{site_runtimepath}/ftdetect
|
|
|
|
mkdir -m 0755 %{buildroot}%{site_runtimepath}/after/syntax
|
2009-02-20 23:53:18 +01:00
|
|
|
mkdir -m 0755 %{buildroot}%{_datadir}/vim/current/skeletons
|
2011-04-18 17:03:21 +02:00
|
|
|
mkdir -m 0755 %{buildroot}%{_sysconfdir}/skel
|
2011-11-07 13:59:59 +01:00
|
|
|
|
2009-02-20 23:53:18 +01:00
|
|
|
# install spec helper
|
2011-04-18 17:03:21 +02:00
|
|
|
install -m 0644 %{SOURCE20} %{buildroot}%{_datadir}/vim/current/skeletons/skeleton.spec
|
2011-04-18 17:31:41 +02:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
# desktop file for gvim
|
2011-04-18 17:42:11 +02:00
|
|
|
install -D -m 0644 %{SOURCE19} %{buildroot}%{_datadir}/applications/gvim.desktop
|
2011-04-18 17:31:41 +02:00
|
|
|
%suse_update_desktop_file gvim Utility TextEditor
|
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
#
|
|
|
|
# documentation
|
2011-04-18 17:03:21 +02:00
|
|
|
install -d -m 0755 %{buildroot}%{_docdir}/{,g}vim/
|
2011-05-17 19:58:51 +02:00
|
|
|
cp runtime/doc/uganda.txt LICENSE
|
2011-04-18 17:03:21 +02:00
|
|
|
install -D -m 0644 \
|
2007-03-29 01:04:15 +02:00
|
|
|
vimrc_example1 vimrc_example2 suse.vimrc \
|
2011-08-31 11:41:03 +02:00
|
|
|
LICENSE README.txt README_src.txt README_unix.txt ANNOUNCEMENT.vim-7.3 \
|
2007-03-29 01:04:15 +02:00
|
|
|
%{buildroot}%{_docdir}/vim/
|
|
|
|
# gvim
|
2011-04-18 17:03:21 +02:00
|
|
|
install -D -m 0644 \
|
2011-05-17 09:52:29 +02:00
|
|
|
README.Japanese-XIM runtime/gvimrc_example.vim suse.gvimrc \
|
2007-03-29 01:04:15 +02:00
|
|
|
%{buildroot}%{_docdir}/gvim/
|
2007-04-24 23:36:59 +02:00
|
|
|
#
|
|
|
|
# stupid helper
|
2011-04-18 17:03:21 +02:00
|
|
|
install -m 0755 %{SOURCE18} %{buildroot}%{_datadir}/vim/current/tools/missing-vim-client
|
|
|
|
# For /var/run on tmpfs
|
2011-07-06 10:14:31 +02:00
|
|
|
mkdir -p %{buildroot}/usr/lib/tmpfiles.d/
|
|
|
|
install -m 644 %{SOURCE22} %{buildroot}/usr/lib/tmpfiles.d/
|
2007-07-27 02:13:53 +02:00
|
|
|
# remove unecessary duplicate manpages
|
|
|
|
rm -rf %{buildroot}%{_mandir}/fr.ISO8859-1/
|
|
|
|
rm -rf %{buildroot}%{_mandir}/fr.UTF-8/
|
|
|
|
rm -rf %{buildroot}%{_mandir}/pl.ISO8859-2/
|
|
|
|
rm -rf %{buildroot}%{_mandir}/pl.UTF-8/
|
|
|
|
rm -rf %{buildroot}%{_mandir}/ru.KOI8-R/
|
|
|
|
rm -rf %{buildroot}%{_mandir}/it.ISO8859-1/
|
|
|
|
rm -rf %{buildroot}%{_mandir}/it.UTF-8/
|
|
|
|
# and move russian manpages to a place where they can be found
|
|
|
|
mv %{buildroot}%{_mandir}/ru.UTF-8 %{buildroot}%{_mandir}/ru
|
2008-09-26 15:14:32 +02:00
|
|
|
# remove some c source files
|
|
|
|
rm -f %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/tools/*.c
|
|
|
|
rm -f %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/macros/maze/*.c
|
2007-07-27 02:13:53 +02:00
|
|
|
#
|
2011-11-23 15:47:03 +01:00
|
|
|
# Create ghost files (see vim.conf)
|
|
|
|
mkdir -p %{buildroot}/var/run/vi.recover
|
2011-04-18 17:03:21 +02:00
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1020
|
2007-07-27 02:13:53 +02:00
|
|
|
%fdupes -s %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/lang
|
2010-08-30 12:16:42 +02:00
|
|
|
%fdupes -s %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/tutor
|
|
|
|
%fdupes -s %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/ftplugin
|
2011-04-18 17:03:21 +02:00
|
|
|
%endif
|
2006-12-15 17:15:12 +01:00
|
|
|
|
2007-04-24 23:36:59 +02:00
|
|
|
%post
|
2007-03-29 01:04:15 +02:00
|
|
|
/usr/sbin/update-alternatives --install \
|
|
|
|
/bin/vim vim /bin/vim-normal 15
|
|
|
|
|
2007-04-24 23:36:59 +02:00
|
|
|
%post base
|
|
|
|
/usr/sbin/update-alternatives --install \
|
|
|
|
/bin/vim vim %{_datadir}/vim/current/tools/missing-vim-client 0
|
2011-11-23 15:47:03 +01:00
|
|
|
# Create tmpfiles
|
2012-02-29 14:00:36 +01:00
|
|
|
if [ -x /bin/systemd-tmpfiles ]; then
|
|
|
|
/bin/systemd-tmpfiles --create /usr/lib/tmpfiles.d/vim.conf
|
|
|
|
fi
|
2007-04-24 23:36:59 +02:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
%post enhanced
|
|
|
|
/usr/sbin/update-alternatives --install \
|
|
|
|
/bin/vim vim %{_bindir}/vim-enhanced 20
|
|
|
|
|
|
|
|
%post -n gvim
|
|
|
|
/usr/sbin/update-alternatives --install \
|
|
|
|
%{_bindir}/gvim gvim %{_bindir}/gvim-normal 5
|
2011-05-17 17:34:13 +02:00
|
|
|
/usr/sbin/update-alternatives --install \
|
|
|
|
/bin/vim vim %{_bindir}/gvim 5
|
2007-03-29 01:04:15 +02:00
|
|
|
%if 0%{?with_splitted_gvim}
|
|
|
|
|
|
|
|
%post -n gvim-enhanced
|
|
|
|
/usr/sbin/update-alternatives --install \
|
|
|
|
/bin/vim vim %{_bindir}/gvim-enhanced 10
|
|
|
|
/usr/sbin/update-alternatives --install \
|
|
|
|
%{_bindir}/gvim gvim %{_bindir}/gvim-enhanced 10
|
|
|
|
%endif
|
|
|
|
|
2007-04-24 23:36:59 +02:00
|
|
|
%preun
|
2007-03-29 01:04:15 +02:00
|
|
|
if [ "$1" = 0 ] ; then
|
|
|
|
/usr/sbin/update-alternatives --remove vim /bin/vim-normal
|
|
|
|
fi
|
|
|
|
|
2007-04-24 23:36:59 +02:00
|
|
|
%preun base
|
|
|
|
if [ "$1" = 0 ] ; then
|
|
|
|
/usr/sbin/update-alternatives --remove vim %{_datadir}/vim/current/tools/missing-vim-client
|
|
|
|
fi
|
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
%preun enhanced
|
|
|
|
if [ "$1" = 0 ] ; then
|
|
|
|
/usr/sbin/update-alternatives --remove vim %{_bindir}/vim-enhanced
|
|
|
|
fi
|
|
|
|
|
|
|
|
%preun -n gvim
|
|
|
|
if [ "$1" = 0 ] ; then
|
|
|
|
/usr/sbin/update-alternatives --remove vim %{_bindir}/gvim
|
|
|
|
fi
|
|
|
|
%if 0%{?with_splitted_gvim}
|
|
|
|
|
|
|
|
%preun -n gvim-enhanced
|
|
|
|
if [ "$1" = 0 ] ; then
|
|
|
|
/usr/sbin/update-alternatives --remove vim %{_bindir}/gvim-enhanced
|
|
|
|
fi
|
|
|
|
%endif
|
|
|
|
|
2007-04-24 23:36:59 +02:00
|
|
|
%files
|
2007-03-29 01:04:15 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
/bin/vim-normal
|
2006-12-15 17:15:12 +01:00
|
|
|
|
2007-04-24 23:36:59 +02:00
|
|
|
%files base
|
2007-03-29 01:04:15 +02:00
|
|
|
%defattr(-,root,root,-)
|
2011-04-18 17:03:21 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/vimrc
|
|
|
|
%ghost %{_sysconfdir}/alternatives/vim
|
2011-07-06 10:14:31 +02:00
|
|
|
%dir /usr/lib/tmpfiles.d
|
2011-11-23 15:47:03 +01:00
|
|
|
/usr/lib/tmpfiles.d/vim.conf
|
|
|
|
%ghost %dir /var/run/vi.recover
|
2007-03-29 01:04:15 +02:00
|
|
|
# symlinks
|
2006-12-15 17:15:12 +01:00
|
|
|
/bin/vi
|
|
|
|
/bin/vim
|
2007-08-31 16:04:23 +02:00
|
|
|
/bin/ex
|
2007-03-29 01:04:15 +02:00
|
|
|
%{_bindir}/edit
|
|
|
|
%{_bindir}/ex
|
|
|
|
%{_bindir}/rview
|
|
|
|
%{_bindir}/rvim
|
|
|
|
%{_bindir}/vi
|
|
|
|
%{_bindir}/vim
|
|
|
|
%{_bindir}/view
|
|
|
|
%{_bindir}/vimdiff
|
|
|
|
# additional binaries
|
|
|
|
%{_bindir}/vitmp
|
|
|
|
%{_bindir}/vimtutor
|
2008-09-13 12:25:42 +02:00
|
|
|
%{_bindir}/gvimtutor
|
2007-03-29 01:04:15 +02:00
|
|
|
%{_bindir}/xxd
|
|
|
|
# man pages
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%dir %{_mandir}/fr
|
|
|
|
%dir %{_mandir}/fr/man1/
|
|
|
|
%{_mandir}/fr/man1/*
|
|
|
|
%dir %{_mandir}/it
|
|
|
|
%dir %{_mandir}/it/man1/
|
|
|
|
%{_mandir}/it/man1/*
|
2007-07-27 02:13:53 +02:00
|
|
|
%dir %{_mandir}/ru
|
|
|
|
%dir %{_mandir}/ru/man1/
|
|
|
|
%{_mandir}/ru/man1/*
|
2007-03-29 01:04:15 +02:00
|
|
|
%dir %{_mandir}/pl
|
|
|
|
%dir %{_mandir}/pl/man1/
|
|
|
|
%{_mandir}/pl/man1/*
|
|
|
|
# docs and data file
|
|
|
|
%doc %{_docdir}/vim
|
|
|
|
#
|
|
|
|
%{_datadir}/vim/current
|
|
|
|
%dir %{_datadir}/vim/
|
|
|
|
%dir %{_datadir}/vim/%{VIM_SUBDIR}/
|
|
|
|
%dir %{_datadir}/vim/%{VIM_SUBDIR}/autoload/
|
|
|
|
%dir %{_datadir}/vim/%{VIM_SUBDIR}/colors/
|
|
|
|
%dir %{_datadir}/vim/%{VIM_SUBDIR}/compiler/
|
|
|
|
%dir %{_datadir}/vim/%{VIM_SUBDIR}/doc/
|
|
|
|
%dir %{_datadir}/vim/%{VIM_SUBDIR}/ftplugin/
|
|
|
|
%dir %{_datadir}/vim/%{VIM_SUBDIR}/indent/
|
|
|
|
%dir %{_datadir}/vim/%{VIM_SUBDIR}/keymap/
|
|
|
|
%dir %{_datadir}/vim/%{VIM_SUBDIR}/lang/
|
|
|
|
%dir %{_datadir}/vim/%{VIM_SUBDIR}/macros/
|
|
|
|
%dir %{_datadir}/vim/%{VIM_SUBDIR}/plugin/
|
|
|
|
%dir %{_datadir}/vim/%{VIM_SUBDIR}/print/
|
|
|
|
%dir %{_datadir}/vim/%{VIM_SUBDIR}/spell/
|
|
|
|
%dir %{_datadir}/vim/%{VIM_SUBDIR}/syntax/
|
|
|
|
%dir %{_datadir}/vim/%{VIM_SUBDIR}/tools/
|
|
|
|
%dir %{_datadir}/vim/%{VIM_SUBDIR}/tutor/
|
2009-02-20 23:53:18 +01:00
|
|
|
%dir %{_datadir}/vim/%{VIM_SUBDIR}/skeletons/
|
2008-01-30 18:53:25 +01:00
|
|
|
%dir %{site_runtimepath}
|
2008-10-06 18:03:59 +02:00
|
|
|
%dir %{site_runtimepath}/autoload/
|
|
|
|
%dir %{site_runtimepath}/colors/
|
|
|
|
%dir %{site_runtimepath}/doc/
|
|
|
|
%dir %{site_runtimepath}/plugin/
|
2008-01-30 18:53:25 +01:00
|
|
|
%dir %{site_runtimepath}/syntax/
|
|
|
|
%dir %{site_runtimepath}/ftdetect/
|
|
|
|
%dir %{site_runtimepath}/after/
|
|
|
|
%dir %{site_runtimepath}/after/syntax/
|
2007-06-05 01:15:56 +02:00
|
|
|
#
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/bugreport.vim
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/evim.vim
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/filetype.vim
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/ftoff.vim
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/ftplugin.vim
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/ftplugof.vim
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/indent.vim
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/indoff.vim
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/optwin.vim
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/scripts.vim
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/syntax/syntax.vim
|
2009-02-20 23:53:18 +01:00
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/skeletons/skeleton.spec
|
2007-04-24 23:36:59 +02:00
|
|
|
# stupid helper
|
|
|
|
# THIS BREAKS THE BUILD: %{_datadir}/vim/current/tools/missing-vim-client
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/tools/missing-vim-client
|
2007-03-29 01:04:15 +02:00
|
|
|
|
|
|
|
%files data
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
# data files
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/autoload/*
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/colors/*
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/compiler/*
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/doc/*
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/ftplugin/*
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/indent/*
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/keymap/*
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/lang/*
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/macros/*
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/plugin/*
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/print/*
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/spell/*
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/syntax/*
|
2007-06-05 01:15:56 +02:00
|
|
|
%exclude %{_datadir}/vim/%{VIM_SUBDIR}/syntax/syntax.vim
|
2008-09-26 15:14:32 +02:00
|
|
|
#%{_datadir}/vim/%{VIM_SUBDIR}/tools/blink.c
|
2007-04-24 23:36:59 +02:00
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/tools/ccfilter.1
|
2008-09-26 15:14:32 +02:00
|
|
|
#%{_datadir}/vim/%{VIM_SUBDIR}/tools/ccfilter.c
|
2007-04-24 23:36:59 +02:00
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/tools/ccfilter_README.txt
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/tools/efm_filter.pl
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/tools/efm_filter.txt
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/tools/efm_perl.pl
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/tools/mve.awk
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/tools/mve.txt
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/tools/pltags.pl
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/tools/README.txt
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/tools/ref
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/tools/shtags.1
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/tools/shtags.pl
|
2010-11-22 13:28:22 +01:00
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/tools/unicode.vim
|
2007-04-24 23:36:59 +02:00
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/tools/vim132
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/tools/vimm
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/tools/vimspell.sh
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/tools/vimspell.txt
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/tools/vim_vs_net.cmd
|
2008-09-26 15:14:32 +02:00
|
|
|
#%{_datadir}/vim/%{VIM_SUBDIR}/tools/xcmdsrv_client.c
|
2007-03-29 01:04:15 +02:00
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/tutor/*
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/delmenu.vim
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/gvimrc_example.vim
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/menu.vim
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/mswin.vim
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/synmenu.vim
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/vimrc_example.vim
|
|
|
|
|
|
|
|
%files enhanced
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/vim-enhanced
|
2006-12-15 17:15:12 +01:00
|
|
|
|
|
|
|
%files -n gvim
|
2007-03-29 01:04:15 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/gvim-normal
|
|
|
|
%if 0%{?with_splitted_gvim}
|
|
|
|
|
|
|
|
%files -n gvim-base
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%endif
|
|
|
|
%doc %{_docdir}/gvim
|
2011-04-18 17:03:21 +02:00
|
|
|
%ghost %config(missingok) %{_sysconfdir}/gvimrc
|
2007-03-29 01:04:15 +02:00
|
|
|
%{_bindir}/egview
|
|
|
|
%{_bindir}/egvim
|
|
|
|
%{_bindir}/eview
|
|
|
|
%{_bindir}/evim
|
|
|
|
%{_bindir}/gex
|
|
|
|
%{_bindir}/gvi
|
|
|
|
%{_bindir}/gview
|
|
|
|
%{_bindir}/gvim
|
|
|
|
%{_bindir}/gvimdiff
|
|
|
|
%{_bindir}/rgview
|
|
|
|
%{_bindir}/rgvim
|
|
|
|
# menu icon
|
|
|
|
%{_datadir}/applications/gvim.desktop
|
2010-03-27 17:11:05 +01:00
|
|
|
%{_datadir}/icons/hicolor/48x48/apps/gvim.png
|
2007-03-29 01:04:15 +02:00
|
|
|
%if 0%{?with_splitted_gvim}
|
2006-12-15 17:15:12 +01:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
%files -n gvim-enhanced
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/gvim-enhanced
|
|
|
|
%endif
|
2008-01-30 18:53:25 +01:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
%changelog
|