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
|
|
|
#
|
2021-01-11 17:20:33 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
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.
|
|
|
|
|
2018-09-17 13:34:01 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-15 17:15:12 +01:00
|
|
|
#
|
|
|
|
|
2012-02-19 20:11:32 +01:00
|
|
|
|
2019-12-13 12:10:26 +01:00
|
|
|
%define pkg_version 8.2
|
2021-12-21 15:40:23 +01:00
|
|
|
%define patchlevel 3863
|
2017-12-15 14:24:10 +01:00
|
|
|
%define patchlevel_compact %{patchlevel}
|
2019-12-13 12:10:26 +01:00
|
|
|
%define VIM_SUBDIR vim82
|
2017-03-21 09:18:32 +01:00
|
|
|
%define site_runtimepath %{_datadir}/vim/site
|
|
|
|
%define make make VIMRCLOC=%{_sysconfdir} VIMRUNTIMEDIR=%{_datadir}/vim/current MAKE="make -e" %{?_smp_mflags}
|
2018-01-17 15:32:22 +01:00
|
|
|
%bcond_without python2
|
2021-10-31 11:07:10 +01:00
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%bcond_without libalternatives
|
|
|
|
%else
|
|
|
|
%bcond_with libalternatives
|
|
|
|
%endif
|
|
|
|
|
2006-12-15 17:15:12 +01:00
|
|
|
Name: vim
|
2016-09-12 20:04:54 +02:00
|
|
|
Version: %{pkg_version}.%{patchlevel_compact}
|
2011-12-21 11:58:43 +01:00
|
|
|
Release: 0
|
2011-04-18 17:03:21 +02:00
|
|
|
Summary: Vi IMproved
|
2014-08-29 11:48:28 +02:00
|
|
|
License: Vim
|
2018-04-04 15:26:00 +02:00
|
|
|
Group: Productivity/Text/Editors
|
2018-06-12 10:23:42 +02:00
|
|
|
URL: http://www.vim.org/
|
2016-11-25 14:59:00 +01:00
|
|
|
Source: https://github.com/vim/vim/archive/v%{pkg_version}.%{patchlevel}.tar.gz#/vim-%{pkg_version}.%{patchlevel}.tar.gz
|
2006-12-15 17:15:12 +01:00
|
|
|
Source3: suse.vimrc
|
|
|
|
Source4: vimrc_example1
|
|
|
|
Source5: vimrc_example2
|
|
|
|
Source8: suse.gvimrc
|
|
|
|
Source10: README.Japanese-XIM
|
|
|
|
Source13: vitmp.c
|
|
|
|
Source14: vitmp.1
|
|
|
|
Source15: vim132
|
2007-07-05 19:05:52 +02:00
|
|
|
Source19: gvim.desktop
|
2009-02-20 23:53:18 +01:00
|
|
|
Source20: spec.skeleton
|
2020-06-05 18:23:31 +02:00
|
|
|
Source21: spec.vim
|
2011-01-10 16:38:12 +01:00
|
|
|
Source23: apparmor.vim
|
2014-09-29 12:57:13 +02:00
|
|
|
Source24: gvim.svg
|
2018-04-04 15:26:00 +02:00
|
|
|
Source25: gvim_24.png
|
|
|
|
Source26: gvim_32.png
|
|
|
|
Source27: gvim_48.png
|
|
|
|
Source28: gvim_64.png
|
|
|
|
Source29: gvim_96.png
|
2018-09-19 14:20:06 +02:00
|
|
|
Source98: vim-changelog.sh
|
2013-08-12 09:21:11 +02:00
|
|
|
Source99: %{name}-7.4-rpmlintrc
|
|
|
|
Patch3: %{name}-7.4-disable_lang_no.patch
|
2010-11-22 13:28:22 +01:00
|
|
|
Patch4: %{name}-7.3-gvimrc_fontset.patch
|
2013-08-12 09:21:11 +02:00
|
|
|
Patch5: %{name}-7.4-highlight_fstab.patch
|
2010-11-22 13:28:22 +01:00
|
|
|
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
|
2013-08-12 09:23:55 +02:00
|
|
|
Patch15: %{name}-7.4-filetype_apparmor.patch
|
2010-11-22 13:28:22 +01:00
|
|
|
Patch18: %{name}-7.3-filetype_spec.patch
|
|
|
|
Patch21: %{name}-7.3-filetype_changes.patch
|
2013-08-12 09:21:11 +02:00
|
|
|
Patch22: %{name}-7.4-filetype_mine.patch
|
2017-04-18 12:49:27 +02:00
|
|
|
Patch23: vim-8.0-ttytype-test.patch
|
2017-10-12 10:18:37 +02:00
|
|
|
Patch24: disable-unreliable-tests.patch
|
2021-07-23 18:29:17 +02:00
|
|
|
Patch25: disable-unreliable-tests-arch.patch
|
2016-02-22 14:18:20 +01:00
|
|
|
Patch100: vim73-no-static-libpython.patch
|
2018-03-23 20:54:16 +01:00
|
|
|
Patch101: vim-8.0.1568-defaults.patch
|
2018-08-23 09:45:26 +02:00
|
|
|
# https://github.com/vim/vim/issues/3348 - problem more probadly in buildenv than in test
|
|
|
|
Patch102: vim-8.1.0297-dump3.patch
|
2021-03-02 20:20:36 +01:00
|
|
|
Patch104: vim-8.2.2411-globalvimrc.patch
|
2017-03-21 09:18:32 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: db-devel
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gettext-devel
|
|
|
|
BuildRequires: gpm-devel
|
|
|
|
BuildRequires: libacl-devel
|
2019-01-04 14:34:11 +01:00
|
|
|
BuildRequires: libtool
|
2017-03-21 09:18:32 +01:00
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: ruby-devel
|
|
|
|
BuildRequires: update-desktop-files
|
2018-01-17 15:32:22 +01:00
|
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
2020-05-14 17:24:57 +02:00
|
|
|
BuildRequires: pkgconfig(krb5)
|
2018-01-17 15:32:22 +01:00
|
|
|
BuildRequires: pkgconfig(lua)
|
|
|
|
BuildRequires: pkgconfig(python3)
|
|
|
|
BuildRequires: pkgconfig(xt)
|
2019-06-26 20:02:55 +02:00
|
|
|
Requires: vim-data-common = %{version}-%{release}
|
2021-10-31 11:07:10 +01:00
|
|
|
%if %{with libalternatives}
|
|
|
|
Requires: alts
|
|
|
|
%else
|
2017-03-21 09:18:32 +01:00
|
|
|
Requires(post): update-alternatives
|
2021-11-02 10:55:20 +01:00
|
|
|
Requires(postun):update-alternatives
|
2021-10-31 11:07:10 +01:00
|
|
|
%endif
|
2018-03-02 13:56:33 +01:00
|
|
|
Recommends: vim-data = %{version}-%{release}
|
2019-12-13 12:10:26 +01:00
|
|
|
Conflicts: vim-base < 8.2
|
2017-03-21 09:18:32 +01:00
|
|
|
Provides: vi
|
|
|
|
Provides: vim-base = %{version}-%{release}
|
|
|
|
Provides: vim-enhanced = %{version}-%{release}
|
|
|
|
Provides: vim-python = %{version}-%{release}
|
|
|
|
Obsoletes: vim-base < %{version}-%{release}
|
|
|
|
Obsoletes: vim-enhanced < %{version}-%{release}
|
|
|
|
Obsoletes: vim-python < %{version}-%{release}
|
|
|
|
Provides: vim_client
|
|
|
|
%{?libperl_requires}
|
2019-06-26 20:02:55 +02:00
|
|
|
%if %{with python2}
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
%endif
|
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.
|
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
%package data
|
2018-02-15 10:27:43 +01:00
|
|
|
Summary: Data files needed for extended vim functionality
|
2018-04-04 15:26:00 +02:00
|
|
|
Group: Productivity/Text/Editors
|
2019-06-26 20:02:55 +02:00
|
|
|
Requires: vim-data-common = %{version}-%{release}
|
2021-11-05 18:52:17 +01:00
|
|
|
# Used to be in vim-plugins package
|
2012-10-02 14:54:23 +02:00
|
|
|
Obsoletes: vim-plugin-matchit <= 1.13.2
|
|
|
|
Provides: vim-plugin-matchit = 1.13.2
|
2021-11-05 18:52:17 +01:00
|
|
|
# conflicts with nginx own plugin
|
|
|
|
Obsoletes: vim-plugin-nginx < %{version}
|
|
|
|
Provides: vim-plugin-nginx = %{version}
|
|
|
|
|
2017-03-21 09:18:32 +01:00
|
|
|
BuildArch: noarch
|
2006-12-15 17:15:12 +01:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
%description data
|
2017-03-06 09:49:06 +01:00
|
|
|
This package contains optional runtime & syntax files for vim.
|
2006-12-15 17:15:12 +01:00
|
|
|
|
2018-02-14 13:51:49 +01:00
|
|
|
%package data-common
|
2018-02-15 10:27:43 +01:00
|
|
|
Summary: Common Data files for vim & gvim
|
2018-04-04 15:26:00 +02:00
|
|
|
Group: Productivity/Text/Editors
|
2018-02-14 13:51:49 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description data-common
|
2020-06-05 18:23:31 +02:00
|
|
|
This package contains basic runtime & syntax files for vim
|
2018-02-14 13:51:49 +01:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
%package -n gvim
|
2011-04-18 17:03:21 +02:00
|
|
|
Summary: A GUI for Vi
|
2018-04-04 15:26:00 +02:00
|
|
|
Group: Productivity/Text/Editors
|
2007-03-29 01:04:15 +02:00
|
|
|
Requires: gvim_client
|
2017-03-06 09:49:06 +01:00
|
|
|
Requires: vim-data = %{version}-%{release}
|
2021-10-31 11:07:10 +01:00
|
|
|
%if %{with libalternatives}
|
|
|
|
BuildRequires: alts
|
|
|
|
Requires: alts
|
|
|
|
%else
|
2017-03-21 09:18:32 +01:00
|
|
|
Requires(post): update-alternatives
|
2021-11-02 10:55:20 +01:00
|
|
|
Requires(postun):update-alternatives
|
2021-10-31 11:07:10 +01:00
|
|
|
%endif
|
2019-12-13 12:10:26 +01:00
|
|
|
Conflicts: gvim < 8.2
|
2013-08-16 14:26:53 +02:00
|
|
|
Provides: gvim-base = %{version}-%{release}
|
|
|
|
Provides: gvim-enhanced = %{version}-%{release}
|
2013-08-17 10:46:27 +02:00
|
|
|
Obsoletes: gvim-base < %{version}-%{release}
|
|
|
|
Obsoletes: gvim-enhanced < %{version}-%{release}
|
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
|
|
|
|
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
|
2013-08-16 14:26:53 +02:00
|
|
|
want less features, you might want to install vim instead.
|
2007-03-29 01:04:15 +02:00
|
|
|
|
2020-05-14 17:24:57 +02:00
|
|
|
%package small
|
|
|
|
Summary: Vim with reduced features
|
|
|
|
Group: Productivity/Text/Editors
|
2021-10-31 11:07:10 +01:00
|
|
|
%if %{with libalternatives}
|
|
|
|
BuildRequires: alts
|
|
|
|
Requires: alts
|
|
|
|
%else
|
2020-05-14 17:24:57 +02:00
|
|
|
Requires(post): update-alternatives
|
2021-11-02 10:55:20 +01:00
|
|
|
Requires(postun):update-alternatives
|
2021-10-31 11:07:10 +01:00
|
|
|
%endif
|
2020-05-14 17:24:57 +02:00
|
|
|
Provides: vi
|
|
|
|
Provides: vim_client
|
2020-06-05 18:23:31 +02:00
|
|
|
Requires: vim-data-common = %{version}-%{release}
|
2020-05-14 17:24:57 +02:00
|
|
|
|
|
|
|
%description small
|
|
|
|
Vim compiled with reduced feature set such as no script
|
|
|
|
interpreters built in
|
|
|
|
|
2006-12-15 17:15:12 +01:00
|
|
|
%prep
|
2016-09-12 20:04:54 +02:00
|
|
|
%setup -q -n %{name}-%{pkg_version}.%{patchlevel}
|
2014-08-25 13:50:01 +02:00
|
|
|
|
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
|
2011-04-18 17:03:21 +02:00
|
|
|
cp %{SOURCE23} runtime/syntax/apparmor.vim
|
2013-08-12 09:23:55 +02:00
|
|
|
%patch15 -p1
|
2010-11-22 13:28:22 +01:00
|
|
|
%patch18 -p1
|
2008-03-12 19:39:32 +01:00
|
|
|
%patch21 -p1
|
2011-03-02 11:27:58 +01:00
|
|
|
%patch22 -p1
|
2017-04-18 12:49:27 +02:00
|
|
|
%patch23 -p1
|
2017-10-12 10:18:37 +02:00
|
|
|
%patch24 -p1
|
2021-08-20 10:27:14 +02:00
|
|
|
%ifarch s390x %{arm} aarch64 riscv64
|
2021-07-23 18:29:17 +02:00
|
|
|
%patch25 -p1
|
|
|
|
%endif
|
2009-02-26 12:46:59 +01:00
|
|
|
%patch100 -p1
|
2018-03-23 20:54:16 +01:00
|
|
|
%patch101 -p1
|
2018-08-23 09:45:26 +02:00
|
|
|
%patch102 -p1
|
2021-03-02 20:20:36 +01:00
|
|
|
%patch104 -p1
|
2013-08-12 09:21:11 +02:00
|
|
|
cp %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE8} %{SOURCE10} .
|
2006-12-15 17:15:12 +01:00
|
|
|
|
2017-10-12 10:36:35 +02:00
|
|
|
# Unreliable tests
|
2017-10-12 10:43:41 +02:00
|
|
|
# See also disable-unreliable-tests.patch
|
2020-03-31 16:30:46 +02:00
|
|
|
rm src/testdir/test_arglist.*
|
|
|
|
rm src/testdir/test_command_count.*
|
2017-10-12 10:36:35 +02:00
|
|
|
rm src/testdir/test_cmdline.*
|
2017-10-12 10:50:44 +02:00
|
|
|
rm src/testdir/test_channel.*
|
2020-03-31 16:30:46 +02:00
|
|
|
rm src/testdir/test_diffmode.*
|
|
|
|
rm src/testdir/test_mksession.*
|
|
|
|
rm src/testdir/gen_opt_test.*
|
2017-11-29 14:28:09 +01:00
|
|
|
rm src/testdir/test_options.*
|
2020-03-31 16:30:46 +02:00
|
|
|
rm src/testdir/test_popupwin.*
|
|
|
|
rm src/testdir/test_startup.*
|
2017-11-29 15:56:28 +01:00
|
|
|
rm src/testdir/test_terminal*
|
2020-03-31 16:30:46 +02:00
|
|
|
rm src/testdir/test_textprop.*
|
|
|
|
rm src/testdir/test_window_cmd.*
|
2017-11-29 12:53:57 +01:00
|
|
|
rm src/testdir/test_writefile.*
|
2017-10-12 10:36:35 +02:00
|
|
|
|
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 \
|
|
|
|
--with-compiledby='http://www.opensuse.org/' \
|
2011-11-23 08:06:49 +01:00
|
|
|
--with-tlib=tinfo \
|
2013-08-16 14:26:53 +02:00
|
|
|
--with-global-runtime=%{site_runtimepath} \
|
2020-05-14 17:24:57 +02:00
|
|
|
"
|
|
|
|
|
|
|
|
# yeah kind of weird to call this small when we then use the
|
|
|
|
# "normal" set. Calling the package vim-normal is weird though as
|
|
|
|
# huge is our default.
|
|
|
|
export SMALL_OPTIONS="\
|
|
|
|
$COMMON_OPTIONS \
|
|
|
|
--with-features=small \
|
|
|
|
--enable-luainterp=no \
|
|
|
|
--enable-pythoninterp=no \
|
|
|
|
--enable-perlinterp=no \
|
|
|
|
--enable-python3interp=no \
|
|
|
|
--enable-rubyinterp=no"
|
|
|
|
|
|
|
|
export HUGE_OPTIONS="\
|
|
|
|
$COMMON_OPTIONS \
|
|
|
|
--with-features=huge \
|
2013-08-16 14:26:53 +02:00
|
|
|
--enable-luainterp=dynamic \
|
2016-06-03 20:55:17 +02:00
|
|
|
--enable-perlinterp=yes \
|
2013-08-16 14:26:53 +02:00
|
|
|
--enable-python3interp=dynamic \
|
2020-05-14 17:24:57 +02:00
|
|
|
--enable-rubyinterp=dynamic
|
|
|
|
--enable-pythoninterp=%{?with_python2:yes}%{!?with_python2:no}"
|
2018-01-17 15:32:22 +01:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
export GUI_OPTIONS="\
|
2016-04-23 12:12:45 +02:00
|
|
|
--disable-icon-cache-update \
|
2007-03-29 01:04:15 +02:00
|
|
|
--enable-xim \
|
|
|
|
--enable-fontset \
|
2016-03-16 12:22:21 +01:00
|
|
|
--enable-gui=gtk3"
|
2011-11-06 09:57:45 +01:00
|
|
|
|
2020-05-14 17:24:57 +02:00
|
|
|
export NOGUI_OPTIONS="\
|
|
|
|
--disable-gui \
|
|
|
|
--disable-gpm \
|
|
|
|
--with-x=no \
|
|
|
|
"
|
|
|
|
|
2011-11-06 09:57:45 +01:00
|
|
|
pushd src
|
2013-08-16 14:26:53 +02:00
|
|
|
autoconf
|
2011-11-06 09:57:45 +01:00
|
|
|
popd
|
2013-08-16 14:26:53 +02:00
|
|
|
|
2020-05-14 17:24:57 +02:00
|
|
|
# build smaller vim
|
|
|
|
%configure ${SMALL_OPTIONS} ${NOGUI_OPTIONS}
|
|
|
|
sed -i -e 's|define HAVE_DATE_TIME 1|undef HAVE_DATE_TIME|' src/auto/config.h
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
cp src/vim vim-small
|
|
|
|
|
|
|
|
# build normal vim
|
|
|
|
make -j1 distclean
|
|
|
|
%configure ${HUGE_OPTIONS} ${NOGUI_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
|
2016-12-10 16:39:29 +01:00
|
|
|
make %{?_smp_mflags}
|
2017-03-11 11:02:37 +01:00
|
|
|
cp src/vim vim-nox11
|
2013-08-16 14:26:53 +02:00
|
|
|
|
|
|
|
# build gvim
|
2018-03-08 11:48:31 +01:00
|
|
|
make -j1 distclean
|
2020-05-14 17:24:57 +02:00
|
|
|
%configure ${HUGE_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
|
2016-12-10 16:39:29 +01:00
|
|
|
make %{?_smp_mflags}
|
2013-08-16 14:26:53 +02:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
#
|
|
|
|
# build vitmp
|
2011-04-18 17:03:21 +02:00
|
|
|
gcc %{optflags} %{SOURCE13} -o vitmp
|
2006-12-15 17:15:12 +01:00
|
|
|
|
|
|
|
%install
|
2018-01-17 15:32:22 +01:00
|
|
|
%make_install STRIP=:
|
2018-04-04 15:26:00 +02:00
|
|
|
# create icon directories and install the icons into it
|
|
|
|
for SIZE in 24 32 48 64 96; do
|
2014-09-29 12:57:13 +02:00
|
|
|
install -d -m 0755 %{buildroot}%{_datadir}/icons/hicolor/${SIZE}x${SIZE}/apps
|
2018-04-04 15:26:00 +02:00
|
|
|
install -m 0644 %{_sourcedir}/gvim_${SIZE}.png %{buildroot}%{_datadir}/icons/hicolor/${SIZE}x${SIZE}/apps/gvim.png
|
2014-09-29 12:57:13 +02:00
|
|
|
done
|
|
|
|
install -d -m 0755 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
|
|
|
|
install -m 0644 %{SOURCE24} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/gvim.svg
|
2011-11-07 13:59:59 +01:00
|
|
|
|
2021-11-13 01:54:53 +01:00
|
|
|
# the last installed binary is gvim. preserve it
|
2013-08-16 14:26:53 +02:00
|
|
|
mv %{buildroot}%{_bindir}/vim %{buildroot}%{_bindir}/gvim
|
2021-11-13 01:54:53 +01:00
|
|
|
%if %{with libalternatives}
|
|
|
|
for f in vimdiff ex view rview rvim; do
|
|
|
|
rm %{buildroot}%{_bindir}/$f
|
|
|
|
done
|
|
|
|
%else
|
|
|
|
# fix gvim symlinks. e* was added here as it doesnt make much sense in
|
|
|
|
# console
|
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
|
2021-11-13 01:54:53 +01:00
|
|
|
%endif
|
2011-11-07 13:59:59 +01:00
|
|
|
|
2013-08-16 14:26:53 +02:00
|
|
|
# install vim
|
2020-05-14 17:24:57 +02:00
|
|
|
install -D -m 0755 vim-small %{buildroot}%{_bindir}/vim-small
|
2017-03-11 11:02:37 +01:00
|
|
|
install -D -m 0755 vim-nox11 %{buildroot}%{_bindir}/vim-nox11
|
2021-10-31 11:07:10 +01:00
|
|
|
%if ! %{with libalternatives}
|
2017-03-11 11:02:37 +01:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
|
|
|
ln -s -f %{_sysconfdir}/alternatives/vim %{buildroot}%{_bindir}/vim
|
2020-09-05 12:31:34 +02:00
|
|
|
ln -s -f %{_sysconfdir}/alternatives/vi %{buildroot}%{_bindir}/vi
|
2021-10-31 11:07:10 +01:00
|
|
|
%else
|
2021-11-13 01:54:53 +01:00
|
|
|
for f in vi vim rvim evim eview egview view rview vimdiff edit ex egvim gex gvi gview gvimdiff rgview rgvim ; do
|
|
|
|
ln -sf %{_bindir}/alts %{buildroot}%{_bindir}/$f
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/libalternatives/$f
|
|
|
|
done
|
|
|
|
for f in vi vim rvim view rview vimdiff edit ex; do
|
|
|
|
cat > %{buildroot}%{_datadir}/libalternatives/$f/20.conf <<EOF
|
2021-10-31 11:07:10 +01:00
|
|
|
binary=%{_bindir}/vim-nox11
|
2021-11-13 01:54:53 +01:00
|
|
|
group=vim,vi
|
2021-11-02 15:35:43 +01:00
|
|
|
options=KeepArgv0
|
2021-10-31 11:07:10 +01:00
|
|
|
EOF
|
2021-11-13 01:54:53 +01:00
|
|
|
done
|
|
|
|
for f in vi vim evim rvim egview eview view rview vimdiff edit ex egvim gex gvi gview gvimdiff rgview rgvim ; do
|
|
|
|
cat > %{buildroot}%{_datadir}/libalternatives/$f/30.conf <<EOF
|
2021-10-31 11:07:10 +01:00
|
|
|
binary=%{_bindir}/gvim
|
2021-11-13 01:54:53 +01:00
|
|
|
group=vi,vim
|
2021-11-02 13:43:04 +01:00
|
|
|
options=KeepArgv0
|
2021-10-31 11:07:10 +01:00
|
|
|
EOF
|
2021-11-13 01:54:53 +01:00
|
|
|
done
|
|
|
|
for f in vim vi ; do
|
|
|
|
cat > %{buildroot}%{_datadir}/libalternatives/$f/19.conf <<EOF
|
2021-10-31 11:07:10 +01:00
|
|
|
binary=%{_bindir}/vim-small
|
2021-11-13 01:54:53 +01:00
|
|
|
group=vim,vi
|
2021-11-02 15:35:43 +01:00
|
|
|
options=KeepArgv0
|
2021-10-31 11:07:10 +01:00
|
|
|
EOF
|
2021-11-13 01:54:53 +01:00
|
|
|
done
|
2021-10-31 11:07:10 +01:00
|
|
|
%endif
|
2011-11-07 13:59:59 +01:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
# compat symlinks
|
2017-03-11 11:02:37 +01:00
|
|
|
mkdir %{buildroot}/bin
|
2020-11-24 18:49:03 +01:00
|
|
|
%if !0%{?usrmerged}
|
2017-03-11 11:02:37 +01:00
|
|
|
ln -s -f %{_bindir}/vim %{buildroot}/bin/vi
|
|
|
|
ln -s -f %{_bindir}/vim %{buildroot}/bin/vim
|
2020-11-24 18:49:03 +01:00
|
|
|
%endif
|
2017-03-11 11:02:37 +01:00
|
|
|
ln -s -f vim %{buildroot}%{_bindir}/edit
|
2020-11-24 18:49:03 +01:00
|
|
|
%if !0%{?usrmerged}
|
2017-03-11 11:02:37 +01:00
|
|
|
ln -s -f %{_bindir}/vim %{buildroot}/bin/ex
|
2020-11-24 18:49:03 +01:00
|
|
|
%endif
|
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
|
2013-08-16 14:26:53 +02:00
|
|
|
install -m 0755 vitmp %{buildroot}%{_bindir}/vitmp
|
2011-04-18 17:03:21 +02:00
|
|
|
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
|
2020-06-05 18:23:31 +02:00
|
|
|
install -D -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/vim/current/suse.vimrc
|
2020-07-01 12:57:16 +02:00
|
|
|
#install -D -m 0644 /dev/null %{buildroot}%{_sysconfdir}/vimrc
|
2011-04-18 17:03:21 +02:00
|
|
|
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
|
2020-06-05 18:23:31 +02:00
|
|
|
install -m 0644 %{SOURCE20} %{buildroot}%{_datadir}/vim/current/skeletons/skeleton.spec
|
|
|
|
install -m 0644 %{SOURCE21} %{buildroot}%{_datadir}/vim/current/plugin/spec.vim
|
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/
|
|
|
|
install -D -m 0644 \
|
2007-03-29 01:04:15 +02:00
|
|
|
vimrc_example1 vimrc_example2 suse.vimrc \
|
2018-04-03 16:46:18 +02:00
|
|
|
README.txt READMEdir/README_src.txt READMEdir/README_unix.txt \
|
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/
|
2016-01-29 10:26:03 +01:00
|
|
|
|
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/
|
2018-07-13 08:48:02 +02:00
|
|
|
rm -rf %{buildroot}%{_mandir}/da.UTF-8/
|
|
|
|
rm -rf %{buildroot}%{_mandir}/de.UTF-8/
|
|
|
|
rm -rf %{buildroot}%{_mandir}/da.ISO8859-1/
|
|
|
|
rm -rf %{buildroot}%{_mandir}/de.ISO8859-1/
|
2020-07-08 19:36:52 +02:00
|
|
|
rm -Rf %{buildroot}%{_mandir}/tr.ISO8859-9/
|
|
|
|
rm -Rf %{buildroot}%{_mandir}/tr.UTF-8/
|
2013-08-12 09:21:11 +02:00
|
|
|
|
2016-08-31 08:57:23 +02:00
|
|
|
# remove unnecessary files
|
|
|
|
rm -rf %{buildroot}%{_datadir}/applications/vim.desktop
|
|
|
|
rm -rf %{buildroot}%{_datadir}/icons/locolor
|
|
|
|
|
2007-07-27 02:13:53 +02:00
|
|
|
# and move russian manpages to a place where they can be found
|
|
|
|
mv %{buildroot}%{_mandir}/ru.UTF-8 %{buildroot}%{_mandir}/ru
|
2013-08-12 09:21:11 +02:00
|
|
|
|
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
|
2016-01-29 10:26:03 +01:00
|
|
|
|
|
|
|
# Remove sample server to avoid python dependency
|
|
|
|
rm %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/tools/demoserver.py
|
|
|
|
|
2011-11-23 15:47:03 +01:00
|
|
|
# Create ghost files (see vim.conf)
|
2017-03-21 09:18:32 +01:00
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/run/vi.recover
|
2011-04-18 17:03:21 +02:00
|
|
|
|
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
|
2006-12-15 17:15:12 +01:00
|
|
|
|
2019-12-13 12:10:26 +01:00
|
|
|
sed -i "s@%{_bindir}/env perl@%{_bindir}/perl@" %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/tools/*.pl
|
|
|
|
sed -i "s@%{_bindir}/env perl@%{_bindir}/perl@" %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/doc/vim2html.pl
|
2019-06-26 20:02:55 +02:00
|
|
|
|
2012-09-12 23:48:19 +02:00
|
|
|
%check
|
2016-11-22 07:13:13 +01:00
|
|
|
# vim does quite an extensive test relying on a full fledged terminal
|
|
|
|
# inside OBS, stdio is redirected to a serial console (where the build log
|
|
|
|
# is being recorded/extracted. Systemd set non-local tty by default to vt220
|
|
|
|
# in upcoming versions
|
2021-09-20 09:33:13 +02:00
|
|
|
export TERM=xterm
|
2014-03-24 15:38:11 +01:00
|
|
|
# Reset the terminal scrolling region left behind by the testsuite
|
2017-10-12 10:29:19 +02:00
|
|
|
trap "printf '\e[r'" EXIT
|
2012-09-12 23:48:19 +02:00
|
|
|
# Look for "TEST FAILURE" in the build log
|
2018-01-09 13:49:32 +01:00
|
|
|
%ifarch ppc ppc64 ppc64le
|
2018-01-17 15:32:22 +01:00
|
|
|
LC_ALL=en_US.UTF-8 make -j1 test || { echo "Ignore transient errors for PowerPC. boo#1072651"; }
|
2018-01-09 13:49:32 +01:00
|
|
|
%else
|
2018-01-17 15:32:22 +01:00
|
|
|
LC_ALL=en_US.UTF-8 make -j1 test
|
2018-01-09 13:49:32 +01:00
|
|
|
%endif
|
2012-09-12 23:48:19 +02:00
|
|
|
|
2021-10-31 11:07:10 +01:00
|
|
|
%if %{with libalternatives}
|
|
|
|
# with libalternatives
|
|
|
|
%pre
|
|
|
|
# removing old update-alternatives entries
|
|
|
|
if [ "$1" -gt 0 ] && [ -f %{_sbindir}/update-alternatives ] && [ ! -e %{_bindir}/vim-nox11 ]; then
|
2021-11-02 10:55:20 +01:00
|
|
|
%{_sbindir}/update-alternatives --remove vim %{_bindir}/vim-nox11
|
2021-10-31 11:07:10 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
%pre -n gvim
|
|
|
|
if [ "$1" -gt 0 ] && [ -f %{_sbindir}/update-alternatives ] && [ ! -e %{_bindir}/gvim ] ; then
|
|
|
|
%{_sbindir}/update-alternatives --remove vim %{_bindir}/gvim
|
|
|
|
fi
|
|
|
|
|
|
|
|
%pre small
|
|
|
|
if [ "$1" -gt 0 ] && [ -f %{_sbindir}/update-alternatives ] && [ ! -e %{_bindir}/vim-small ]; then
|
|
|
|
%{_sbindir}/update-alternatives --remove vim %{_bindir}/vim-small
|
|
|
|
fi
|
|
|
|
|
|
|
|
%post -n gvim
|
|
|
|
%icon_theme_cache_post
|
2021-11-02 10:55:20 +01:00
|
|
|
|
2021-10-31 11:07:10 +01:00
|
|
|
%postun -n gvim
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
%else
|
2021-11-02 10:55:20 +01:00
|
|
|
|
2021-10-31 11:07:10 +01:00
|
|
|
# without libalternatives
|
2017-03-11 11:02:37 +01:00
|
|
|
%post
|
2020-09-05 12:31:34 +02:00
|
|
|
%{_sbindir}/update-alternatives \
|
|
|
|
--install %{_bindir}/vim vim %{_bindir}/vim-nox11 20 \
|
|
|
|
--slave %{_bindir}/vi vi %{_bindir}/vim-nox11
|
2017-03-11 11:02:37 +01:00
|
|
|
|
2017-04-10 13:46:50 +02:00
|
|
|
%postun
|
|
|
|
if [ ! -e %{_bindir}/vim-nox11 ] ; then
|
2017-03-11 11:02:37 +01:00
|
|
|
%{_sbindir}/update-alternatives --remove vim %{_bindir}/vim-nox11
|
|
|
|
fi
|
|
|
|
|
2014-09-29 12:57:13 +02:00
|
|
|
%post -n gvim
|
2020-09-05 12:31:34 +02:00
|
|
|
%{_sbindir}/update-alternatives \
|
|
|
|
--install %{_bindir}/vim vim %{_bindir}/gvim 30 \
|
|
|
|
--slave %{_bindir}/vi vi %{_bindir}/gvim
|
|
|
|
|
2014-09-29 12:57:13 +02:00
|
|
|
%icon_theme_cache_post
|
|
|
|
|
2017-04-18 12:49:27 +02:00
|
|
|
%postun -n gvim
|
2017-04-10 13:46:50 +02:00
|
|
|
if [ ! -e %{_bindir}/gvim ] ; then
|
2017-03-11 11:02:37 +01:00
|
|
|
%{_sbindir}/update-alternatives --remove vim %{_bindir}/gvim
|
|
|
|
fi
|
2014-09-29 12:57:13 +02:00
|
|
|
%icon_theme_cache_postun
|
|
|
|
|
2020-05-14 17:24:57 +02:00
|
|
|
%post small
|
2020-09-05 12:31:34 +02:00
|
|
|
%{_sbindir}/update-alternatives \
|
|
|
|
--install %{_bindir}/vim vim %{_bindir}/vim-small 19 \
|
|
|
|
--slave %{_bindir}/vi vi %{_bindir}/vim-small
|
2020-05-14 17:24:57 +02:00
|
|
|
|
|
|
|
%postun small
|
2020-09-15 13:44:21 +02:00
|
|
|
if [ ! -e %{_bindir}/vim-small ] ; then
|
|
|
|
%{_sbindir}/update-alternatives --remove vim %{_bindir}/vim-small
|
|
|
|
fi
|
2021-10-31 11:07:10 +01:00
|
|
|
%endif
|
2020-05-14 17:24:57 +02:00
|
|
|
|
2007-04-24 23:36:59 +02:00
|
|
|
%files
|
2021-10-31 11:07:10 +01:00
|
|
|
%if ! %{with libalternatives}
|
2017-03-11 11:02:37 +01:00
|
|
|
%ghost %{_sysconfdir}/alternatives/vim
|
2020-09-05 12:31:34 +02:00
|
|
|
%ghost %{_sysconfdir}/alternatives/vi
|
2021-10-31 11:07:10 +01:00
|
|
|
%else
|
|
|
|
%dir %{_datadir}/libalternatives
|
|
|
|
%dir %{_datadir}/libalternatives/vi
|
|
|
|
%{_datadir}/libalternatives/vi/20.conf
|
|
|
|
%dir %{_datadir}/libalternatives/vim
|
|
|
|
%{_datadir}/libalternatives/vim/20.conf
|
2021-11-13 01:54:53 +01:00
|
|
|
%dir %{_datadir}/libalternatives/rvim
|
|
|
|
%{_datadir}/libalternatives/rvim/20.conf
|
|
|
|
%dir %{_datadir}/libalternatives/view
|
|
|
|
%{_datadir}/libalternatives/view/20.conf
|
|
|
|
%dir %{_datadir}/libalternatives/rview
|
|
|
|
%{_datadir}/libalternatives/rview/20.conf
|
|
|
|
%dir %{_datadir}/libalternatives/ex
|
|
|
|
%{_datadir}/libalternatives/ex/20.conf
|
|
|
|
%dir %{_datadir}/libalternatives/edit
|
|
|
|
%{_datadir}/libalternatives/edit/20.conf
|
|
|
|
%dir %{_datadir}/libalternatives/vimdiff
|
|
|
|
%{_datadir}/libalternatives/vimdiff/20.conf
|
2021-10-31 11:07:10 +01:00
|
|
|
%endif
|
2017-03-11 11:02:37 +01:00
|
|
|
%{_bindir}/vim-nox11
|
|
|
|
%{_bindir}/vim
|
2007-03-29 01:04:15 +02:00
|
|
|
# symlinks
|
2020-11-24 18:49:03 +01:00
|
|
|
%if !0%{?usrmerged}
|
2006-12-15 17:15:12 +01:00
|
|
|
/bin/vi
|
|
|
|
/bin/vim
|
2007-08-31 16:04:23 +02:00
|
|
|
/bin/ex
|
2020-11-24 18:49:03 +01:00
|
|
|
%endif
|
2007-03-29 01:04:15 +02:00
|
|
|
%{_bindir}/edit
|
|
|
|
%{_bindir}/ex
|
|
|
|
%{_bindir}/rview
|
|
|
|
%{_bindir}/rvim
|
|
|
|
%{_bindir}/vi
|
|
|
|
%{_bindir}/view
|
|
|
|
%{_bindir}/vimdiff
|
|
|
|
# additional binaries
|
|
|
|
%{_bindir}/vitmp
|
|
|
|
%{_bindir}/vimtutor
|
2019-10-18 08:55:27 +02:00
|
|
|
%{_bindir}/gvimtutor
|
2007-03-29 01:04:15 +02:00
|
|
|
%{_bindir}/xxd
|
|
|
|
# man pages
|
|
|
|
%{_mandir}/man1/*
|
2018-07-13 08:48:02 +02:00
|
|
|
%dir %{_mandir}/da
|
|
|
|
%dir %{_mandir}/da/man1/
|
|
|
|
%{_mandir}/da/man1/*
|
|
|
|
%dir %{_mandir}/de
|
|
|
|
%dir %{_mandir}/de/man1/
|
|
|
|
%{_mandir}/de/man1/*
|
2007-03-29 01:04:15 +02:00
|
|
|
%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/*
|
2013-08-12 09:21:11 +02:00
|
|
|
%dir %{_mandir}/ja
|
|
|
|
%dir %{_mandir}/ja/man1/
|
|
|
|
%{_mandir}/ja/man1/*
|
2020-07-08 19:36:52 +02:00
|
|
|
%dir %{_mandir}/tr
|
|
|
|
%dir %{_mandir}/tr/man1/
|
|
|
|
%{_mandir}/tr/man1/*
|
2007-03-29 01:04:15 +02:00
|
|
|
# docs and data file
|
2018-04-03 16:46:18 +02:00
|
|
|
%license LICENSE
|
2007-03-29 01:04:15 +02:00
|
|
|
%doc %{_docdir}/vim
|
|
|
|
#
|
|
|
|
%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/
|
2016-03-28 11:32:31 +02:00
|
|
|
%dir %{_datadir}/vim/%{VIM_SUBDIR}/pack/
|
2007-03-29 01:04:15 +02:00
|
|
|
%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-03-29 01:04:15 +02:00
|
|
|
|
|
|
|
%files data
|
2018-02-14 13:51:49 +01:00
|
|
|
# exclude common files
|
|
|
|
%exclude %{_datadir}/vim/%{VIM_SUBDIR}/autoload/dist/ft.vim
|
2021-11-22 10:14:03 +01:00
|
|
|
%exclude %{_datadir}/vim/%{VIM_SUBDIR}/colors/lists/default.vim
|
2018-02-14 13:51:49 +01:00
|
|
|
%exclude %{_datadir}/vim/%{VIM_SUBDIR}/syntax/nosyntax.vim
|
|
|
|
%exclude %{_datadir}/vim/%{VIM_SUBDIR}/syntax/resolv.vim
|
|
|
|
%exclude %{_datadir}/vim/%{VIM_SUBDIR}/syntax/sh.vim
|
|
|
|
%exclude %{_datadir}/vim/%{VIM_SUBDIR}/syntax/syncolor.vim
|
|
|
|
%exclude %{_datadir}/vim/%{VIM_SUBDIR}/syntax/synload.vim
|
|
|
|
%exclude %{_datadir}/vim/%{VIM_SUBDIR}/syntax/syntax.vim
|
|
|
|
%exclude %{_datadir}/vim/%{VIM_SUBDIR}/syntax/vim.vim
|
2007-03-29 01:04:15 +02:00
|
|
|
# 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/*
|
2016-03-28 11:42:01 +02:00
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/pack/*
|
2007-03-29 01:04:15 +02:00
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/plugin/*
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/print/*
|
2018-01-24 12:52:23 +01:00
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/skeletons/*
|
2007-03-29 01:04:15 +02:00
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/spell/*
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/syntax/*
|
2018-01-24 12:52:23 +01:00
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/tools/*
|
2007-03-29 01:04:15 +02:00
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/tutor/*
|
2018-02-14 13:51:49 +01:00
|
|
|
|
|
|
|
%files data-common
|
2020-07-01 12:57:16 +02:00
|
|
|
# we can't currently own /etc/vimrc. If we keep owning it, an
|
|
|
|
# existing, unmodified vimrc would not be removed. That results in a
|
|
|
|
# duplicated definition of SKEL_spec().
|
|
|
|
# see also https://github.com/rpm-software-management/rpm/issues/1296
|
|
|
|
#%ghost %config(noreplace) %{_sysconfdir}/vimrc
|
2020-06-23 10:44:43 +02:00
|
|
|
%{_datadir}/vim/current
|
|
|
|
%dir %{_datadir}/vim/
|
|
|
|
%dir %{_datadir}/vim/%{VIM_SUBDIR}/
|
|
|
|
%dir %{_datadir}/vim/%{VIM_SUBDIR}/autoload/
|
|
|
|
%dir %{_datadir}/vim/%{VIM_SUBDIR}/autoload/dist/
|
|
|
|
%dir %{_datadir}/vim/%{VIM_SUBDIR}/syntax/
|
2020-06-05 18:23:31 +02:00
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/suse.vimrc
|
2018-02-14 13:51:49 +01:00
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/autoload/dist/ft.vim
|
2021-11-22 10:14:03 +01:00
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/colors/lists/default.vim
|
2018-02-14 13:51:49 +01:00
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/syntax/nosyntax.vim
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/syntax/resolv.vim
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/syntax/sh.vim
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/syntax/syncolor.vim
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/syntax/synload.vim
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/syntax/syntax.vim
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/syntax/vim.vim
|
2018-01-24 12:52:23 +01:00
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/*.vim
|
2007-03-29 01:04:15 +02:00
|
|
|
|
2006-12-15 17:15:12 +01:00
|
|
|
%files -n gvim
|
2016-02-24 10:46:37 +01:00
|
|
|
%doc runtime/doc/gui_x11.txt
|
2011-04-18 17:03:21 +02:00
|
|
|
%ghost %config(missingok) %{_sysconfdir}/gvimrc
|
2021-10-31 11:07:10 +01:00
|
|
|
%if ! %{with libalternatives}
|
2017-03-11 11:02:37 +01:00
|
|
|
%ghost %{_sysconfdir}/alternatives/vim
|
2020-09-05 12:31:34 +02:00
|
|
|
%ghost %{_sysconfdir}/alternatives/vi
|
2021-10-31 11:07:10 +01:00
|
|
|
%else
|
|
|
|
%dir %{_datadir}/libalternatives
|
|
|
|
%dir %{_datadir}/libalternatives/vi
|
|
|
|
%{_datadir}/libalternatives/vi/30.conf
|
|
|
|
%dir %{_datadir}/libalternatives/vim
|
|
|
|
%{_datadir}/libalternatives/vim/30.conf
|
2021-11-13 01:54:53 +01:00
|
|
|
%dir %{_datadir}/libalternatives/rvim
|
|
|
|
%{_datadir}/libalternatives/rvim/30.conf
|
|
|
|
%dir %{_datadir}/libalternatives/view
|
|
|
|
%{_datadir}/libalternatives/view/30.conf
|
|
|
|
%dir %{_datadir}/libalternatives/rview
|
|
|
|
%{_datadir}/libalternatives/rview/30.conf
|
|
|
|
%dir %{_datadir}/libalternatives/eview
|
|
|
|
%{_datadir}/libalternatives/eview/30.conf
|
|
|
|
%dir %{_datadir}/libalternatives/ex
|
|
|
|
%{_datadir}/libalternatives/ex/30.conf
|
|
|
|
%dir %{_datadir}/libalternatives/edit
|
|
|
|
%{_datadir}/libalternatives/edit/30.conf
|
|
|
|
%dir %{_datadir}/libalternatives/vimdiff
|
|
|
|
%{_datadir}/libalternatives/vimdiff/30.conf
|
|
|
|
%dir %{_datadir}/libalternatives/egvim
|
|
|
|
%{_datadir}/libalternatives/egvim/30.conf
|
|
|
|
%dir %{_datadir}/libalternatives/egview
|
|
|
|
%{_datadir}/libalternatives/egview/30.conf
|
|
|
|
%dir %{_datadir}/libalternatives/evim
|
|
|
|
%{_datadir}/libalternatives/evim/30.conf
|
|
|
|
%dir %{_datadir}/libalternatives/gex
|
|
|
|
%{_datadir}/libalternatives/gex/30.conf
|
|
|
|
%dir %{_datadir}/libalternatives/gvi
|
|
|
|
%{_datadir}/libalternatives/gvi/30.conf
|
|
|
|
%dir %{_datadir}/libalternatives/gview
|
|
|
|
%{_datadir}/libalternatives/gview/30.conf
|
|
|
|
%dir %{_datadir}/libalternatives/gvimdiff
|
|
|
|
%{_datadir}/libalternatives/gvimdiff/30.conf
|
|
|
|
%dir %{_datadir}/libalternatives/rgvim
|
|
|
|
%{_datadir}/libalternatives/rgvim/30.conf
|
|
|
|
%dir %{_datadir}/libalternatives/rgview
|
|
|
|
%{_datadir}/libalternatives/rgview/30.conf
|
2021-10-31 11:07:10 +01:00
|
|
|
%endif
|
2020-09-05 12:31:34 +02:00
|
|
|
%{_bindir}/vi
|
2017-03-11 11:02:37 +01:00
|
|
|
%{_bindir}/vim
|
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
|
2014-09-29 12:57:13 +02:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/gvim.*
|
2013-08-16 14:26:53 +02:00
|
|
|
%doc %{_docdir}/gvim
|
2008-01-30 18:53:25 +01:00
|
|
|
|
2020-05-14 17:24:57 +02:00
|
|
|
%files small
|
|
|
|
%license LICENSE
|
2021-10-31 11:07:10 +01:00
|
|
|
%if ! %{with libalternatives}
|
2020-05-14 17:24:57 +02:00
|
|
|
%ghost %{_sysconfdir}/alternatives/vim
|
2020-09-05 12:31:34 +02:00
|
|
|
%ghost %{_sysconfdir}/alternatives/vi
|
2021-10-31 11:07:10 +01:00
|
|
|
%else
|
|
|
|
%dir %{_datadir}/libalternatives
|
|
|
|
%dir %{_datadir}/libalternatives/vi
|
|
|
|
%{_datadir}/libalternatives/vi/19.conf
|
|
|
|
%dir %{_datadir}/libalternatives/vim
|
|
|
|
%{_datadir}/libalternatives/vim/19.conf
|
|
|
|
%endif
|
2020-09-05 12:31:34 +02:00
|
|
|
%{_bindir}/vi
|
2020-05-14 17:24:57 +02:00
|
|
|
%{_bindir}/vim
|
|
|
|
%{_bindir}/vim-small
|
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
%changelog
|