OBS User unknown 2007-03-28 23:04:15 +00:00 committed by Git OBS Bridge
parent 1c77d5b3dd
commit bbd56b4fa9
2 changed files with 498 additions and 204 deletions

View File

@ -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

686
vim.spec
View File

@ -11,20 +11,40 @@
# norootforbuild
Name: vim
%define official_ptchlvl 188
BuildRequires: db-devel gettext-devel gpm gtk2-devel libacl-devel ncurses-devel python-devel ruby-devel tcl-devel update-alternatives update-desktop-files
Version: 7.0
Release: 58
#
License: Other License(s), see package
Group: Productivity/Editors/Vi
Provides: vi_clone
Autoreqprov: on
Version: 7.0
Release: 49
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: db-devel gettext-devel gpm gtk2-devel libacl-devel ncurses-devel python-devel ruby-devel tcl-devel update-alternatives update-desktop-files
#
%define pkg_version 7.0
%define official_ptchlvl 188
%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/
Source: ftp://ftp.vim.org/pub/vim/unix/%{name}-%{version}.tar.bz2
Source1: ftp://ftp.vim.org/pub/vim/unix/%{name}-%{version}-lang.tar.bz2
Source2: ftp://ftp.vim.org/pub/vim/unix/%{name}-%{version}-extra.tar.bz2
Source: ftp://ftp.vim.org/pub/vim/unix/vim-%{pkg_version}.tar.bz2
Source1: ftp://ftp.vim.org/pub/vim/extra/vim-%{pkg_version}-extra.tar.bz2
Source2: ftp://ftp.vim.org/pub/vim/extra/vim-%{pkg_version}-lang.tar.bz2
Source3: suse.vimrc
Source4: vimrc_example1
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-initvals.diff
# tbd??? vim64-svn-crash.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: sh-utils fileutils
Summary: Vi IMproved
%description
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.
Package vim contains the smallest set of features, which should even
run in a minimal system. If you need more features, you might want to
install packages vim-enhanced or gvim.
Package vim contains the common files needed for all different vim
versions. You still need to select at least one of the vim-normal,
vim-enhanced or gvim packages.
@ -84,31 +103,68 @@ Authors:
--------
Bram Moolenaar <bram@vim.org>
%package -n gvim
%package data
Group: Productivity/Editors/Vi
Requires: vim
Summary: A GUI for Vi
PreReq: %{vim_prereq}
#
Summary: Vi IMproved
%description -n gvim
Start: /usr/X11R6/bin/gvim
%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.
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
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.
For SuSE Linux, Vim is used as /usr/bin/vi.
Package vim-data contains the runtime files.
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
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
%description enhanced
@ -129,6 +185,90 @@ Authors:
--------
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
%setup -q -n %{VIM_SUBDIR} -b 1 -b 2
%patch
@ -147,198 +287,336 @@ Authors:
%patch14
%patch15 -p1
%patch16
cp $RPM_SOURCE_DIR/vimrc_example* .
cp $RPM_SOURCE_DIR/ANNOUNCEMENT* .
cp %{S:3} %{S:4} %{S:5} %{S:6} %{S:8} %{S:9} %{S:10} .
rename no nb $RPM_BUILD_DIR/vim*/src/po/no.*
rename menu_no menu_nb $RPM_BUILD_DIR/vim*/runtime/lang/menu_no*
%build
pushd src
#----------------------------------
# build the small version of vim
#----------------------------------
CFLAGS="$RPM_OPT_FLAGS -Wall -pipe -fno-strict-aliasing -fstack-protector-all"
export CFLAGS
./configure $RPM_ARCH-suse-linux \
--prefix=%{_prefix} \
--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-multibyte \
--enable-sniff \
--with-compiledby='http://www.suse.de/' \
--with-vim-name=vim-enhanced \
--with-tclsh=%{_bindir}/tclsh \
--enable-gui=no \
--with-tlib=ncurses \
--enable-perlinterp \
--enable-pythoninterp \
--enable-rubyinterp \
--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-tlib=ncurses \
--enable-fontset \
--enable-gui=gtk2 \
--enable-max-features \
--enable-perlinterp \
--enable-pythoninterp \
--enable-xim
make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/current MAKE="make -e"
popd
gcc $RPM_OPT_FLAGS -Wall $RPM_SOURCE_DIR/vitmp.c -o vitmp
export CFLAGS="%{optflags} -Wall -pipe -fno-strict-aliasing"
%if %suse_version > 1000
export CFLAGS="$CFLAGS -fstack-protector-all"
%endif
export COMMON_OPTIONS="\
--with-vim-name=vim \
--with-ex-name=ex \
--with-view-name=view \
--enable-cscope \
--enable-multibyte \
--enable-sniff \
--with-features=huge \
--with-compiledby='http://www.opensuse.org/' \
--with-tlib=ncurses"
export SCRIPT_OPTIONS="\
--enable-perlinterp \
--enable-pythoninterp \
--enable-rubyinterp \
--enable-tclinterp \
--with-tclsh=%{_bindir}/tclsh \
--with-python-config-dir=%{py_libdir}/config"
# TODO:
# - if suse_version for gnome path
export GUI_OPTIONS="\
--enable-xim \
--enable-fontset \
--enable-gnome-check \
--with-xusetheXWindowSystem \
--enable-gui=gnome2 \
--enable-gtk2-check \
--with-gtk-prefix=/opt/gnome \
--with-gnome=/opt/gnome"
#
# 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
make -C src DESTDIR=$RPM_BUILD_ROOT \
BINDIR=%{_bindir} \
MANDIR=%{_mandir} \
STRIP=: \
install
mkdir -p $RPM_BUILD_ROOT/bin
mv $RPM_BUILD_ROOT/usr/bin/vim $RPM_BUILD_ROOT/bin/vim
ln -sf ../../bin/vim $RPM_BUILD_ROOT/usr/bin/vim
ln -sf vim $RPM_BUILD_ROOT/bin/ex
ln -sf vim $RPM_BUILD_ROOT/bin/vi
ln -sf vim $RPM_BUILD_ROOT/usr/bin/edit
ln -sf vim $RPM_BUILD_ROOT/usr/bin/ex
ln -sf vim $RPM_BUILD_ROOT/usr/bin/vi
ln -sf vim $RPM_BUILD_ROOT/usr/bin/view
ln -sf vim $RPM_BUILD_ROOT/usr/bin/vimdiff
ln -sf gvim $RPM_BUILD_ROOT/usr/bin/gex
ln -sf gvim $RPM_BUILD_ROOT/usr/bin/gvi
ln -sf gvim $RPM_BUILD_ROOT/usr/bin/gview
ln -sf gvim $RPM_BUILD_ROOT/usr/bin/rgview
ln -sf gvim $RPM_BUILD_ROOT/usr/bin/rgvim
ln -sf gvim $RPM_BUILD_ROOT/usr/bin/evim
ln -sf gvim $RPM_BUILD_ROOT/usr/bin/egvim
ln -sf gvim $RPM_BUILD_ROOT/usr/bin/eview
ln -sf gvim $RPM_BUILD_ROOT/usr/bin/gvimdiff
ln -sf vim.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/vi.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
mkdir -p $RPM_BUILD_ROOT/etc
install -m 0644 $RPM_SOURCE_DIR/suse.vimrc $RPM_BUILD_ROOT/etc/vimrc
install -m 0644 runtime/gvimrc_example.vim $RPM_BUILD_ROOT/etc/gvimrc
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
install -m 0644 $RPM_SOURCE_DIR/changes.vim $RPM_BUILD_ROOT/usr/share/vim/%{VIM_SUBDIR}/syntax
install -m 0644 %{SOURCE17} $RPM_BUILD_ROOT/usr/share/vim/%{VIM_SUBDIR}/syntax
install -m 0755 $RPM_SOURCE_DIR/vim132 $RPM_BUILD_ROOT/usr/share/vim/%{VIM_SUBDIR}/tools/vim132
cp %{SOURCE8} .
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/*ggvim*
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/gvimtutor*
install -m 755 vitmp $RPM_BUILD_ROOT/bin/
install -m 644 $RPM_SOURCE_DIR/vitmp.1 $RPM_BUILD_ROOT%{_mandir}/man1/
rm -f $RPM_BUILD_ROOT/usr/bin/gvimtutor $RPM_BUILD_ROOT/usr/X11R6/bin/xxd
mkdir -p $RPM_BUILD_ROOT//usr/share/pixmaps
install -m 644 %{SOURCE16} $RPM_BUILD_ROOT/usr/share/pixmaps/
%suse_update_desktop_file -i gvim TextEditor 2> /dev/null
rm -f $RPM_BUILD_ROOT/usr/bin/ggvim
rm -f $RPM_BUILD_ROOT/usr/bin/ggvimdiff
rm -f $RPM_BUILD_ROOT/usr/bin/rggvim
rm -f $RPM_BUILD_ROOT/usr/bin/evim-enhanced
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/evim-enhanced*
rm -f $RPM_BUILD_ROOT/usr/share/man/*/man1/evim-enhanced*
rm -f $RPM_BUILD_ROOT/usr/bin/rvim-enhanced
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*
%makeinstall STRIP=:
# the last installed binary is gvim. preserve it and
# fix its symlinks. e* was added here as it doesnt make much sense in
# console
%{__mv} -v %{buildroot}%{_bindir}/{vim,gvim-normal}
for f in egvim egview eview evim gex gvi gview gvimdiff rgview rgvim ; do
%{__ln_s} -vf gvim %{buildroot}%{_bindir}/$f
done
#
# install the other binaries
%{__install} -D -m 0755 vim-normal %{buildroot}/bin/vim-normal
%{__install} -D -m 0755 vim-enhanced %{buildroot}%{_bindir}/vim-enhanced
%if 0%{?with_splitted_gvim}
%{__install} -D -m 0755 gvim-enhanced %{buildroot}%{_bindir}/gvim-enhanced
%endif
# compat symlinks
%{__ln_s} -f /bin/vim-normal %{buildroot}/bin/vim
%{__ln_s} -f /bin/vim %{buildroot}/bin/vi
%{__ln_s} -f /bin/vim %{buildroot}%{_bindir}/vim
%{__ln_s} -f /bin/vim %{buildroot}%{_bindir}/vi
%{__ln_s} -f vim %{buildroot}%{_bindir}/edit
#
# man pages
%{__ln_s} -f vim.1.gz %{buildroot}%{_mandir}/man1/vi.1.gz
%{__ln_s} -f vim.1.gz %{buildroot}%{_mandir}/man1/ex.1.gz
#
# vitmp
%{__install} -m 0755 vitmp %{buildroot}%{_bindir}/vitmp
%{__install} -m 0644 %{S:14} %{buildroot}%{_mandir}/man1/vitmp.1
%{__install} -m 0755 %{S:15} %{buildroot}/usr/share/vim/%{VIM_SUBDIR}/tools/vim132
#
# make the vim settings more generic
%{__ln_s} -f %{VIM_SUBDIR} %{buildroot}%{_datadir}/vim/current
# additional files
%{__install} -m 0644 %{S:7} %{S:11} %{S:12} \
%{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/syntax
%{__install} -D -m 0644 %{S:3} %{buildroot}/etc/vimrc
%{__install} -D -m 0644 %{S:8} %{buildroot}/etc/gvimrc
# desktop file for gvim
%suse_update_desktop_file -i gvim TextEditor
#
# documentation
%{__install} -d -m 0755 %{buildroot}%{_docdir}/{,g}vim/
%{__install} -D -m 0644 \
vimrc_example1 vimrc_example2 suse.vimrc \
README.txt README_src.txt README_unix.txt README_lang.txt src/INSTALL ANNOUNCEMENT.vim-7.0 \
%{buildroot}%{_docdir}/vim/
# gvim
%{__install} -D -m 0644 \
README.SuSE README.Japanese-XIM runtime/gvimrc_example.vim suse.gvimrc \
%{buildroot}%{_docdir}/gvim/
%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
%defattr(-,root,root)
%config /etc/vimrc
/bin/ex
%defattr(-,root,root,-)
%ghost %config(missingok) /etc/vimrc
# symlinks
/bin/vi
/bin/vim
/bin/vitmp
/usr/bin/edit
/usr/bin/ex
/usr/bin/vi
/usr/bin/view
/usr/bin/vim
/usr/bin/xxd
/usr/bin/rview
/usr/bin/rvim
/usr/bin/vimtutor
/usr/bin/vimdiff
/usr/share/vim
%doc ANNOUNCEMENT*
%doc README.txt README_src.txt README_unix.txt README_lang.txt src/INSTALL
%doc vimrc_example1 vimrc_example2
%doc %{_mandir}/man1/*.1*
%doc %{_mandir}/[a-ln-z]*
%{_bindir}/edit
%{_bindir}/ex
%{_bindir}/rview
%{_bindir}/rvim
%{_bindir}/vi
%{_bindir}/vim
%{_bindir}/view
%{_bindir}/vimdiff
# additional binaries
%{_bindir}/vitmp
%{_bindir}/vimtutor
%{_bindir}/xxd
# man pages
%{_mandir}/man1/*
%dir %{_mandir}/fr
%dir %{_mandir}/fr/man1/
%{_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
%defattr(-,root,root)
%ghost %config(missingok) /etc/gvimrc
/usr/share/applications/gvim.desktop
/usr/share/pixmaps/gvim.png
/usr/bin/gex
/usr/bin/gvi
/usr/bin/gview
/usr/bin/gvim
/usr/bin/rgview
/usr/bin/rgvim
/usr/bin/evim
/usr/bin/egvim
/usr/bin/gvimdiff
/usr/bin/eview
%doc $RPM_SOURCE_DIR/README.SuSE $RPM_SOURCE_DIR/README.Japanese-XIM runtime/gvimrc_example.vim suse.gvimrc
%files data
%defattr(-,root,root,-)
# data files
%{_datadir}/vim/%{VIM_SUBDIR}/autoload/*
%{_datadir}/vim/%{VIM_SUBDIR}/colors/*
%{_datadir}/vim/%{VIM_SUBDIR}/compiler/*
%{_datadir}/vim/%{VIM_SUBDIR}/doc/*
%{_datadir}/vim/%{VIM_SUBDIR}/ftplugin/*
%{_datadir}/vim/%{VIM_SUBDIR}/indent/*
%{_datadir}/vim/%{VIM_SUBDIR}/keymap/*
%{_datadir}/vim/%{VIM_SUBDIR}/lang/*
%{_datadir}/vim/%{VIM_SUBDIR}/macros/*
%{_datadir}/vim/%{VIM_SUBDIR}/plugin/*
%{_datadir}/vim/%{VIM_SUBDIR}/print/*
%{_datadir}/vim/%{VIM_SUBDIR}/spell/*
%{_datadir}/vim/%{VIM_SUBDIR}/syntax/*
%{_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
%defattr(-,root,root)
/usr/bin/vim-enhanced
%defattr(-,root,root,-)
%{_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
- fix fortify workaround
* Wed Jan 24 2007 - mkoenig@suse.de