- #
- # spec file for package vim
- #
- # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
- #
- # 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.
- # Please submit bugfixes or comments via http://bugs.opensuse.org/
- #
- %define baseversion 8.0
- %define patchlevel 0425
- %define VIM_SUBDIR vim80
- %define site_runtimepath /usr/share/vim/site
- %define make make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/current MAKE="make -e" %{?_smp_mflags}
- Name: vim
- Version: %{baseversion}.%{patchlevel}
- Release: 1
- BuildRequires: autoconf
- BuildRequires: db-devel
- BuildRequires: gettext-devel
- %if 0%{?suse_version} > 1110
- BuildRequires: gpm-devel
- BuildRequires: gtk3-devel
- %endif
- BuildRequires: gtk2-devel
- %if 0%{?suse_version} > 1200
- BuildRequires: pkgconfig(xt)
- %endif
- BuildRequires: libacl-devel
- BuildRequires: lua-devel
- BuildRequires: ncurses-devel
- BuildRequires: perl
- %if 0%{?suse_version} > 1010
- BuildRequires: fdupes
- # Needed to convert svg to png
- BuildRequires: rsvg-view
- %endif
- BuildRequires: ruby-devel
- BuildRequires: update-desktop-files
- BuildRoot: %{_tmppath}/%{name}-%{version}-build
- PreReq: fileutils
- PreReq: sh-utils
- 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
- Recommends: vim-data = %{version}-%{release}
- Summary: Vi IMproved, an open-source modal text editor developed by Bram Moolenar
- License: Vim
- Group: Productivity/Editors/Vi
- Url: http://www.vim.org/
- Source: https://github.com/vim/vim/archive/v%{baseversion}.%{patchlevel}.tar.gz
- Source3: suse.vimrc
- Source4: vimrc_example1
- Source5: vimrc_example2
- Source8: suse.gvimrc
- Source10: README.Japanese-XIM
- Source13: vitmp.c
- Source14: vitmp.1
- Source15: vim132
- Source18: missing-vim-client
- Source19: gvim.desktop
- Source20: spec.skeleton
- Source23: apparmor.vim
- Source24: gvim.svg
- Source25: gvim16.png
- Source26: gvim32.png
- Source27: gvim48.png
- SOurce28: gvim64.png
- Source99: %{name}-7.4-rpmlintrc
- Patch3: %{name}-7.4-disable_lang_no.patch
- Patch4: %{name}-7.3-gvimrc_fontset.patch
- Patch5: %{name}-7.4-highlight_fstab.patch
- Patch6: %{name}-7.3-sh_is_bash.patch
- Patch7: %{name}-7.3-filetype_ftl.patch
- Patch8: %{name}-7.3-help_tags.patch
- Patch9: %{name}-7.3-use_awk.patch
- Patch10: %{name}-7.3-name_vimrc.patch
- Patch11: %{name}-7.3-mktemp_tutor.patch
- Patch15: %{name}-7.4-filetype_apparmor.patch
- Patch18: %{name}-7.3-filetype_spec.patch
- Patch21: %{name}-7.3-filetype_changes.patch
- Patch22: %{name}-7.4-filetype_mine.patch
- Patch100: vim73-no-static-libpython.patch
- %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.
- For SUSE Linux, Vim is used as /usr/bin/vi.
- %package data
- Summary: Vi IMproved
- Group: Productivity/Editors/Vi
- BuildArch: noarch
- Obsoletes: vim-plugin-matchit <= 1.13.2
- Provides: vim-plugin-matchit = 1.13.2
- %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.
- 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-data contains the runtime files.
- %package -n gvim-gtk2
- Summary: A GTK2 GUI for Vim
- Group: Productivity/Editors/Vi
- Requires: gvim_client
- Requires: vim-data
- Requires: gvim-data
- Provides: gvim-gtk2-base = %{version}-%{release}
- Provides: gvim-gtk2-enhanced = %{version}-%{release}
- Obsoletes: gvim-gtk2-base < %{version}-%{release}
- Obsoletes: gvim-gtk2-enhanced < %{version}-%{release}
- Obsoletes: gvim-base < %{version}-%{release}
- Obsoletes: gvim-enhanced < %{version}-%{release}
- Obsoletes: gvim <= %{version}-%{release}
- Provides: gvim-gtk2_client
- Provides: gvim_client
- Provides: vim_client
- %description -n gvim-gtk2
- 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 vim instead.
- %if 0%{?suse_version} > 1110
- %package -n gvim-gtk3
- Summary: A GTK3 GUI for Vim
- Group: Productivity/Editors/Vi
- Requires: gvim_client
- Requires: vim-data
- BuildRequires: gtk3-devel
- Requires: gvim-data
- Provides: gvim-gtk3-base = %{version}-%{release}
- Provides: gvim-gtk3-enhanced = %{version}-%{release}
- Obsoletes: gvim-base < %{version}-%{release}
- Obsoletes: gvim-enhanced < %{version}-%{release}
- Obsoletes: gvim-gtk3-base < %{version}-%{release}
- Obsoletes: gvim-gtk3-enhanced < %{version}-%{release}
- Provides: gvim-gtk3_client
- Provides: gvim_client
- Provides: vim_client
- %description -n gvim-gtk3
- 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 vim instead.
- %endif
- %package -n gvim-data
- Summary: Data files for the GUIs of Vim
- Group: Productivity/Editors/Vi
- Requires: vim-data
- BuildArch: noarch
- %description -n gvim-data
- 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 vim instead.
- %prep
- %setup -q -n %{name}-%{baseversion}.%{patchlevel}
- %patch3 -p1
- %patch4 -p1
- %patch5 -p1
- %patch6 -p1
- %patch7 -p1
- %patch8 -p1
- %patch9 -p1
- %patch10 -p1
- %patch11 -p1
- cp %{SOURCE23} runtime/syntax/apparmor.vim
- %patch15 -p1
- %patch18 -p1
- %patch21 -p1
- %patch22 -p1
- %patch100 -p1
- cp %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE8} %{SOURCE10} .
- %build
- export CFLAGS="%{optflags} -Wall -pipe -fno-strict-aliasing"
- export CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/-D_FORTIFY_SOURCE=1}
- export COMMON_OPTIONS="\
- --with-vim-name=vim \
- --with-ex-name=ex \
- --with-view-name=view \
- --enable-cscope \
- --enable-multibyte \
- --with-features=huge \
- --with-compiledby='openSUSE Build Service (https://build.opensuse.org/)' \
- %if 0%{?suse_version} > 1210
- --with-tlib=tinfo \
- %else
- --with-tlib=ncurses \
- %endif
- --with-global-runtime=%{site_runtimepath} \
- --enable-luainterp=dynamic \
- --enable-perlinterp=yes \
- --enable-pythoninterp=dynamic \
- --enable-python3interp=dynamic \
- --enable-rubyinterp=dynamic"
- export GUI_OPTIONS_GTK2="\
- --disable-icon-cache-update \
- --enable-xim \
- --enable-fontset \
- %if 0%{?suse_version} <= 1110
- --disable-gpm \
- %endif
- --enable-gui=gtk2"
- export GUI_OPTIONS_GTK3="\
- --disable-icon-cache-update \
- --enable-xim \
- --enable-fontset \
- --enable-gui=gtk3"
- pushd src
- autoconf
- popd
- # build vim
- %configure ${COMMON_OPTIONS} --disable-gui --disable-gpm
- sed -i -e 's|define HAVE_DATE_TIME 1|undef HAVE_DATE_TIME|' src/auto/config.h
- make %{?_smp_mflags}
- cp src/vim vim
- %if 0%{?suse_version} > 1110
- # build gvim-gtk3
- make distclean
- %configure ${COMMON_OPTIONS} ${GUI_OPTIONS_GTK3}
- sed -i -e 's|define HAVE_DATE_TIME 1|undef HAVE_DATE_TIME|' src/auto/config.h
- make %{?_smp_mflags}
- cp src/vim gvim-gtk3
- %endif
- # build gvim-gtk2
- make distclean
- %configure ${COMMON_OPTIONS} ${GUI_OPTIONS_GTK2}
- sed -i -e 's|define HAVE_DATE_TIME 1|undef HAVE_DATE_TIME|' src/auto/config.h
- make %{?_smp_mflags}
- #
- # build vitmp
- gcc %{optflags} %{SOURCE13} -o vitmp
- %install
- %makeinstall STRIP=:
- # create icon directory to have the icons installed and convert them to all hicolor expected sizes.
- %if 0%{?suse_version} > 1010
- for size in %{_datadir}/icons/hicolor/*[0-9]x[0-9]*; do
- SIZE=$(echo $size | awk -Fx {'print $2}')
- if ! [[ $SIZE == *"@"* ]]; then
- 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
- fi
- done
- %else
- install -p -m644 %{SOURCE25} \
- %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/gvim.png
- install -p -m644 %{SOURCE26} \
- %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/gvim.png
- install -p -m644 %{SOURCE27} \
- %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/gvim.png
- install -p -m644 %{SOURCE28} \
- %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/gvim.png
- %endif
- install -dm0755 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
- install -dm0755 %{buildroot}%{_datadir}/icons/hicolor/1024x1024/apps/
- install -m0644 %{SOURCE24} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/gvim.svg
- # install vim
- install -Dm0755 vim %{buildroot}%{_bindir}/vim
- # compat symlinks
- mkdir -p %{buildroot}/bin
- ln -s -f %{_bindir}/vim %{buildroot}/bin/vim
- # Install gvim-gtk3
- %if 0%{?suse_version} > 1110
- install -Dm0755 gvim-gtk3 %{buildroot}%{_bindir}/gvim-gtk3
- %endif
- # 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 %{buildroot}%{_bindir}/vim %{buildroot}%{_bindir}/gvim-gtk2
- for f in egvim egview eview evim gex gvi gview gvimdiff rgview rgvim ; do
- if [[ -f %{buildroot}%{_bindir}/$f ]]; then
- rm %{buildroot}%{_bindir}/$f
- fi
- %if 0%{?suse_version} > 1110
- ln -s -vf gvim-gtk3 %{buildroot}%{_bindir}/$f-gtk3
- %endif
- ln -s -vf gvim-gtk2 %{buildroot}%{_bindir}/$f-gtk2
- done
- rm %{buildroot}%{_bindir}/{eview,evim,gview,gvim,gvimdiff,rgview,rgvim}
- # vitmp
- install -m0755 vitmp %{buildroot}%{_bindir}/vitmp
- install -m0644 %{SOURCE14} %{buildroot}%{_mandir}/man1/vitmp.1
- install -m0755 %{SOURCE15} %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/tools/vim132
- # make the vim settings more generic
- ln -s -f %{VIM_SUBDIR} %{buildroot}%{_datadir}/vim/current
- # additional files
- install -Dm0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/vimrc
- install -Dm0644 %{SOURCE8} %{buildroot}%{_sysconfdir}/gvimrc
- # create site wide runtime directory
- mkdir -pm 0755 %{buildroot}%{site_runtimepath}/after
- 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
- mkdir -m 0755 %{buildroot}%{site_runtimepath}/syntax
- mkdir -m 0755 %{buildroot}%{site_runtimepath}/ftdetect
- mkdir -m 0755 %{buildroot}%{site_runtimepath}/after/syntax
- mkdir -m 0755 %{buildroot}%{_datadir}/vim/current/skeletons
- mkdir -m 0755 %{buildroot}%{_sysconfdir}/skel
- # install spec helper
- install -m0644 %{SOURCE20} %{buildroot}%{_datadir}/vim/current/skeletons/skeleton.spec
- # desktop file for gvim-gtk2 and gvim-gtk3
- install -Dm0644 %{SOURCE19} %{buildroot}%{_datadir}/applications/gvim-gtk2.desktop
- %if 0%{?suse_version} > 1110
- cp %{buildroot}%{_datadir}/applications/gvim-gtk2.desktop %{buildroot}%{_datadir}/applications/gvim-gtk3.desktop
- %suse_update_desktop_file gvim-gtk3 Utility TextEditor
- sed -i -e 's/Exec=gvim/Exec=gvim-gtk3/g' \
- -e 's/Vi IMproved/GVim (GTK+3)/g' %{buildroot}%{_datadir}/applications/gvim-gtk3.desktop
- %endif
- %suse_update_desktop_file gvim-gtk2 Utility TextEditor
- sed -i -e 's/Exec=gvim/Exec=gvim-gtk2/g' \
- -e 's/Vi IMproved/GVim (GTK+2)/g' %{buildroot}%{_datadir}/applications/gvim-gtk2.desktop
- rm %{buildroot}%{_datadir}/applications/gvim.desktop
- %suse_update_desktop_file vim Utility TextEditor
- #
- # documentation
- cp runtime/doc/uganda.txt LICENSE
- install -dm0755 %{buildroot}%{_docdir}/{,g}vim/
- install -Dm0644 LICENSE \
- vimrc_example1 vimrc_example2 suse.vimrc \
- README.txt READMEdir/README_src.txt READMEdir/README_unix.txt \
- %{buildroot}%{_docdir}/vim/
- # gvim
- install -Dm0644 \
- README.Japanese-XIM runtime/gvimrc_example.vim suse.gvimrc \
- %{buildroot}%{_docdir}/gvim/
- #
- # stupid helper
- install -m0755 %{SOURCE18} %{buildroot}%{_datadir}/vim/current/tools/missing-vim-client
- # remove unecessary duplicate manpages
- rm -rf %{buildroot}%{_mandir}/fr.ISO8859-1/
- rm -rf %{buildroot}%{_mandir}/fr.UTF-8/
- rm -rf %{buildroot}%{_mandir}/pl.ISO8859-2/
- rm -rf %{buildroot}%{_mandir}/pl.UTF-8/
- rm -rf %{buildroot}%{_mandir}/ru.KOI8-R/
- rm -rf %{buildroot}%{_mandir}/it.ISO8859-1/
- rm -rf %{buildroot}%{_mandir}/it.UTF-8/
- # and move russian manpages to a place where they can be found
- mv %{buildroot}%{_mandir}/ru.UTF-8 %{buildroot}%{_mandir}/ru
- # remove some c source files
- rm -f %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/tools/*.c
- rm -f %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/macros/maze/*.c
- # Remove sample server to avoid python dependency
- rm %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/tools/demoserver.py
- # Create ghost files (see vim.conf)
- mkdir -p %{buildroot}/var/run/vi.recover
- %if 0%{?suse_version} > 1010
- %fdupes -s %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/lang
- %fdupes -s %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/tutor
- %fdupes -s %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/ftplugin
- %endif
- rm -rf %{buildroot}%{_datadir}/icons/locolor
- rm %{buildroot}%{_bindir}/{ex,view}
- rm %{buildroot}%{_mandir}/man1/{ex,view}.1
- #%check
- # 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
- #export TERM=linux
- # Reset the terminal scrolling region left behind by the testsuite
- #trap "printf '\e[r'" EXIT
- # Look for "TEST FAILURE" in the build log
- #make test
- %post -n vim-data
- %icon_theme_cache_post
- %postun -n vim-data
- %icon_theme_cache_postun
- %files
- %defattr(-,root,root,-)
- %config(noreplace) %{_sysconfdir}/vimrc
- %{_datadir}/applications/vim.desktop
- # symlinks
- /bin/vim
- %{_bindir}/rview
- %{_bindir}/rvim
- %{_bindir}/vim
- %{_bindir}/vimdiff
- # additional binaries
- %{_bindir}/vitmp
- %{_bindir}/vimtutor
- %{_bindir}/gvimtutor
- %{_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/*
- %dir %{_mandir}/ru
- %dir %{_mandir}/ru/man1/
- %{_mandir}/ru/man1/*
- %dir %{_mandir}/pl
- %dir %{_mandir}/pl/man1/
- %{_mandir}/pl/man1/*
- %dir %{_mandir}/ja
- %dir %{_mandir}/ja/man1/
- %{_mandir}/ja/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}/pack/
- %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/
- %dir %{_datadir}/vim/%{VIM_SUBDIR}/skeletons/
- %dir %{site_runtimepath}
- %dir %{site_runtimepath}/autoload/
- %dir %{site_runtimepath}/colors/
- %dir %{site_runtimepath}/doc/
- %dir %{site_runtimepath}/plugin/
- %dir %{site_runtimepath}/syntax/
- %dir %{site_runtimepath}/ftdetect/
- %dir %{site_runtimepath}/after/
- %dir %{site_runtimepath}/after/syntax/
- #
- %{_datadir}/vim/%{VIM_SUBDIR}/bugreport.vim
- %{_datadir}/vim/%{VIM_SUBDIR}/defaults.vim
- %{_datadir}/vim/%{VIM_SUBDIR}/evim.vim
- %{_datadir}/vim/%{VIM_SUBDIR}/filetype.vim
- %{_datadir}/vim/%{VIM_SUBDIR}/ftoff.vim
- %{_datadir}/vim/%{VIM_SUBDIR}/ftplugin.vim
- %{_datadir}/vim/%{VIM_SUBDIR}/ftplugof.vim
- %{_datadir}/vim/%{VIM_SUBDIR}/indent.vim
- %{_datadir}/vim/%{VIM_SUBDIR}/indoff.vim
- %{_datadir}/vim/%{VIM_SUBDIR}/optwin.vim
- %{_datadir}/vim/%{VIM_SUBDIR}/rgb.txt
- %{_datadir}/vim/%{VIM_SUBDIR}/scripts.vim
- %{_datadir}/vim/%{VIM_SUBDIR}/syntax/syntax.vim
- %{_datadir}/vim/%{VIM_SUBDIR}/skeletons/skeleton.spec
- # stupid helper
- # THIS BREAKS THE BUILD: %{_datadir}/vim/current/tools/missing-vim-client
- %{_datadir}/vim/%{VIM_SUBDIR}/tools/missing-vim-client
- %files data
- %defattr(-,root,root,-)
- # icon files
- %{_datadir}/icons/hicolor/*/apps/gvim.*
- # 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}/pack/*
- %{_datadir}/vim/%{VIM_SUBDIR}/plugin/*
- %{_datadir}/vim/%{VIM_SUBDIR}/print/*
- %{_datadir}/vim/%{VIM_SUBDIR}/spell/*
- %{_datadir}/vim/%{VIM_SUBDIR}/syntax/*
- %exclude %{_datadir}/vim/%{VIM_SUBDIR}/syntax/syntax.vim
- #%{_datadir}/vim/%{VIM_SUBDIR}/tools/blink.c
- %{_datadir}/vim/%{VIM_SUBDIR}/tools/ccfilter.1
- #%{_datadir}/vim/%{VIM_SUBDIR}/tools/ccfilter.c
- %{_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
- %{_datadir}/vim/%{VIM_SUBDIR}/tools/unicode.vim
- %{_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
- #%{_datadir}/vim/%{VIM_SUBDIR}/tools/xcmdsrv_client.c
- %{_datadir}/vim/%{VIM_SUBDIR}/tutor/*
- %{_datadir}/vim/%{VIM_SUBDIR}/delmenu.vim
- %{_datadir}/vim/%{VIM_SUBDIR}/gvimrc_example.vim
- %{_datadir}/vim/%{VIM_SUBDIR}/menu.vim
- %{_datadir}/vim/%{VIM_SUBDIR}/mswin.vim
- %{_datadir}/vim/%{VIM_SUBDIR}/synmenu.vim
- %{_datadir}/vim/%{VIM_SUBDIR}/vimrc_example.vim
- %files -n gvim-gtk2
- %defattr(-,root,root,-)
- %{_bindir}/egview-gtk2
- %{_bindir}/egvim-gtk2
- %{_bindir}/eview-gtk2
- %{_bindir}/evim-gtk2
- %{_bindir}/gex-gtk2
- %{_bindir}/gvi-gtk2
- %{_bindir}/gview-gtk2
- %{_bindir}/gvim-gtk2
- %{_bindir}/gvimdiff-gtk2
- %{_bindir}/rgview-gtk2
- %{_bindir}/rgvim-gtk2
- # menu icon
- %{_datadir}/applications/gvim-gtk2.desktop
- %files -n gvim-data
- %doc %{_docdir}/gvim
- %doc runtime/doc/gui_x11.txt
- %ghost %config(missingok) %{_sysconfdir}/gvimrc
- %if 0%{?suse_version} > 1110
- %files -n gvim-gtk3
- %defattr(-,root,root,-)
- %{_bindir}/egview-gtk3
- %{_bindir}/egvim-gtk3
- %{_bindir}/eview-gtk3
- %{_bindir}/evim-gtk3
- %{_bindir}/gex-gtk3
- %{_bindir}/gvi-gtk3
- %{_bindir}/gview-gtk3
- %{_bindir}/gvim-gtk3
- %{_bindir}/gvimdiff-gtk3
- %{_bindir}/rgview-gtk3
- %{_bindir}/rgvim-gtk3
- # menu icon
- %{_datadir}/applications/gvim-gtk3.desktop
- %endif
- %changelog