File vim-plugins.spec of Package vim-plugins

#
# spec file for package vim-plugins
#
# Copyright (c) 2011 SUSE LINUX Products 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/
#

# norootforbuild

%define		align_version			35.41
%define		a_version			2.18
%define		bufexplorer_version		7.2.6
%define		calendar_version		2.1
%define		colorsel_version		20051121
%define		colorschemes_version		1.0
%define		diffchanges_version		0.2.6
%define		locateopen_version		1.3
%define		matchit_version			1.13.2
%define		matrix_version			1.10
%define		minibufexpl_version		6.3.2
%define		multiplesearch_version		1.3
%define		NERDcommenter_version		2.2.2
%define		NERDtree_version		4.1.0
%define		project_version			1.4.1
%define		searchcomplete_version		1.1
%define		showmarks_version		2.2
%define		supertab_version		1.0
%define		taglist_version			4.5
%define		tlib_version			0.36
%define		tregisters_version		0.2
%define		tselectbuffer_version		0.6
%define		tselectfiles_version		0.10
%define		utl_version			2.0
%define		zoomwin_version			23
%define		latex_version 			20100129
%define		quilt_version 			0.9.6
%define		vimwiki_version			0.9.9
%define		gnupg_version			3026
%define		gitdiff_version			2
%define		snipmate_version		0.83

Name:           vim-plugins
Version:        7.2.22
Release:        1
Summary:        Plug-ins pack for Vim
Group:          Productivity/Text/Editors
License:        MIT
Url:            http://www.vim.org/
Source0:        vimplugin-align-%{align_version}.tar.bz2
Source1:        vimplugin-a-%{a_version}.tar.bz2
Source2:        vimplugin-bufexplorer-%{bufexplorer_version}.tar.bz2
Source3:        vimplugin-calendar-%{calendar_version}.tar.bz2
Source4:        vimplugin-colorsel-%{colorsel_version}.tar.bz2
Source5:        vimplugin-colorschemes-%{colorschemes_version}.tar.bz2
Source6:        vimplugin-diffchanges-%{diffchanges_version}.tar.bz2
Source7:        vimplugin-locateopen-%{locateopen_version}.tar.bz2
Source8:        vimplugin-matchit-%{matchit_version}.tar.bz2
Source9:        vimplugin-matrix-%{matrix_version}.tar.bz2
Source10:       vimplugin-minibufexpl-%{minibufexpl_version}.tar.bz2
Source11:       vimplugin-multiplesearch-%{multiplesearch_version}.tar.bz2
Source12:       vimplugin-NERDcommenter-%{NERDcommenter_version}.tar.bz2
Source13:       vimplugin-NERDtree-%{NERDtree_version}.tar.bz2
Source14:       vimplugin-project-%{project_version}.tar.bz2
Source15:       vimplugin-searchcomplete-%{searchcomplete_version}.tar.bz2
Source16:       vimplugin-showmarks-%{showmarks_version}.tar.bz2
Source17:       vimplugin-supertab-%{supertab_version}.tar.bz2
Source18:       vimplugin-taglist-%{taglist_version}.tar.bz2
Source19:       vimplugin-tlib-%{tlib_version}.tar.bz2
Source20:       vimplugin-tregisters-%{tregisters_version}.tar.bz2
Source21:       vimplugin-tselectbuffer-%{tselectbuffer_version}.tar.bz2
Source22:       vimplugin-tselectfiles-%{tselectfiles_version}.tar.bz2
Source23:       vimplugin-utl-%{utl_version}.tar.bz2
Source24:       vimplugin-zoomwin-%{zoomwin_version}.tar.bz2
Source25:       vimplugin-latex-%{latex_version}.tar.bz2
Source26:       vimplugin-quilt-%{quilt_version}.tar.bz2
Source27:       vimplugin-vimwiki-%{vimwiki_version}.tar.bz2
Source28:       vimplugin-gnupg-%{gnupg_version}.tar.bz2
Source29:       vimplugin-gitdiff-%{gitdiff_version}.tar.bz2
Source30:       vimplugin-snipmate-%{snipmate_version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  vim
BuildArch:      noarch
Patch0:         colorsel-disable-nogui-warning-error.patch
Patch1:         locateopen-1.3-locate-support.patch

%define		vimplugin_dir %{_datadir}/vim/site

%description
Subpackages of this packages contains some plugins for Vi iMproved text editor.

Authors:
--------
		Marek Stopka <mstopka@opensuse.org>
		Petr Uzel <puzel@suse.cz>

# -------------------------- vim-plugins-align --------------------------
%package -n vim-plugin-align
License:        MIT
Version:        %align_version
Release:        1
Requires:       vim
Group:          Productivity/Text/Editors
Summary:        Plugin to produce aligned text, equations, declarations, etc

%description -n vim-plugin-align
Align lets you align statements on their equal signs, make comment boxes, align
comments, align declarations, etc. It handles alignment on multiple separators,
not just the first one, and the separators may be the same across the line or
different.

Authors:
--------
   Charles Campbell <drchip@campbellfamily.biz>

# ---------------------------- vim-plugins-a ----------------------------
%package -n vim-plugin-a
License:        MIT
Version:        %a_version
Release:        1
Requires:       vim
Group:          Productivity/Text/Editors
Summary:        Alternate files quickly (.c --> .h etc)

%description -n vim-plugin-a
Vim plugin to quickly switch between corresponding files. E.g. if you are
editing foo.c and need to edit foo.h simply execute :A and you will be editing
foo.h, to switch back to foo.c execute :A again. It has builtin support for C,
C++ and ADA95 and can be configured to support a variety of languages.

Authors:
--------
   Mike Sharpe <feline@irendi.com>

%package -n vim-plugin-bufexplorer
License:        MIT
Version:        %bufexplorer_version
Release:        1
Requires:       vim
Group:          Productivity/Text/Editors
Summary:        Buffer Explorer / Browser

%description -n vim-plugin-bufexplorer
With bufexplorer, you can quickly switch between buffers by using '\be' to open
the explorer.vim. Then by using the normal movement keys or mouse to select the
needed buffer and then finally pressing <Enter> or <Left Mouse Click> to open
the buffer in the current window or <Shift Enter> or 't' to open that buffer in
a new tab.  If the buffer is in another tab already, bufexplorer can switch to
that tab if you would like.

Authors:
--------
  Jeff Lanzarotta <delux256-vim@yahoo.com>

%package -n vim-plugin-calendar
License:        MIT
Version:        %calendar_version
Release:        1
Requires:       vim
Group:          Productivity/Text/Editors
Summary:        Calendar for vim

%description -n vim-plugin-calendar
Plugin for vim that displays simple calendar in the side window.

Authors:
--------
   Yasuhiro Matsumoto <mattn.jp@gmail.com>

%package -n vim-plugin-colorsel
License:        Public Domain
Version:        %colorsel_version
Release:        1
Requires:       vim
Requires:       gvim
Group:          Productivity/Text/Editors
Summary:        A RGB/HSV color selector

%description -n vim-plugin-colorsel
A simple interactive RGB/HSV color selector modelled after Gimp2 RGB/HSV color
selector.

Authors:
--------
   David Nečas <yeti@physics.muni.cz>

%package -n vim-plugin-colorschemes
License:        Various - see contained files for details
Version:        %colorschemes_version
Release:        1
Requires:       vim
Group:          Productivity/Text/Editors
Summary:        Vim color schemes selection

%description -n vim-plugin-colorschemes
Selection of vim color schemes based on Colors Sample Pack -
http://www.vim.org/scripts/script.php?script_id=625.

Authors:
--------
   Petr Uzel <puzel@suse.cz>

%package -n vim-plugin-diffchanges
License:        Public Domain
Version:        %diffchanges_version
Release:        1
Requires:       vim
Requires:       diffutils
Group:          Productivity/Text/Editors
Summary:        Show changes since the last save

%description -n vim-plugin-diffchanges
Show changes made to current buffer since the last save. This plugin is based
from an example in the Hacking Vim book. The differences are that this
functionality is in the form of a plugin, is a bit more robust, and can be
toggled.

Authors:
--------
   Jeremy Cantrell <jmcantrell@gmail.com>

%package -n vim-plugin-locateopen
License:        Other uncritical OpenSource License
Version:        %locateopen_version
Release:        1
Requires:       vim
Requires:       findutils-locate
Group:          Productivity/Text/Editors
Summary:        Edit file without entering the whole path

%description -n vim-plugin-locateopen
This script uses slocate (or a similar application) to allow the user to open a
file without having to enter a path. If multiple files are found the user is
given the choice of which file to open.

Usage:
  :LocateEdit somefile.txt
  :LocateSplit somefile.txt
  :LocateSource somefile.vim
  :LocateRead somefile.txt

Authors:
--------
   Ciaran McCreesh <ciaran.mccreesh@googlemail.com>

%package -n vim-plugin-matchit
License:        MIT
Version:        %matchit_version
Release:        1
Requires:       vim
Group:          Productivity/Text/Editors
Summary:        Extended % matching for HTML, LaTeX, and many other languages

%description -n vim-plugin-matchit
The matchit.vim script allows you to configure % to match more than just single
characters.  You can match words and even regular expressions.  Also, matching
treats strings and comments (as recognized by the syntax highlighting
mechanism) intelligently.  The default ftplugins include settings for several
languages: Ada, ASP with VBS, Csh, DTD, Essbase, Fortran, HTML, JSP (same as
HTML), LaTeX, Lua, Pascal, SGML, Shell, Tcsh, Vim, XML.

Authors:
--------
   Benji Fisher <benji@member.AMS.org>

%package -n vim-plugin-matrix
License:        Public Domain
Version:        %matrix_version
Release:        1
Requires:       vim
Group:          Productivity/Text/Editors
Summary:        Matrix screensaver for vim

%description -n vim-plugin-matrix
Matrix screensaver for VIM, inspired by Chris Allegretta's cmatrix.

Authors:
--------
   Don Yang <omoikane@uguu.org>

%package -n vim-plugin-minibufexpl
License:        MIT
Version:        %minibufexpl_version
Release:        1
Requires:       vim
Group:          Productivity/Text/Editors
Summary:        Elegant buffer explorer that takes very little screen space

%description -n vim-plugin-minibufexpl
Minibufexplorer allows to quickly switch buffers by double-clicking the
appropriate "tab". Tabs get updated as buffers are opened and closed.
Buffers that are modified get visually marked and buffers that are open in a
window get visually marked.

Authors:
--------
   Bindu Wavell <bindu@wavell.net>

%package -n vim-plugin-multiplesearch
License:        Other uncritical OpenSource License
Version:        %multiplesearch_version
Release:        1
Requires:       vim
Group:          Productivity/Text/Editors
Summary:        Display multiple searches at the same time

%description -n vim-plugin-multiplesearch
MultipleSearch allows you to have the results of multiple searches displayed
on the screen at the same time.  Each search highlights its results in a
different color, and all searches are displayed at once.  After the maximum
number of colors is used, the script starts over with the first color.

Authors:
--------
   Dan Sharp <dwsharp@hotmail.com>

%package -n vim-plugin-NERDcommenter
License:        WTFPL
Version:        %NERDcommenter_version
Release:        1
Requires:       vim
Group:          Productivity/Text/Editors
Summary:        A plugin that allows for easy commenting of code for many filetypes

%description -n vim-plugin-NERDcommenter
The NERD commenter provides many different commenting operations and styles
which may be invoked via key mappings and a commenting menu. These operations
are available for most filetypes.

Authors:
--------
   Marty Grenfell <martin_grenfell@msn.com>

%package -n vim-plugin-NERDtree
License:        WTFPL
Version:        %NERDtree_version
Release:        1
Requires:       vim
Group:          Productivity/Text/Editors
Summary:        A tree explorer plugin for navigating the filesystem

%description -n vim-plugin-NERDtree
The NERD tree allows you to explore your filesystem and to open files and
directories. It presents the filesystem to you in the form of a tree which you
manipulate with the keyboard and/or mouse. It also allows you to perform simple
filesystem operations.

Authors:
--------
   Marty Grenfell <martin_grenfell@msn.com>

%package -n vim-plugin-project
License:        MIT
Version:        %project_version
Release:        1
Requires:       vim
Group:          Productivity/Text/Editors
Summary:        Organize/Navigate projects of files

%description -n vim-plugin-project
You can use this plugin's basic functionality to set up a list of
frequently-accessed files for easy navigation. The list of files will be
displayed in a window on the left side of the vim window, and you can press
<Return> or double-click on filenames in the list to open the files. This is
similar to how some IDEs I've used work. I find this easier to use than having
to navigate a directory hierarchy with the file-explorer.  It also obviates the
need for a buffer explorer because you have your list of files on the left of
the vim window.

Authors:
--------
   Aric Blumer <aricvim@suddenlink.net>

%package -n vim-plugin-searchcomplete
License:        GPLv2
Version:        %searchcomplete_version
Release:        1
Requires:       vim
Group:          Productivity/Text/Editors
Summary:        Tab completion of words inside of a search

%description -n vim-plugin-searchcomplete
This plugin allows to tab-complete words while typing in a
search ('/').

Authors:
--------
   Chris Russel <carussell@aol.com>

%package -n vim-plugin-showmarks
License:        Public Domain
Version:        %showmarks_version
Release:        1
Requires:       vim
Group:          Productivity/Text/Editors
Summary:        Visually shows the location of marks

%description -n vim-plugin-showmarks
ShowMarks provides a visual representation of the location marks.  Marks are
useful for jumping back and forth between interesting points in a buffer, but
can be hard to keep track of without any way to see where you have placed them.
ShowMarks hopefully makes life easier by placing a sign in the leftmost column
of the buffer.  The sign indicates the label of the mark and its location.  It
can be toggled on and off and individual marks can be hidden.

Authors:
--------
   Anthony Kruize <akruize@netspace.net.au>

%package -n vim-plugin-supertab
License:        BSD
Version:        %supertab_version
Release:        1
Requires:       vim
Group:          Productivity/Text/Editors
Summary:        Visually shows the location of marks

%description -n vim-plugin-supertab
This script allows you to use the tab key to do all your insert completion.

Authors:
--------
  Eric Van Dewoestine <ervandew@yahoo.com>

%package -n vim-plugin-taglist
License:        MIT
Version:        %taglist_version
Release:        1
Requires:       vim
Requires:       ctags
Group:          Productivity/Text/Editors
Summary:        Source code browser with support for many languages

%description -n vim-plugin-taglist
The "Tag List" plugin is a source code browser plugin for Vim and provides an
overview of the structure of source code files and allows you to efficiently
browse through source code files for different programming languages.

Authors:
--------
   Yegappan Lakshmanan <yegappan@yahoo.com>

%package -n vim-plugin-tlib
License:        GPL
Version:        %tlib_version
Release:        1
Requires:       vim
Group:          Productivity/Text/Editors
Summary:        Utility functions for vim

%description -n vim-plugin-tlib
This library provides some utility functions. There isn't much need to install
it unless another plugin requires you to do so.

Authors:
--------
   Thomas Link <micathom@gmail.com>

%package -n vim-plugin-tregisters
License:        GPL
Version:        %tregisters_version
Release:        1
Requires:       vim
Requires:       vim-plugin-tlib
Group:          Productivity/Text/Editors
Summary:        List, edit, and run/execute registers/clipboards

%description -n vim-plugin-tregisters
List, edit, and run or execute registers and/or clipboards

Authors:
--------
   Thomas Link <micathom@gmail.com>

%package -n vim-plugin-tselectbuffer
License:        GPL
Version:        %tselectbuffer_version
Release:        1
Requires:       vim
Group:          Productivity/Text/Editors
Summary:        A quick buffer selector/switcher

%description -n vim-plugin-tselectbuffer
This plugin provides a simple buffer selector. It doesn't have all the features
other buffer selectors have but can be useful for quickly switching to a
different buffer or for deleting buffers.

Authors:
--------
   Thomas Link <micathom@gmail.com>

%package -n vim-plugin-tselectfiles
License:        GPL
Version:        %tselectfiles_version
Release:        1
Requires:       vim
Requires:       vim-plugin-tlib
Group:          Productivity/Text/Editors
Summary:        A quick file selector/browser/explorer

%description -n vim-plugin-tselectfiles
This plugin provides a simple file browser. It is not a full blown explorer but
can be nevertheless be useful for quickly selecting a few files or renaming
them.

Authors:
--------
   Thomas Link <micathom@gmail.com>

%package -n vim-plugin-utl
License:        MIT
Version:        %utl_version
Release:        1
Requires:       vim
Group:          Productivity/Text/Editors
Summary:        Universal text linking for vim

%description -n vim-plugin-utl
Universal text link allows you to set hyperlinks within your text documents.
Hyperlinks can be used to start applications, open related documents, or
bookmark parts of your text document.

Authors:
--------
   Stefan Bittner <stb@bf-consulting.de>

%package -n vim-plugin-zoomwin
License:        Other uncritical OpenSource License
Version:        %zoomwin_version
Release:        1
Requires:       vim
Group:          Productivity/Text/Editors
Summary:        Zoom in/out of windows (toggle between one window and multi-window)

%description -n vim-plugin-zoomwin
The idea is to make it easy to zoom into and out of a window.
Usage:

     Press <c-w>o : the current window zooms into a full screen
     Press <c-w>o again: the previous set of windows is restored

Authors:
--------
   Charles Campbell <drchip@campbellfamily.biz>

%package -n vim-plugin-latex
License:        Other uncritical OpenSource License
Version:        %latex_version
Release:        1
Requires:       vim
Requires:       texlive-latex
Group:          Productivity/Text/Editors
Summary:        A rich set of tools for editing LaTeX

%description -n vim-plugin-latex
Vim-LaTeX (aka LaTeX-suite) is a mature project which aims at bringing
together the rich set of LaTeX tools the vim community has produced over
the years into one comprehensive package. It provides a set of tools
which enable you to do all your LaTeX-ing without needing to quit Vim.

Authors:
--------
   Srinath Avadhanula <srinath@fastmail.fm>

%package -n vim-plugin-quilt
License:        GPL
Version:        %quilt_version
Release:        1
Requires:       quilt
Requires:       vim
Group:          Productivity/Text/Editors
Summary:        Quilt support for vim

%description -n vim-plugin-quilt
Vim plugin that helps with quilt operations from inside vim.


Authors:
--------
   Florian Delizy <florian.delizy@unfreeze.net>

%package -n vim-plugin-vimwiki
License:        GPLv2
Version:        %vimwiki_version
Release:        1
Requires:       vim
Group:          Productivity/Text/Editors
Summary:        Personal wiki for vim

%description -n vim-plugin-vimwiki
Vimwiki is a personal wiki for Vim. Using it you can organize text files with
hyperlinks. To do a quick start press <Leader>ww (this is usually \ww) to go
to your index wiki file. By default it is located in ~/vimwiki/index.wiki.
You do not have to create it manually - vimwiki can make it for you.


Authors:
--------
   Maxim Kim <habamax@gmail.com>

%package -n vim-plugin-gnupg
License:        GPL
Version:        %gnupg_version
Release:        1
Requires:       gpg2
Group:          Productivity/Text/Editors
Summary:        Plugin for transparent editing of gpg encrypted files

%description -n vim-plugin-gnupg
This script implements transparent editing of gpg encrypted files. The filename
must have a ".gpg", ".pgp" or ".asc" suffix. When opening such a file the
content is decrypted, when opening a new file the script will ask for the
recipients of the encrypted file. The file content will be encrypted to all
recipients before it is written. The script turns off viminfo and swapfile to
increase security. 

Authors:
--------
   Markus Braun <markus.brown@krawel.de>

%package -n vim-plugin-gitdiff
License:        GPL
Version:        %gitdiff_version
Release:        1
Requires:       git-core
Group:          Productivity/Text/Editors
Summary:        Show git diff in a split window

%description -n vim-plugin-gitdiff
This script provides two functions to display git diffs in vim.
:GITDiff [commitish]
    Split the vim window vertically, display the HEAD, or some other changeset, version of the file in the split, then diff them.
:GITChanges [commitish]
    Highlight lines that were changed since the HEAD or some other changeset. 

Authors:
--------
   Bart Trojanowski <bart@jukie.net>

%package -n vim-plugin-snipmate
License:        GPL
Version:        %snipmate_version
Release:        1
Group:          Productivity/Text/Editors
Summary:        Implements some of TextMate's snippets features in Vim

%description -n vim-plugin-snipmate
snipMate aims to be an unobtrusive, concise vim script that implements some of
TextMate's snippets features in Vim. A snippet is a piece of often-typed text
that you can insert into your document using a trigger word followed by a
<tab>.

For instance, in a C file using the default installation of snipMate.vim, if
you type "for<tab>" in insert mode, it will expand a typical for loop in C:

for (i = 0; i < count; i++) {
}

Authors:
--------
   Michael Sanders <msanders42+vim@gmail.com>


%prep
%setup -q -c -n %{name} -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9 -a10 -a11 -a12 -a13 -a14 -a15 -a16 -a17 -a18 -a19 -a20 -a21 -a22 -a23 -a24 -a25 -a26 -a27 -a28 -a29 -a30
# ------- patch locateopen ------
pushd vimplugin-locateopen-%locateopen_version
%patch1
popd

# -------- patch colorsel -------
pushd vimplugin-colorsel-%colorsel_version
%patch0 -p1
popd

%build

%install
for i in vimplugin-*; do
	pushd $i
	mkdir -p %buildroot/%vimplugin_dir
	cp -a * %buildroot/%vimplugin_dir/
	popd
done
mkdir -p %{buildroot}%{_defaultdocdir}/vimplugin-NERDtree/
mv %buildroot/%vimplugin_dir/nerdtree_plugin %{buildroot}%{_defaultdocdir}/vimplugin-NERDtree/

%clean
rm -rf $RPM_BUILD_ROOT

# For every plugin providing documentation, we have to call the post and postun scriptlets
# Unfortunatelly, there is no easy way how to achieve that except listing them manually :(

# documentation: vim-plugin-align

%post -n vim-plugin-align
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null

%postun -n vim-plugin-align
if [ $1 == 0 ]; then
  vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null
fi

# documentation: vim-plugin-a

%post -n vim-plugin-a
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null

%postun -n vim-plugin-a
if [ $1 == 0 ]; then
  vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null
fi

# documentation: vim-plugin-bufexplorer

%post -n vim-plugin-bufexplorer
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null

%postun -n vim-plugin-bufexplorer
if [ $1 == 0 ]; then
  vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null
fi

# documentation: vim-plugin-matchit

%post -n vim-plugin-matchit
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null

%postun -n vim-plugin-matchit
if [ $1 == 0 ]; then
  vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null
fi

# documentation: vim-plugin-multiplesearch

%post -n vim-plugin-multiplesearch
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null

%postun -n vim-plugin-multiplesearch
if [ $1 == 0 ]; then
  vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null
fi

# documentation: vim-plugin-NERDcommenter

%post -n vim-plugin-NERDcommenter
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null

%postun -n vim-plugin-NERDcommenter
if [ $1 == 0 ]; then
  vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null
fi

# documentation: vim-plugin-NERDtree

%post -n vim-plugin-NERDtree
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null

%postun -n vim-plugin-NERDtree
if [ $1 == 0 ]; then
  vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null
fi

# documentation: vim-plugin-project

%post -n vim-plugin-project
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null

%postun -n vim-plugin-project
if [ $1 == 0 ]; then
  vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null
fi

# documentation: vim-plugin-showmarks

%post -n vim-plugin-showmarks
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null

%postun -n vim-plugin-showmarks
if [ $1 == 0 ]; then
  vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null
fi

# documentation: vim-plugin-taglist

%post -n vim-plugin-taglist
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null

%postun -n vim-plugin-taglist
if [ $1 == 0 ]; then
  vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null
fi

# documentation: vim-plugin-tlib

%post -n vim-plugin-tlib
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null

%postun -n vim-plugin-tlib
if [ $1 == 0 ]; then
  vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null
fi

# documentation: vim-plugin-tselectfiles

%post -n vim-plugin-tselectfiles
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null

%postun -n vim-plugin-tselectfiles
if [ $1 == 0 ]; then
  vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null
fi

# documentation: vim-plugin-utl

%post -n vim-plugin-utl
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null

%postun -n vim-plugin-utl
if [ $1 == 0 ]; then
  vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null
fi

# documentation: vim-plugin-zoomwin

%post -n vim-plugin-zoomwin
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null

%postun -n vim-plugin-zoomwin
if [ $1 == 0 ]; then
  vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null
fi

# documentation: vim-plugin-latex

%post -n vim-plugin-latex
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null

%postun -n vim-plugin-latex
if [ $1 == 0 ]; then
  vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null
fi

# documentation: vim-plugin-quilt

%post -n vim-plugin-quilt
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null

%postun -n vim-plugin-quilt
if [ $1 == 0 ]; then
  vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null
fi

# documentation: vim-plugin-vimwiki

%post -n vim-plugin-vimwiki
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null

%postun -n vim-plugin-vimwiki
if [ $1 == 0 ]; then
  vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null
fi

# documentation: vim-plugin-snipmate

%post -n vim-plugin-snipmate
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null

%postun -n vim-plugin-snipmate
if [ $1 == 0 ]; then
  vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null
fi

%post
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null

%postun
if [ $1 == 0 ]; then
  vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null
fi

%files -n vim-plugin-align
%defattr(-,root,root,0755)
%vimplugin_dir/doc/Align.txt
%vimplugin_dir/autoload/AlignMaps.vim
%vimplugin_dir/autoload/Align.vim
%vimplugin_dir/plugin/AlignMapsPlugin.vim
%vimplugin_dir/plugin/AlignPlugin.vim
%vimplugin_dir/plugin/cecutil.vim

%files -n vim-plugin-a
%defattr(-,root,root,0755)
%vimplugin_dir/doc/alternate.txt
%vimplugin_dir/plugin/a.vim

%files -n vim-plugin-bufexplorer
%defattr(-,root,root,0755)
%vimplugin_dir/doc/bufexplorer.txt
%vimplugin_dir/plugin/bufexplorer.vim

%files -n vim-plugin-calendar
%defattr(-,root,root,0755)
%vimplugin_dir/plugin/calendar.vim

%files -n vim-plugin-colorsel
%defattr(-,root,root,0755)
%vimplugin_dir/plugin/colorsel.vim

%files -n vim-plugin-colorschemes
%defattr(-,root,root,0755)
%vimplugin_dir/colors/*.vim

%files -n vim-plugin-diffchanges
%defattr(-,root,root,0755)
%vimplugin_dir/plugin/diffchanges.vim

%files -n vim-plugin-locateopen
%defattr(-,root,root,0755)
%vimplugin_dir/plugin/locateopen.vim

%files -n vim-plugin-matchit
%defattr(-,root,root,0755)
%vimplugin_dir/doc/matchit.txt
%vimplugin_dir/plugin/matchit.vim

%files -n vim-plugin-matrix
%defattr(-,root,root,0755)
%vimplugin_dir/plugin/matrix.vim

%files -n vim-plugin-minibufexpl
%defattr(-,root,root,0755)
%vimplugin_dir/plugin/minibufexpl.vim

%files -n vim-plugin-multiplesearch
%defattr(-,root,root,0755)
%vimplugin_dir/doc/MultipleSearch.txt
%vimplugin_dir/autoload/MultipleSearch.vim
%vimplugin_dir/plugin/MultipleSearch.vim

%files -n vim-plugin-NERDcommenter
%defattr(-,root,root,0755)
%vimplugin_dir/doc/NERD_commenter.txt
%vimplugin_dir/plugin/NERD_commenter.vim

%files -n vim-plugin-NERDtree
%defattr(-,root,root,0755)
%vimplugin_dir/doc/NERD_tree.txt
%vimplugin_dir/plugin/NERD_tree.vim
%doc %{_defaultdocdir}/vimplugin-NERDtree

%files -n vim-plugin-project
%defattr(-,root,root,0755)
%vimplugin_dir/doc/project.txt
%vimplugin_dir/plugin/project.vim

%files -n vim-plugin-searchcomplete
%defattr(-,root,root,0755)
%vimplugin_dir/plugin/SearchComplete.vim

%files -n vim-plugin-showmarks
%defattr(-,root,root,0755)
%vimplugin_dir/doc/showmarks.txt
%vimplugin_dir/plugin/showmarks.vim

%files -n vim-plugin-supertab
%defattr(-,root,root,0755)
%vimplugin_dir/plugin/supertab.vim
%vimplugin_dir/doc/supertab.txt

%files -n vim-plugin-taglist
%defattr(-,root,root,0755)
%vimplugin_dir/doc/taglist.txt
%vimplugin_dir/plugin/taglist.vim

%files -n vim-plugin-tlib
%defattr(-,root,root,0755)
%vimplugin_dir/doc/tlib.txt
%vimplugin_dir/autoload/tlib
%vimplugin_dir/plugin/02tlib.vim
%vimplugin_dir/autoload/tlib.vim

%files -n vim-plugin-tregisters
%defattr(-,root,root,0755)
%vimplugin_dir/plugin/tregisters.vim

%files -n vim-plugin-tselectbuffer
%defattr(-,root,root,0755)
%vimplugin_dir/plugin/tselectbuffer.vim

%files -n vim-plugin-tselectfiles
%defattr(-,root,root,0755)
%vimplugin_dir/doc/tselectfiles.txt
%vimplugin_dir/autoload/tselectfiles.vim
%vimplugin_dir/plugin/tselectfiles.vim

%files -n vim-plugin-utl
%defattr(-,root,root,0755)
%vimplugin_dir/doc/utl_ref.txt
%vimplugin_dir/doc/utl_usr.txt
%vimplugin_dir/plugin/utl_scm.vim
%vimplugin_dir/plugin/utl_rc.vim
%vimplugin_dir/plugin/utl_uri.vim
%vimplugin_dir/plugin/utl.vim
%vimplugin_dir/plugin/utl_arr.vim

%files -n vim-plugin-zoomwin
%defattr(-,root,root,0755)
%vimplugin_dir/doc/ZoomWin.txt
%vimplugin_dir/plugin/ZoomWinPlugin.vim
%vimplugin_dir/autoload/ZoomWin.vim

%files -n vim-plugin-latex
%defattr(-,root,root,0755)
%vimplugin_dir/doc/latex*.txt
%vimplugin_dir/doc/imaps.txt
%vimplugin_dir/plugin/imaps.vim
%vimplugin_dir/plugin/libList.vim
%vimplugin_dir/plugin/remoteOpen.vim
%vimplugin_dir/plugin/filebrowser.vim
%vimplugin_dir/plugin/SyntaxFolds.vim
%vimplugin_dir/compiler/tex.vim
%dir %vimplugin_dir/compiler
%vimplugin_dir/indent/tex.vim
%dir %vimplugin_dir/indent
%dir %vimplugin_dir/ftplugin
%vimplugin_dir/ftplugin/latex-suite
%vimplugin_dir/ftplugin/tex_latexSuite.vim
%vimplugin_dir/ftplugin/bib_latexSuite.vim
%vimplugin_dir/ltags

%files -n vim-plugin-quilt
%defattr(-,root,root,0755)
%vimplugin_dir/doc/quilt.txt
%vimplugin_dir/plugin/quilt.vim

%files -n vim-plugin-vimwiki
%defattr(-,root,root,0755)
%vimplugin_dir/doc/vimwiki.txt
%vimplugin_dir/plugin/vimwiki.vim
%dir %vimplugin_dir/ftplugin
%vimplugin_dir/ftplugin/vimwiki.vim
%dir %vimplugin_dir/indent
%vimplugin_dir/autoload/vimwiki*.vim
%vimplugin_dir/syntax/vimwiki*.vim

%files -n vim-plugin-gnupg
%defattr(-,root,root,0755)
%vimplugin_dir/plugin/gnupg.vim

%files -n vim-plugin-gitdiff
%defattr(-,root,root,0755)
%vimplugin_dir/plugin/gitdiff.vim

%files -n vim-plugin-snipmate
%defattr(-,root,root,0755)
%vimplugin_dir/snippets
%vimplugin_dir/syntax/snippet.vim
%vimplugin_dir/plugin/snipMate.vim
%vimplugin_dir/ftplugin/html_snip_helper.vim
%vimplugin_dir/after
%vimplugin_dir/autoload/snipMate.vim
%vimplugin_dir/doc/snipMate.txt

%changelog