This commit is contained in:
parent
1c77d5b3dd
commit
bbd56b4fa9
16
vim.changes
16
vim.changes
@ -1,3 +1,19 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 27 18:54:22 CEST 2007 - mrueckert@suse.de
|
||||||
|
|
||||||
|
- another minor layout change
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 27 14:58:20 CEST 2007 - mrueckert@suse.de
|
||||||
|
|
||||||
|
- add subdirs in /usr/share/vim/vim70/ to the base package
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 26 19:27:24 CEST 2007 - mrueckert@suse.de
|
||||||
|
|
||||||
|
- new package layout for the vim package to allow a smaller vim
|
||||||
|
installation in the minimal system (#239838)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Feb 2 23:49:38 CET 2007 - dmueller@suse.de
|
Fri Feb 2 23:49:38 CET 2007 - dmueller@suse.de
|
||||||
|
|
||||||
|
668
vim.spec
668
vim.spec
@ -11,20 +11,40 @@
|
|||||||
# norootforbuild
|
# norootforbuild
|
||||||
|
|
||||||
Name: vim
|
Name: vim
|
||||||
%define official_ptchlvl 188
|
Version: 7.0
|
||||||
BuildRequires: db-devel gettext-devel gpm gtk2-devel libacl-devel ncurses-devel python-devel ruby-devel tcl-devel update-alternatives update-desktop-files
|
Release: 58
|
||||||
|
#
|
||||||
License: Other License(s), see package
|
License: Other License(s), see package
|
||||||
Group: Productivity/Editors/Vi
|
Group: Productivity/Editors/Vi
|
||||||
Provides: vi_clone
|
#
|
||||||
Autoreqprov: on
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Version: 7.0
|
BuildRequires: db-devel gettext-devel gpm gtk2-devel libacl-devel ncurses-devel python-devel ruby-devel tcl-devel update-alternatives update-desktop-files
|
||||||
Release: 49
|
#
|
||||||
|
%define pkg_version 7.0
|
||||||
|
%define official_ptchlvl 188
|
||||||
%define VIM_SUBDIR vim70
|
%define VIM_SUBDIR vim70
|
||||||
Summary: Vi IMproved
|
%define make make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/current MAKE="make -e" %{?jobs:-j%jobs}
|
||||||
|
%define vim_prereq %{name} = %{version}
|
||||||
|
%if 0%{?with_splitted_gvim}
|
||||||
|
%define gvim_prereq g%{name}-base = %{version}
|
||||||
|
%else
|
||||||
|
%define gvim_prereq %{vim_prereq}
|
||||||
|
%endif
|
||||||
|
#
|
||||||
|
PreReq: sh-utils fileutils
|
||||||
|
PreReq: update-alternatives
|
||||||
|
Requires: vim_client
|
||||||
|
%if 0%{?suse_version} >= 1010
|
||||||
|
Recommends: vim-data = %{version}
|
||||||
|
%endif
|
||||||
|
Obsoletes: vim7-base
|
||||||
|
Provides: vi_clone
|
||||||
|
Obsoletes: vim7
|
||||||
|
#
|
||||||
URL: http://www.vim.org/
|
URL: http://www.vim.org/
|
||||||
Source: ftp://ftp.vim.org/pub/vim/unix/%{name}-%{version}.tar.bz2
|
Source: ftp://ftp.vim.org/pub/vim/unix/vim-%{pkg_version}.tar.bz2
|
||||||
Source1: ftp://ftp.vim.org/pub/vim/unix/%{name}-%{version}-lang.tar.bz2
|
Source1: ftp://ftp.vim.org/pub/vim/extra/vim-%{pkg_version}-extra.tar.bz2
|
||||||
Source2: ftp://ftp.vim.org/pub/vim/unix/%{name}-%{version}-extra.tar.bz2
|
Source2: ftp://ftp.vim.org/pub/vim/extra/vim-%{pkg_version}-lang.tar.bz2
|
||||||
Source3: suse.vimrc
|
Source3: suse.vimrc
|
||||||
Source4: vimrc_example1
|
Source4: vimrc_example1
|
||||||
Source5: vimrc_example2
|
Source5: vimrc_example2
|
||||||
@ -59,8 +79,7 @@ Patch16: %{name}-7.0-flex-array.diff
|
|||||||
# tbd??? %name-6.3-ga-utf8.diff
|
# tbd??? %name-6.3-ga-utf8.diff
|
||||||
# tbd??? %name-6.3-initvals.diff
|
# tbd??? %name-6.3-initvals.diff
|
||||||
# tbd??? vim64-svn-crash.patch
|
# tbd??? vim64-svn-crash.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
Summary: Vi IMproved
|
||||||
PreReq: sh-utils fileutils
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Vim (Vi IMproved) is an almost compatible version of the UNIX editor
|
Vim (Vi IMproved) is an almost compatible version of the UNIX editor
|
||||||
@ -74,9 +93,9 @@ of UNIX.
|
|||||||
|
|
||||||
For SuSE Linux, Vim is used as /usr/bin/vi.
|
For SuSE Linux, Vim is used as /usr/bin/vi.
|
||||||
|
|
||||||
Package vim contains the smallest set of features, which should even
|
Package vim contains the common files needed for all different vim
|
||||||
run in a minimal system. If you need more features, you might want to
|
versions. You still need to select at least one of the vim-normal,
|
||||||
install packages vim-enhanced or gvim.
|
vim-enhanced or gvim packages.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -84,31 +103,68 @@ Authors:
|
|||||||
--------
|
--------
|
||||||
Bram Moolenaar <bram@vim.org>
|
Bram Moolenaar <bram@vim.org>
|
||||||
|
|
||||||
%package -n gvim
|
%package data
|
||||||
Group: Productivity/Editors/Vi
|
Group: Productivity/Editors/Vi
|
||||||
Requires: vim
|
PreReq: %{vim_prereq}
|
||||||
Summary: A GUI for Vi
|
#
|
||||||
|
Summary: Vi IMproved
|
||||||
|
|
||||||
%description -n gvim
|
%description data
|
||||||
Start: /usr/X11R6/bin/gvim
|
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.
|
||||||
|
|
||||||
Copy and modify /usr/share/vim/current/gvimrc to ~/.gvimrc if needed.
|
Vi is available for the AMIGA, MS-DOS, Windows NT, and various versions
|
||||||
|
of UNIX.
|
||||||
|
|
||||||
Package gvim contains the largest set of features of vim, which is
|
For SuSE Linux, Vim is used as /usr/bin/vi.
|
||||||
graphical windows and language interpreter, like python, ruby, or perl.
|
|
||||||
You need package vim for the help and other documentation too. If you
|
Package vim-data contains the runtime files.
|
||||||
want less features, you might want to install packages vim-enhanced or
|
|
||||||
vim instead.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Authors:
|
Authors:
|
||||||
--------
|
--------
|
||||||
Bram Moolenaar <mool@oce.nl>
|
Bram Moolenaar <bram@vim.org>
|
||||||
|
|
||||||
|
%package normal
|
||||||
|
Group: Productivity/Editors/Vi
|
||||||
|
PreReq: %{vim_prereq}
|
||||||
|
Provides: vim_client
|
||||||
|
#Obsoletes: vim < 7.0.0
|
||||||
|
#
|
||||||
|
Summary: Vi IMproved
|
||||||
|
|
||||||
|
%description normal
|
||||||
|
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.
|
||||||
|
|
||||||
|
For SuSE Linux, Vim is used as /usr/bin/vi.
|
||||||
|
|
||||||
|
Package vim-normal contains the normal vim version.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Bram Moolenaar <bram@vim.org>
|
||||||
|
|
||||||
%package enhanced
|
%package enhanced
|
||||||
Group: Productivity/Editors/Vi
|
Group: Productivity/Editors/Vi
|
||||||
Requires: vim
|
PreReq: %{vim_prereq}
|
||||||
|
Provides: vi_clone
|
||||||
|
Provides: vim_client
|
||||||
|
Obsoletes: vim7-fat
|
||||||
|
Obsoletes: vim-fat
|
||||||
|
#
|
||||||
Summary: A version of the VIM editor which includes recent enhancements
|
Summary: A version of the VIM editor which includes recent enhancements
|
||||||
|
|
||||||
%description enhanced
|
%description enhanced
|
||||||
@ -129,6 +185,90 @@ Authors:
|
|||||||
--------
|
--------
|
||||||
Bram Moolenaar <bram@vim.org>
|
Bram Moolenaar <bram@vim.org>
|
||||||
|
|
||||||
|
%if 0%{?with_splitted_gvim}
|
||||||
|
%package -n gvim-base
|
||||||
|
Group: Productivity/Editors/Vi
|
||||||
|
PreReq: %{vim_prereq}
|
||||||
|
Requires: gvim_client
|
||||||
|
Obsoletes: vim7-base
|
||||||
|
#
|
||||||
|
Summary: A GUI for Vi
|
||||||
|
|
||||||
|
%description -n gvim-base
|
||||||
|
Start: /usr/X11R6/bin/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.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Bram Moolenaar <mool@oce.nl>
|
||||||
|
|
||||||
|
%package -n gvim-enhanced
|
||||||
|
Group: Productivity/Editors/Vi
|
||||||
|
PreReq: %{gvim_prereq}
|
||||||
|
Provides: vim_client
|
||||||
|
Provides: gvim_client
|
||||||
|
Provides: vi_clone
|
||||||
|
Obsoletes: gvim7
|
||||||
|
#
|
||||||
|
Summary: A GUI for Vi
|
||||||
|
|
||||||
|
%description -n gvim-enhanced
|
||||||
|
Start: /usr/X11R6/bin/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.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Bram Moolenaar <mool@oce.nl>
|
||||||
|
|
||||||
|
%endif
|
||||||
|
%package -n gvim
|
||||||
|
Group: Productivity/Editors/Vi
|
||||||
|
PreReq: %{gvim_prereq}
|
||||||
|
Requires: gvim_client
|
||||||
|
Provides: gvim-base = %{version}-%{release}
|
||||||
|
Provides: gvim-enhanced = %{version}-%{release}
|
||||||
|
Provides: gvim_client
|
||||||
|
Provides: vim_client
|
||||||
|
Provides: vi_clone
|
||||||
|
Obsoletes: gvim7
|
||||||
|
#
|
||||||
|
Summary: A GUI for Vi
|
||||||
|
|
||||||
|
%description -n gvim
|
||||||
|
Start: /usr/X11R6/bin/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.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Bram Moolenaar <mool@oce.nl>
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{VIM_SUBDIR} -b 1 -b 2
|
%setup -q -n %{VIM_SUBDIR} -b 1 -b 2
|
||||||
%patch
|
%patch
|
||||||
@ -147,198 +287,336 @@ Authors:
|
|||||||
%patch14
|
%patch14
|
||||||
%patch15 -p1
|
%patch15 -p1
|
||||||
%patch16
|
%patch16
|
||||||
cp $RPM_SOURCE_DIR/vimrc_example* .
|
cp %{S:3} %{S:4} %{S:5} %{S:6} %{S:8} %{S:9} %{S:10} .
|
||||||
cp $RPM_SOURCE_DIR/ANNOUNCEMENT* .
|
|
||||||
rename no nb $RPM_BUILD_DIR/vim*/src/po/no.*
|
rename no nb $RPM_BUILD_DIR/vim*/src/po/no.*
|
||||||
rename menu_no menu_nb $RPM_BUILD_DIR/vim*/runtime/lang/menu_no*
|
rename menu_no menu_nb $RPM_BUILD_DIR/vim*/runtime/lang/menu_no*
|
||||||
|
|
||||||
%build
|
%build
|
||||||
pushd src
|
export CFLAGS="%{optflags} -Wall -pipe -fno-strict-aliasing"
|
||||||
#----------------------------------
|
%if %suse_version > 1000
|
||||||
# build the small version of vim
|
export CFLAGS="$CFLAGS -fstack-protector-all"
|
||||||
#----------------------------------
|
%endif
|
||||||
CFLAGS="$RPM_OPT_FLAGS -Wall -pipe -fno-strict-aliasing -fstack-protector-all"
|
export COMMON_OPTIONS="\
|
||||||
export CFLAGS
|
--with-vim-name=vim \
|
||||||
./configure $RPM_ARCH-suse-linux \
|
--with-ex-name=ex \
|
||||||
--prefix=%{_prefix} \
|
--with-view-name=view \
|
||||||
--mandir=%{_mandir} \
|
|
||||||
--with-features=big \
|
|
||||||
--enable-cscope \
|
|
||||||
--enable-multibyte \
|
|
||||||
--with-compiledby='http://www.suse.de/' \
|
|
||||||
--disable-gpm \
|
|
||||||
--without-x \
|
|
||||||
--disable-gui \
|
|
||||||
--disable-perlinterp \
|
|
||||||
--disable-pythoninterp \
|
|
||||||
--disable-rubyinterp \
|
|
||||||
--disable-tclinterp
|
|
||||||
make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/current MAKE="make -e"
|
|
||||||
# The make install below is ugly, but is there another way to get the sources
|
|
||||||
# out of the way before the reconfigure?
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} STRIP=: install
|
|
||||||
#-----------------------------------
|
|
||||||
# build the enhanced version of vim
|
|
||||||
#-----------------------------------
|
|
||||||
make distclean
|
|
||||||
./configure $RPM_ARCH-suse-linux \
|
|
||||||
--prefix=%{_prefix} \
|
|
||||||
--mandir=%{_mandir} \
|
|
||||||
--with-features=huge \
|
|
||||||
--enable-cscope \
|
--enable-cscope \
|
||||||
--enable-multibyte \
|
--enable-multibyte \
|
||||||
--enable-sniff \
|
--enable-sniff \
|
||||||
--with-compiledby='http://www.suse.de/' \
|
--with-features=huge \
|
||||||
--with-vim-name=vim-enhanced \
|
--with-compiledby='http://www.opensuse.org/' \
|
||||||
--with-tclsh=%{_bindir}/tclsh \
|
--with-tlib=ncurses"
|
||||||
--enable-gui=no \
|
export SCRIPT_OPTIONS="\
|
||||||
--with-tlib=ncurses \
|
|
||||||
--enable-perlinterp \
|
--enable-perlinterp \
|
||||||
--enable-pythoninterp \
|
--enable-pythoninterp \
|
||||||
--enable-rubyinterp \
|
--enable-rubyinterp \
|
||||||
--enable-tclinterp \
|
--enable-tclinterp \
|
||||||
--disable-xim
|
|
||||||
make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/current MAKE="make -e"
|
|
||||||
# again the ugly hack to prevent loss of binaries in next "make distclean"
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} STRIP=: install
|
|
||||||
#-----------------------------------
|
|
||||||
# build the graphical version of vim
|
|
||||||
#-----------------------------------
|
|
||||||
make distclean
|
|
||||||
./configure $RPM_ARCH-suse-linux \
|
|
||||||
--prefix=%{_prefix} \
|
|
||||||
--bindir=%{_bindir} \
|
|
||||||
--mandir=%{_mandir} \
|
|
||||||
--with-features=huge \
|
|
||||||
--enable-cscope \
|
|
||||||
--enable-multibyte \
|
|
||||||
--enable-sniff \
|
|
||||||
--with-compiledby='http://www.suse.de/' \
|
|
||||||
--with-x \
|
|
||||||
--with-python-config-dir=%{py_libdir}/config \
|
|
||||||
--with-vim-name=gvim \
|
|
||||||
--with-tclsh=%{_bindir}/tclsh \
|
--with-tclsh=%{_bindir}/tclsh \
|
||||||
--with-tlib=ncurses \
|
--with-python-config-dir=%{py_libdir}/config"
|
||||||
|
# TODO:
|
||||||
|
# - if suse_version for gnome path
|
||||||
|
export GUI_OPTIONS="\
|
||||||
|
--enable-xim \
|
||||||
--enable-fontset \
|
--enable-fontset \
|
||||||
--enable-gui=gtk2 \
|
--enable-gnome-check \
|
||||||
--enable-max-features \
|
--with-xusetheXWindowSystem \
|
||||||
--enable-perlinterp \
|
--enable-gui=gnome2 \
|
||||||
--enable-pythoninterp \
|
--enable-gtk2-check \
|
||||||
--enable-xim
|
--with-gtk-prefix=/opt/gnome \
|
||||||
make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/current MAKE="make -e"
|
--with-gnome=/opt/gnome"
|
||||||
popd
|
#
|
||||||
gcc $RPM_OPT_FLAGS -Wall $RPM_SOURCE_DIR/vitmp.c -o vitmp
|
# build small default binary
|
||||||
|
%configure \
|
||||||
|
${COMMON_OPTIONS} --disable-gui --without-x --disable-gpm \
|
||||||
|
--disable-perlinterp --disable-pythoninterp \
|
||||||
|
--disable-rubyinterp --disable-tclinterp
|
||||||
|
|
||||||
|
%make
|
||||||
|
%{__cp} src/vim vim-normal
|
||||||
|
%{__make} distclean
|
||||||
|
#
|
||||||
|
# build enhanced binary
|
||||||
|
%configure ${COMMON_OPTIONS} ${SCRIPT_OPTIONS} --disable-gui
|
||||||
|
|
||||||
|
%make
|
||||||
|
%{__cp} src/vim vim-enhanced
|
||||||
|
%{__make} distclean
|
||||||
|
#
|
||||||
|
# build enhanced gvim binary
|
||||||
|
%configure ${COMMON_OPTIONS} ${SCRIPT_OPTIONS} ${GUI_OPTIONS}
|
||||||
|
%if 0%{?with_splitted_gvim}
|
||||||
|
|
||||||
|
%make
|
||||||
|
%{__cp} src/vim gvim-enhanced
|
||||||
|
%{__make} distclean
|
||||||
|
#
|
||||||
|
# build gvim binary
|
||||||
|
%configure ${COMMON_OPTIONS} ${GUI_OPTIONS}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%make
|
||||||
|
#
|
||||||
|
# build vitmp
|
||||||
|
gcc %{optflags} %{S:13} -o vitmp
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make -C src DESTDIR=$RPM_BUILD_ROOT \
|
%makeinstall STRIP=:
|
||||||
BINDIR=%{_bindir} \
|
# the last installed binary is gvim. preserve it and
|
||||||
MANDIR=%{_mandir} \
|
# fix its symlinks. e* was added here as it doesnt make much sense in
|
||||||
STRIP=: \
|
# console
|
||||||
install
|
%{__mv} -v %{buildroot}%{_bindir}/{vim,gvim-normal}
|
||||||
mkdir -p $RPM_BUILD_ROOT/bin
|
for f in egvim egview eview evim gex gvi gview gvimdiff rgview rgvim ; do
|
||||||
mv $RPM_BUILD_ROOT/usr/bin/vim $RPM_BUILD_ROOT/bin/vim
|
%{__ln_s} -vf gvim %{buildroot}%{_bindir}/$f
|
||||||
ln -sf ../../bin/vim $RPM_BUILD_ROOT/usr/bin/vim
|
done
|
||||||
ln -sf vim $RPM_BUILD_ROOT/bin/ex
|
#
|
||||||
ln -sf vim $RPM_BUILD_ROOT/bin/vi
|
# install the other binaries
|
||||||
ln -sf vim $RPM_BUILD_ROOT/usr/bin/edit
|
%{__install} -D -m 0755 vim-normal %{buildroot}/bin/vim-normal
|
||||||
ln -sf vim $RPM_BUILD_ROOT/usr/bin/ex
|
%{__install} -D -m 0755 vim-enhanced %{buildroot}%{_bindir}/vim-enhanced
|
||||||
ln -sf vim $RPM_BUILD_ROOT/usr/bin/vi
|
%if 0%{?with_splitted_gvim}
|
||||||
ln -sf vim $RPM_BUILD_ROOT/usr/bin/view
|
%{__install} -D -m 0755 gvim-enhanced %{buildroot}%{_bindir}/gvim-enhanced
|
||||||
ln -sf vim $RPM_BUILD_ROOT/usr/bin/vimdiff
|
%endif
|
||||||
ln -sf gvim $RPM_BUILD_ROOT/usr/bin/gex
|
# compat symlinks
|
||||||
ln -sf gvim $RPM_BUILD_ROOT/usr/bin/gvi
|
%{__ln_s} -f /bin/vim-normal %{buildroot}/bin/vim
|
||||||
ln -sf gvim $RPM_BUILD_ROOT/usr/bin/gview
|
%{__ln_s} -f /bin/vim %{buildroot}/bin/vi
|
||||||
ln -sf gvim $RPM_BUILD_ROOT/usr/bin/rgview
|
%{__ln_s} -f /bin/vim %{buildroot}%{_bindir}/vim
|
||||||
ln -sf gvim $RPM_BUILD_ROOT/usr/bin/rgvim
|
%{__ln_s} -f /bin/vim %{buildroot}%{_bindir}/vi
|
||||||
ln -sf gvim $RPM_BUILD_ROOT/usr/bin/evim
|
%{__ln_s} -f vim %{buildroot}%{_bindir}/edit
|
||||||
ln -sf gvim $RPM_BUILD_ROOT/usr/bin/egvim
|
#
|
||||||
ln -sf gvim $RPM_BUILD_ROOT/usr/bin/eview
|
# man pages
|
||||||
ln -sf gvim $RPM_BUILD_ROOT/usr/bin/gvimdiff
|
%{__ln_s} -f vim.1.gz %{buildroot}%{_mandir}/man1/vi.1.gz
|
||||||
ln -sf vim.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/vi.1.gz
|
%{__ln_s} -f vim.1.gz %{buildroot}%{_mandir}/man1/ex.1.gz
|
||||||
ln -sf vim.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/ex.1.gz
|
#
|
||||||
ln -sf %{VIM_SUBDIR} $RPM_BUILD_ROOT/usr/share/vim/current
|
# vitmp
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc
|
%{__install} -m 0755 vitmp %{buildroot}%{_bindir}/vitmp
|
||||||
install -m 0644 $RPM_SOURCE_DIR/suse.vimrc $RPM_BUILD_ROOT/etc/vimrc
|
%{__install} -m 0644 %{S:14} %{buildroot}%{_mandir}/man1/vitmp.1
|
||||||
install -m 0644 runtime/gvimrc_example.vim $RPM_BUILD_ROOT/etc/gvimrc
|
%{__install} -m 0755 %{S:15} %{buildroot}/usr/share/vim/%{VIM_SUBDIR}/tools/vim132
|
||||||
install -m 0644 $RPM_SOURCE_DIR/ppd.vim $RPM_BUILD_ROOT/usr/share/vim/%{VIM_SUBDIR}/syntax
|
#
|
||||||
install -m 0644 $RPM_SOURCE_DIR/ycp.vim $RPM_BUILD_ROOT/usr/share/vim/%{VIM_SUBDIR}/syntax
|
# make the vim settings more generic
|
||||||
install -m 0644 $RPM_SOURCE_DIR/changes.vim $RPM_BUILD_ROOT/usr/share/vim/%{VIM_SUBDIR}/syntax
|
%{__ln_s} -f %{VIM_SUBDIR} %{buildroot}%{_datadir}/vim/current
|
||||||
install -m 0644 %{SOURCE17} $RPM_BUILD_ROOT/usr/share/vim/%{VIM_SUBDIR}/syntax
|
# additional files
|
||||||
install -m 0755 $RPM_SOURCE_DIR/vim132 $RPM_BUILD_ROOT/usr/share/vim/%{VIM_SUBDIR}/tools/vim132
|
%{__install} -m 0644 %{S:7} %{S:11} %{S:12} \
|
||||||
cp %{SOURCE8} .
|
%{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/syntax
|
||||||
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/*ggvim*
|
%{__install} -D -m 0644 %{S:3} %{buildroot}/etc/vimrc
|
||||||
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/gvimtutor*
|
%{__install} -D -m 0644 %{S:8} %{buildroot}/etc/gvimrc
|
||||||
install -m 755 vitmp $RPM_BUILD_ROOT/bin/
|
# desktop file for gvim
|
||||||
install -m 644 $RPM_SOURCE_DIR/vitmp.1 $RPM_BUILD_ROOT%{_mandir}/man1/
|
%suse_update_desktop_file -i gvim TextEditor
|
||||||
rm -f $RPM_BUILD_ROOT/usr/bin/gvimtutor $RPM_BUILD_ROOT/usr/X11R6/bin/xxd
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT//usr/share/pixmaps
|
# documentation
|
||||||
install -m 644 %{SOURCE16} $RPM_BUILD_ROOT/usr/share/pixmaps/
|
%{__install} -d -m 0755 %{buildroot}%{_docdir}/{,g}vim/
|
||||||
%suse_update_desktop_file -i gvim TextEditor 2> /dev/null
|
%{__install} -D -m 0644 \
|
||||||
rm -f $RPM_BUILD_ROOT/usr/bin/ggvim
|
vimrc_example1 vimrc_example2 suse.vimrc \
|
||||||
rm -f $RPM_BUILD_ROOT/usr/bin/ggvimdiff
|
README.txt README_src.txt README_unix.txt README_lang.txt src/INSTALL ANNOUNCEMENT.vim-7.0 \
|
||||||
rm -f $RPM_BUILD_ROOT/usr/bin/rggvim
|
%{buildroot}%{_docdir}/vim/
|
||||||
rm -f $RPM_BUILD_ROOT/usr/bin/evim-enhanced
|
# gvim
|
||||||
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/evim-enhanced*
|
%{__install} -D -m 0644 \
|
||||||
rm -f $RPM_BUILD_ROOT/usr/share/man/*/man1/evim-enhanced*
|
README.SuSE README.Japanese-XIM runtime/gvimrc_example.vim suse.gvimrc \
|
||||||
rm -f $RPM_BUILD_ROOT/usr/bin/rvim-enhanced
|
%{buildroot}%{_docdir}/gvim/
|
||||||
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/rvim-enhanced*
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/share/man/*/man1/rvim-enhanced*
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/bin/vim-enhanceddiff
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/vim-enhanceddiff*
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/share/man/*/man1/vim-enhanceddiff*
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/bin/vim-enhancedtutor
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/vim-enhancedtutor*
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/share/man/*/man1/vim-enhancedtutor*
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT;
|
%{__rm} -rf %{buildroot}
|
||||||
|
# link name | name | binary | priority
|
||||||
|
|
||||||
|
%post normal
|
||||||
|
/usr/sbin/update-alternatives --install \
|
||||||
|
/bin/vim vim /bin/vim-normal 15
|
||||||
|
|
||||||
|
%post enhanced
|
||||||
|
/usr/sbin/update-alternatives --install \
|
||||||
|
/bin/vim vim %{_bindir}/vim-enhanced 20
|
||||||
|
|
||||||
|
%post -n gvim
|
||||||
|
/usr/sbin/update-alternatives --install \
|
||||||
|
/bin/vim vim %{_bindir}/gvim 5
|
||||||
|
/usr/sbin/update-alternatives --install \
|
||||||
|
%{_bindir}/gvim gvim %{_bindir}/gvim-normal 5
|
||||||
|
%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
|
||||||
|
|
||||||
|
%preun normal
|
||||||
|
if [ "$1" = 0 ] ; then
|
||||||
|
/usr/sbin/update-alternatives --remove vim /bin/vim-normal
|
||||||
|
fi
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
%files normal
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
/bin/vim-normal
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,-)
|
||||||
%config /etc/vimrc
|
%ghost %config(missingok) /etc/vimrc
|
||||||
/bin/ex
|
# symlinks
|
||||||
/bin/vi
|
/bin/vi
|
||||||
/bin/vim
|
/bin/vim
|
||||||
/bin/vitmp
|
%{_bindir}/edit
|
||||||
/usr/bin/edit
|
%{_bindir}/ex
|
||||||
/usr/bin/ex
|
%{_bindir}/rview
|
||||||
/usr/bin/vi
|
%{_bindir}/rvim
|
||||||
/usr/bin/view
|
%{_bindir}/vi
|
||||||
/usr/bin/vim
|
%{_bindir}/vim
|
||||||
/usr/bin/xxd
|
%{_bindir}/view
|
||||||
/usr/bin/rview
|
%{_bindir}/vimdiff
|
||||||
/usr/bin/rvim
|
# additional binaries
|
||||||
/usr/bin/vimtutor
|
%{_bindir}/vitmp
|
||||||
/usr/bin/vimdiff
|
%{_bindir}/vimtutor
|
||||||
/usr/share/vim
|
%{_bindir}/xxd
|
||||||
%doc ANNOUNCEMENT*
|
# man pages
|
||||||
%doc README.txt README_src.txt README_unix.txt README_lang.txt src/INSTALL
|
%{_mandir}/man1/*
|
||||||
%doc vimrc_example1 vimrc_example2
|
%dir %{_mandir}/fr
|
||||||
%doc %{_mandir}/man1/*.1*
|
%dir %{_mandir}/fr/man1/
|
||||||
%doc %{_mandir}/[a-ln-z]*
|
%{_mandir}/fr/man1/*
|
||||||
|
%dir %{_mandir}/fr.ISO8859-1
|
||||||
|
%dir %{_mandir}/fr.ISO8859-1/man1/
|
||||||
|
%{_mandir}/fr.ISO8859-1/man1/*
|
||||||
|
%dir %{_mandir}/fr.UTF-8
|
||||||
|
%dir %{_mandir}/fr.UTF-8/man1/
|
||||||
|
%{_mandir}/fr.UTF-8/man1/*
|
||||||
|
%dir %{_mandir}/it
|
||||||
|
%dir %{_mandir}/it/man1/
|
||||||
|
%{_mandir}/it/man1/*
|
||||||
|
%dir %{_mandir}/it.ISO8859-1
|
||||||
|
%dir %{_mandir}/it.ISO8859-1/man1/
|
||||||
|
%{_mandir}/it.ISO8859-1/man1/*
|
||||||
|
%dir %{_mandir}/it.UTF-8
|
||||||
|
%dir %{_mandir}/it.UTF-8/man1/
|
||||||
|
%{_mandir}/it.UTF-8/man1/*
|
||||||
|
%dir %{_mandir}/ru.KOI8-R
|
||||||
|
%dir %{_mandir}/ru.KOI8-R/man1/
|
||||||
|
%{_mandir}/ru.KOI8-R/man1/*
|
||||||
|
%dir %{_mandir}/ru.UTF-8
|
||||||
|
%dir %{_mandir}/ru.UTF-8/man1/
|
||||||
|
%{_mandir}/ru.UTF-8/man1/*
|
||||||
|
%dir %{_mandir}/pl.UTF-8
|
||||||
|
%dir %{_mandir}/pl.UTF-8/man1/
|
||||||
|
%{_mandir}/pl.UTF-8/man1/*
|
||||||
|
%dir %{_mandir}/pl
|
||||||
|
%dir %{_mandir}/pl/man1/
|
||||||
|
%{_mandir}/pl/man1/*
|
||||||
|
%dir %{_mandir}/pl.ISO8859-2
|
||||||
|
%dir %{_mandir}/pl.ISO8859-2/man1/
|
||||||
|
%{_mandir}/pl.ISO8859-2/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/
|
||||||
|
|
||||||
%files -n gvim
|
%files data
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,-)
|
||||||
%ghost %config(missingok) /etc/gvimrc
|
# data files
|
||||||
/usr/share/applications/gvim.desktop
|
%{_datadir}/vim/%{VIM_SUBDIR}/autoload/*
|
||||||
/usr/share/pixmaps/gvim.png
|
%{_datadir}/vim/%{VIM_SUBDIR}/colors/*
|
||||||
/usr/bin/gex
|
%{_datadir}/vim/%{VIM_SUBDIR}/compiler/*
|
||||||
/usr/bin/gvi
|
%{_datadir}/vim/%{VIM_SUBDIR}/doc/*
|
||||||
/usr/bin/gview
|
%{_datadir}/vim/%{VIM_SUBDIR}/ftplugin/*
|
||||||
/usr/bin/gvim
|
%{_datadir}/vim/%{VIM_SUBDIR}/indent/*
|
||||||
/usr/bin/rgview
|
%{_datadir}/vim/%{VIM_SUBDIR}/keymap/*
|
||||||
/usr/bin/rgvim
|
%{_datadir}/vim/%{VIM_SUBDIR}/lang/*
|
||||||
/usr/bin/evim
|
%{_datadir}/vim/%{VIM_SUBDIR}/macros/*
|
||||||
/usr/bin/egvim
|
%{_datadir}/vim/%{VIM_SUBDIR}/plugin/*
|
||||||
/usr/bin/gvimdiff
|
%{_datadir}/vim/%{VIM_SUBDIR}/print/*
|
||||||
/usr/bin/eview
|
%{_datadir}/vim/%{VIM_SUBDIR}/spell/*
|
||||||
%doc $RPM_SOURCE_DIR/README.SuSE $RPM_SOURCE_DIR/README.Japanese-XIM runtime/gvimrc_example.vim suse.gvimrc
|
%{_datadir}/vim/%{VIM_SUBDIR}/syntax/*
|
||||||
|
%{_datadir}/vim/%{VIM_SUBDIR}/tools/*
|
||||||
|
%{_datadir}/vim/%{VIM_SUBDIR}/tutor/*
|
||||||
|
%{_datadir}/vim/%{VIM_SUBDIR}/bugreport.vim
|
||||||
|
%{_datadir}/vim/%{VIM_SUBDIR}/delmenu.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}/gvimrc_example.vim
|
||||||
|
%{_datadir}/vim/%{VIM_SUBDIR}/indent.vim
|
||||||
|
%{_datadir}/vim/%{VIM_SUBDIR}/indoff.vim
|
||||||
|
%{_datadir}/vim/%{VIM_SUBDIR}/menu.vim
|
||||||
|
%{_datadir}/vim/%{VIM_SUBDIR}/mswin.vim
|
||||||
|
%{_datadir}/vim/%{VIM_SUBDIR}/optwin.vim
|
||||||
|
%{_datadir}/vim/%{VIM_SUBDIR}/scripts.vim
|
||||||
|
%{_datadir}/vim/%{VIM_SUBDIR}/synmenu.vim
|
||||||
|
%{_datadir}/vim/%{VIM_SUBDIR}/vimrc_example.vim
|
||||||
|
|
||||||
%files enhanced
|
%files enhanced
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,-)
|
||||||
/usr/bin/vim-enhanced
|
%{_bindir}/vim-enhanced
|
||||||
|
|
||||||
%changelog -n vim
|
%files -n gvim
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_bindir}/gvim-normal
|
||||||
|
%if 0%{?with_splitted_gvim}
|
||||||
|
|
||||||
|
%files -n gvim-base
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%endif
|
||||||
|
%doc %{_docdir}/gvim
|
||||||
|
%ghost %config(missingok) /etc/gvimrc
|
||||||
|
%{_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
|
||||||
|
%{_datadir}/pixmaps/gvim.png
|
||||||
|
%if 0%{?with_splitted_gvim}
|
||||||
|
|
||||||
|
%files -n gvim-enhanced
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_bindir}/gvim-enhanced
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Mar 27 2007 - mrueckert@suse.de
|
||||||
|
- another minor layout change
|
||||||
|
* Tue Mar 27 2007 - mrueckert@suse.de
|
||||||
|
- add subdirs in /usr/share/vim/vim70/ to the base package
|
||||||
|
* Mon Mar 26 2007 - mrueckert@suse.de
|
||||||
|
- new package layout for the vim package to allow a smaller vim
|
||||||
|
installation in the minimal system (#239838)
|
||||||
* Fri Feb 02 2007 - dmueller@suse.de
|
* Fri Feb 02 2007 - dmueller@suse.de
|
||||||
- fix fortify workaround
|
- fix fortify workaround
|
||||||
* Wed Jan 24 2007 - mkoenig@suse.de
|
* Wed Jan 24 2007 - mkoenig@suse.de
|
||||||
|
Loading…
Reference in New Issue
Block a user