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
|
|
|
#
|
2016-01-04 11:44:08 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX 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
|
|
|
|
2016-09-12 15:27:23 +02:00
|
|
|
%define pkg_version 8.0
|
2016-09-12 16:44:15 +02:00
|
|
|
%define patchlevel 0002
|
2016-09-12 15:27:23 +02:00
|
|
|
%define VIM_SUBDIR vim80
|
2012-03-24 21:06:36 +01:00
|
|
|
%define site_runtimepath /usr/share/vim/site
|
2013-08-16 14:26:53 +02:00
|
|
|
%define make make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/current MAKE="make -e" %{?_smp_mflags}
|
2012-03-24 21:06:36 +01:00
|
|
|
|
2006-12-15 17:15:12 +01:00
|
|
|
Name: vim
|
2016-09-12 15:27:23 +02:00
|
|
|
Version: 8.0.%{patchlevel}
|
2011-12-21 11:58:43 +01:00
|
|
|
Release: 0
|
2015-02-20 10:59:18 +01:00
|
|
|
BuildRequires: autoconf
|
2011-04-18 17:03:21 +02:00
|
|
|
BuildRequires: db-devel
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gettext-devel
|
2015-02-20 10:59:18 +01:00
|
|
|
BuildRequires: gpm-devel
|
2016-03-16 12:22:21 +01:00
|
|
|
BuildRequires: gtk3-devel
|
2012-02-19 20:11:32 +01:00
|
|
|
%if 0%{?suse_version} > 1200
|
|
|
|
BuildRequires: pkgconfig(xt)
|
|
|
|
%endif
|
2013-06-17 15:06:32 +02:00
|
|
|
BuildRequires: krb5-mini
|
2013-02-21 22:22:44 +01:00
|
|
|
BuildRequires: libacl-devel
|
2013-08-16 14:26:53 +02:00
|
|
|
BuildRequires: lua-devel
|
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
|
2013-08-16 14:26:53 +02:00
|
|
|
BuildRequires: python3-devel
|
2014-09-29 12:57:13 +02:00
|
|
|
# Needed to convert svg to png
|
|
|
|
BuildRequires: rsvg-view
|
2011-04-18 17:03:21 +02:00
|
|
|
BuildRequires: ruby-devel
|
|
|
|
BuildRequires: update-desktop-files
|
2007-03-29 01:04:15 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-04-18 17:03:21 +02:00
|
|
|
PreReq: fileutils
|
|
|
|
PreReq: sh-utils
|
2016-06-03 19:19:43 +02:00
|
|
|
%{?libperl_requires}
|
2008-02-01 01:34:08 +01:00
|
|
|
Provides: vi
|
2013-08-16 14:26:53 +02:00
|
|
|
Provides: vim-base = %{version}-%{release}
|
|
|
|
Provides: vim-enhanced = %{version}-%{release}
|
|
|
|
Provides: vim-python = %{version}-%{release}
|
2013-08-17 10:46:27 +02:00
|
|
|
Obsoletes: vim-base < %{version}-%{release}
|
|
|
|
Obsoletes: vim-enhanced < %{version}-%{release}
|
|
|
|
Obsoletes: vim-python < %{version}-%{release}
|
2012-02-19 20:11:32 +01:00
|
|
|
Provides: vim_client
|
2013-08-16 14:26:53 +02:00
|
|
|
Recommends: vim-data = %{version}-%{release}
|
2011-04-18 17:03:21 +02:00
|
|
|
Summary: Vi IMproved
|
2014-08-29 11:48:28 +02:00
|
|
|
License: Vim
|
2011-12-21 11:58:43 +01:00
|
|
|
Group: Productivity/Editors/Vi
|
2007-10-05 00:39:30 +02:00
|
|
|
Url: http://www.vim.org/
|
2015-09-01 11:14:52 +02:00
|
|
|
Source: https://github.com/vim/vim/archive/v%{version}.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-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
|
2011-01-10 16:38:12 +01:00
|
|
|
Source23: apparmor.vim
|
2014-09-29 12:57:13 +02:00
|
|
|
Source24: gvim.svg
|
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
|
2016-02-22 14:18:20 +01:00
|
|
|
Patch100: 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-03-29 01:04:15 +02:00
|
|
|
%package data
|
|
|
|
Summary: Vi IMproved
|
2011-12-23 12:22:21 +01:00
|
|
|
Group: Productivity/Editors/Vi
|
2010-02-11 13:42:04 +01:00
|
|
|
BuildArch: noarch
|
2012-10-02 14:54:23 +02:00
|
|
|
# Used to be in vim-plugins package
|
|
|
|
Obsoletes: vim-plugin-matchit <= 1.13.2
|
|
|
|
Provides: vim-plugin-matchit = 1.13.2
|
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-03-29 01:04:15 +02:00
|
|
|
%package -n gvim
|
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
|
|
|
Requires: gvim_client
|
2012-12-18 11:56:56 +01:00
|
|
|
Requires: vim-data
|
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
|
|
|
|
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
|
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
|
|
|
|
2006-12-15 17:15:12 +01:00
|
|
|
%prep
|
2015-09-01 11:14:52 +02:00
|
|
|
%setup -q -n %{name}-%{version}
|
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
|
2009-02-26 12:46:59 +01:00
|
|
|
%patch100 -p1
|
2013-08-12 09:21:11 +02:00
|
|
|
cp %{SOURCE3} %{SOURCE4} %{SOURCE5} %{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 \
|
|
|
|
--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
|
2013-08-16 14:26:53 +02:00
|
|
|
--with-global-runtime=%{site_runtimepath} \
|
|
|
|
--enable-luainterp=dynamic \
|
2016-06-03 20:55:17 +02:00
|
|
|
--enable-perlinterp=yes \
|
2013-08-16 14:26:53 +02:00
|
|
|
--enable-pythoninterp=dynamic \
|
|
|
|
--enable-python3interp=dynamic \
|
|
|
|
--enable-rubyinterp=dynamic"
|
|
|
|
|
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
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
# build vim
|
2014-02-26 21:02:33 +01:00
|
|
|
%configure ${COMMON_OPTIONS} --disable-gui --disable-gpm
|
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
|
2013-08-16 14:26:53 +02:00
|
|
|
cp src/vim vim
|
|
|
|
|
|
|
|
# build gvim
|
2011-04-18 17:03:21 +02:00
|
|
|
make distclean
|
2007-03-29 01:04:15 +02:00
|
|
|
%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
|
|
|
%make
|
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
|
2007-03-29 01:04:15 +02:00
|
|
|
%makeinstall STRIP=:
|
2014-09-29 12:57:13 +02:00
|
|
|
# create icon directory to have the icons installed and convert them to all hicolor expected sizes.
|
|
|
|
for size in %{_datadir}/icons/hicolor/*[0-9]x[0-9]*; do
|
|
|
|
SIZE=$(echo $size | awk -Fx {'print $2}')
|
|
|
|
install -d -m 0755 %{buildroot}%{_datadir}/icons/hicolor/${SIZE}x${SIZE}/apps
|
|
|
|
rsvg-convert -h ${SIZE} -w ${SIZE} %{S:24} -o %{buildroot}%{_datadir}/icons/hicolor/${SIZE}x${SIZE}/apps/gvim.png
|
|
|
|
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
|
|
|
|
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
|
2013-08-16 14:26:53 +02:00
|
|
|
mv %{buildroot}%{_bindir}/vim %{buildroot}%{_bindir}/gvim
|
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
|
|
|
|
2013-08-16 14:26:53 +02:00
|
|
|
# install vim
|
|
|
|
install -D -m 0755 vim %{buildroot}/bin/vim
|
2011-11-07 13:59:59 +01:00
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
# compat symlinks
|
2011-04-18 17:03:21 +02:00
|
|
|
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
|
2013-08-16 14:26:53 +02:00
|
|
|
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
|
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
|
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 \
|
2016-03-22 12:35:50 +01:00
|
|
|
LICENSE 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/
|
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
|
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/
|
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)
|
|
|
|
mkdir -p %{buildroot}/var/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
|
|
|
|
2012-09-12 23:48:19 +02:00
|
|
|
%check
|
2014-03-24 15:38:11 +01:00
|
|
|
# Reset the terminal scrolling region left behind by the testsuite
|
|
|
|
trap "printf '\e[r'" EXIT
|
2012-09-12 23:48:19 +02:00
|
|
|
# Look for "TEST FAILURE" in the build log
|
2013-08-12 09:21:11 +02:00
|
|
|
make test
|
2012-09-12 23:48:19 +02:00
|
|
|
|
2014-09-29 12:57:13 +02:00
|
|
|
%post -n gvim
|
|
|
|
%icon_theme_cache_post
|
|
|
|
|
|
|
|
%postun -n gvim
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
|
2007-04-24 23:36:59 +02:00
|
|
|
%files
|
2007-03-29 01:04:15 +02:00
|
|
|
%defattr(-,root,root,-)
|
2011-04-18 17:03:21 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/vimrc
|
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/*
|
2013-08-12 09:21:11 +02:00
|
|
|
%dir %{_mandir}/ja
|
|
|
|
%dir %{_mandir}/ja/man1/
|
|
|
|
%{_mandir}/ja/man1/*
|
2007-03-29 01:04:15 +02:00
|
|
|
# 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/
|
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-06-05 01:15:56 +02:00
|
|
|
#
|
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/bugreport.vim
|
2016-08-16 10:19:43 +02:00
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/defaults.vim
|
2007-06-05 01:15:56 +02:00
|
|
|
%{_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
|
2016-04-23 12:41:55 +02:00
|
|
|
%{_datadir}/vim/%{VIM_SUBDIR}/rgb.txt
|
2007-06-05 01:15:56 +02:00
|
|
|
%{_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/*
|
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/*
|
|
|
|
%{_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
|
|
|
|
|
2006-12-15 17:15:12 +01:00
|
|
|
%files -n gvim
|
2007-03-29 01:04:15 +02:00
|
|
|
%defattr(-,root,root,-)
|
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
|
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
|
|
|
|
2007-03-29 01:04:15 +02:00
|
|
|
%changelog
|