SHA256
1
0
forked from pool/vim-plugins
Stephan Kulow 2011-10-18 07:35:02 +00:00 committed by Git OBS Bridge
parent 9ed46dfb96
commit 5807a927ee
2 changed files with 99 additions and 126 deletions

View File

@ -1,123 +0,0 @@
# Specfile snippets for snipMate vim plugin
# http://www.vim.org/scripts/script.php?script_id=2540
# by Petr Uzel <petr.uzel@suse.cz>
snippet Pa
Patch${1:N}: ${2:NAME}
snippet So
Source${1:N}: ${2:NAME}
snippet BR
BuildRequires: ${1:PKG}
snippet Re
Requires: ${1:PKG}
snippet pa
%patch${1:N} -p${2:1}
snippet bd
%{_bindir}
snippet sbd
%{_sbindir}
snippet infd
%{_infodir}
snippet md
%{_mandir}
snippet ddd
%{_defaultdocdir}
snippet ld
%{_libdir}
snippet incd
%{_includedir}
snippet files
%files ${1:NAME}
%defattr{-,root,root}
${2}
snippet filesn
%files -n ${1:NAME}
%defattr{-,root,root}
${2}
snippet Name
Name: `expand("%:t:r")`
Version: ${1:VERSION}
Release: 0
Summary: ${2:SUMMARY}
Group: ${3:GROUP}
License: ${4:LICENSE}
Url: ${5:URL}
PreReq: ${6:PKG}
Provides: ${7:SYMBOL}
BuildRequires: ${8:PKG}
Source: ${9:FILE}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
AutoReqProv: on
%description
${10:LONG DESCRIPTION}
Authors:
--------
${11:AUTHOR}
%prep
%setup
%build
%configure
make %{?jobs:-j%jobs}
%install
%makeinstall
%clean
rm -rf $RPM_BUILD_ROOT
%post
%postun
%files
%defattr(-,root,root)
%doc ChangeLog README COPYING
%changelog
snippet packagen
%package -n ${1:PKGNAME}
License: ${2:LICENSE}
Summary: ${3:SUMMARY}
Group: ${4:GROUP}
AutoReqProv: on
%description -n $1
${5:LONG DESCRIPTION}
snippet package
%package ${1:PKGNAME}
License: ${2:LICENSE}
Summary: ${3:SUMMARY}
Group: ${4:GROUP}
AutoReqProv: on
%description $1
${5:LONG DESCRIPTION}
snippet if
%if ${1:COND}
${2:# STUFF}
%endif
${3}
snippet ifarch
%ifarch ${1:ARCH}
${2:# STUFF}
%endif
${3}
snippet ifnarch
%ifnarch ${1:ARCH}
${2:# STUFF}
%endif
${3}
snippet install
install -m ${1:644} %{_buildroot}/%{_${2:DIR}}/${3:FILE}
snippet installd
install -d -m ${1:644} %{_buildroot}/%{_${2:DIR}}/${3:FILE}
snippet ifsusever
%if 0%{?suse_version} >= ${1:1130}
${2:# STUFF}
%else
${3:# STUFF}
%endif
${4}

View File

@ -1,7 +1,20 @@
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
# 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/
#
%define align_version 35.41
%define a_version 2.18
@ -89,6 +102,8 @@ Subpackages of this packages contains some plugins for Vi iMproved text editor.
%package -n vim-plugin-align
Version: %align_version
License: MIT
Summary: Plugin to produce aligned text, equations, declarations, etc
Group: Productivity/Text/Editors
@ -102,6 +117,8 @@ different.
%package -n vim-plugin-a
Version: %a_version
License: MIT
Summary: Alternate files quickly
Group: Productivity/Text/Editors
@ -115,6 +132,8 @@ C++ and ADA95 and can be configured to support a variety of languages.
%package -n vim-plugin-bufexplorer
Version: %bufexplorer_version
License: MIT
Summary: Buffer Explorer / Browser
Group: Productivity/Text/Editors
@ -130,6 +149,8 @@ that tab if you would like.
%package -n vim-plugin-calendar
Version: %calendar_version
License: MIT
Summary: Calendar for vim
Group: Productivity/Text/Editors
@ -140,6 +161,8 @@ Plugin for vim that displays simple calendar in the side window.
%package -n vim-plugin-colorsel
Version: %colorsel_version
License: Public Domain
Summary: A RGB/HSV color selector
Group: Productivity/Text/Editors
@ -152,6 +175,8 @@ selector.
%package -n vim-plugin-colorschemes
Version: %colorschemes_version
License: Various - see contained files for details
Summary: Vim color schemes selection
Group: Productivity/Text/Editors
@ -163,6 +188,8 @@ http://www.vim.org/scripts/script.php?script_id=625.
%package -n vim-plugin-diffchanges
Version: %diffchanges_version
License: Public Domain
Summary: Show changes since the last save
Group: Productivity/Text/Editors
@ -177,6 +204,8 @@ toggled.
%package -n vim-plugin-locateopen
Version: %locateopen_version
License: Other uncritical OpenSource License
Summary: Edit file without entering the whole path
Group: Productivity/Text/Editors
@ -196,6 +225,8 @@ Usage:
%package -n vim-plugin-matchit
Version: %matchit_version
License: MIT
Summary: Extended % matching for HTML, LaTeX, and many other languages
Group: Productivity/Text/Editors
@ -211,6 +242,8 @@ HTML), LaTeX, Lua, Pascal, SGML, Shell, Tcsh, Vim, XML.
%package -n vim-plugin-matrix
Version: %matrix_version
License: Public Domain
Summary: Matrix screensaver for vim
Group: Productivity/Text/Editors
@ -221,6 +254,8 @@ Matrix screensaver for VIM, inspired by Chris Allegretta's cmatrix.
%package -n vim-plugin-minibufexpl
Version: %minibufexpl_version
License: MIT
Summary: Elegant buffer explorer that takes very little screen space
Group: Productivity/Text/Editors
@ -234,6 +269,8 @@ window get visually marked.
%package -n vim-plugin-multiplesearch
Version: %multiplesearch_version
License: Other uncritical OpenSource License
Summary: Display multiple searches at the same time
Group: Productivity/Text/Editors
@ -247,6 +284,8 @@ number of colors is used, the script starts over with the first color.
%package -n vim-plugin-NERDcommenter
Version: %NERDcommenter_version
License: WTFPL
Summary: A plugin that allows for easy commenting of code for many filetypes
Group: Productivity/Text/Editors
@ -259,6 +298,8 @@ are available for most filetypes.
%package -n vim-plugin-NERDtree
Version: %NERDtree_version
License: WTFPL
Summary: A tree explorer plugin for navigating the filesystem
Group: Productivity/Text/Editors
@ -272,6 +313,8 @@ filesystem operations.
%package -n vim-plugin-project
Version: %project_version
License: MIT
Summary: Organize/Navigate projects of files
Group: Productivity/Text/Editors
@ -289,6 +332,8 @@ the vim window.
%package -n vim-plugin-searchcomplete
Version: %searchcomplete_version
License: GPLv2
Summary: Tab completion of words inside of a search
Group: Productivity/Text/Editors
@ -300,6 +345,8 @@ search ('/').
%package -n vim-plugin-showmarks
Version: %showmarks_version
License: Public Domain
Summary: Visually shows the location of marks
Group: Productivity/Text/Editors
@ -315,6 +362,8 @@ can be toggled on and off and individual marks can be hidden.
%package -n vim-plugin-supertab
Version: %supertab_version
License: BSD
Summary: Visually shows the location of marks
Group: Productivity/Text/Editors
@ -325,6 +374,8 @@ This script allows you to use the tab key to do all your insert completion.
%package -n vim-plugin-taglist
Version: %taglist_version
License: MIT
Summary: Source code browser with support for many languages
Group: Productivity/Text/Editors
@ -338,6 +389,8 @@ browse through source code files for different programming languages.
%package -n vim-plugin-tlib
Version: %tlib_version
License: GPL
Summary: Utility functions for vim
Group: Productivity/Text/Editors
@ -349,6 +402,8 @@ it unless another plugin requires you to do so.
%package -n vim-plugin-tregisters
Version: %tregisters_version
License: GPL
Summary: List, edit, and run/execute registers/clipboards
Group: Productivity/Text/Editors
@ -360,6 +415,8 @@ List, edit, and run or execute registers and/or clipboards
%package -n vim-plugin-tselectbuffer
Version: %tselectbuffer_version
License: GPL
Summary: A quick buffer selector/switcher
Group: Productivity/Text/Editors
@ -372,6 +429,8 @@ different buffer or for deleting buffers.
%package -n vim-plugin-tselectfiles
Version: %tselectfiles_version
License: GPL
Summary: A quick file selector/browser/explorer
Group: Productivity/Text/Editors
@ -385,6 +444,8 @@ them.
%package -n vim-plugin-utl
Version: %utl_version
License: MIT
Summary: Universal text linking for vim
Group: Productivity/Text/Editors
@ -397,6 +458,8 @@ bookmark parts of your text document.
%package -n vim-plugin-zoomwin
Version: %zoomwin_version
License: Other uncritical OpenSource License
Summary: Zoom in/out of windows (toggle between one window and multi-window)
Group: Productivity/Text/Editors
@ -411,6 +474,8 @@ Usage:
%package -n vim-plugin-latex
Version: %latex_version
License: Other uncritical OpenSource License
Summary: A rich set of tools for editing LaTeX
Group: Productivity/Text/Editors
@ -425,6 +490,8 @@ which enable you to do all your LaTeX-ing without needing to quit Vim.
%package -n vim-plugin-quilt
Version: %quilt_version
License: GPL
Summary: Quilt support for vim
Group: Productivity/Text/Editors
@ -436,6 +503,8 @@ Vim plugin that helps with quilt operations from inside vim.
%package -n vim-plugin-vimwiki
Version: %vimwiki_version
License: GPL v2
Summary: Personal wiki for vim
Group: Productivity/Text/Editors
@ -449,6 +518,8 @@ You do not have to create it manually - vimwiki can make it for you.
%package -n vim-plugin-gnupg
Version: %gnupg_version
License: GPL
Summary: Plugin for transparent editing of gpg encrypted files
Group: Productivity/Text/Editors
@ -464,6 +535,8 @@ increase security.
%package -n vim-plugin-gitdiff
Version: %gitdiff_version
Summary: Show git diff in a split window
Group: Productivity/Text/Editors
Requires: git-core
@ -477,6 +550,8 @@ This script provides two functions to display git diffs in vim.
%package -n vim-plugin-snipmate
Version: %snipmate_version
Summary: Implements some of TextMate's snippets features in Vim
Group: Productivity/Text/Editors
@ -494,9 +569,11 @@ for (i = 0; i < count; i++) {
%package -n vim-plugin-rails
Version: %rails_version
Summary: Support for Ruby on Rails development
Group: Productivity/Text/Editors
Requires: rubygem-rails
Requires: rubygem-rails
%description -n vim-plugin-rails
This plugin offers the many features for Ruby on Rails application development.
@ -534,6 +611,7 @@ rm -rf %{buildroot}
# 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
@ -543,6 +621,7 @@ if [ $1 == 0 ]; then
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
@ -552,6 +631,7 @@ if [ $1 == 0 ]; then
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
@ -561,6 +641,7 @@ if [ $1 == 0 ]; then
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
@ -570,6 +651,7 @@ if [ $1 == 0 ]; then
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
@ -579,6 +661,7 @@ if [ $1 == 0 ]; then
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
@ -588,6 +671,7 @@ if [ $1 == 0 ]; then
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
@ -597,6 +681,7 @@ if [ $1 == 0 ]; then
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
@ -606,6 +691,7 @@ if [ $1 == 0 ]; then
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
@ -615,6 +701,7 @@ if [ $1 == 0 ]; then
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
@ -624,6 +711,7 @@ if [ $1 == 0 ]; then
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
@ -633,6 +721,7 @@ if [ $1 == 0 ]; then
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
@ -642,6 +731,7 @@ if [ $1 == 0 ]; then
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
@ -651,6 +741,7 @@ if [ $1 == 0 ]; then
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
@ -660,6 +751,7 @@ if [ $1 == 0 ]; then
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
@ -669,6 +761,7 @@ if [ $1 == 0 ]; then
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
@ -678,6 +771,7 @@ if [ $1 == 0 ]; then
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
@ -687,6 +781,7 @@ if [ $1 == 0 ]; then
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
@ -696,6 +791,7 @@ if [ $1 == 0 ]; then
fi
# documentation: vim-plugin-rails
%post -n vim-plugin-rails
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null