Accepting request 63784 from editors

Accepted submit request 63784 from user coolo

OBS-URL: https://build.opensuse.org/request/show/63784
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/vim-plugins?expand=0&rev=4
This commit is contained in:
Sascha Peilicke 2011-03-10 11:00:24 +00:00 committed by Git OBS Bridge
commit fd2945ca75
4 changed files with 367 additions and 269 deletions

7
_service Normal file
View File

@ -0,0 +1,7 @@
<services>
<service name="download_url">
<param name="protocol">http</param>
<param name="host">gitorious.org</param>
<param name="path">/opensuse/pack-tools/blobs/raw/master/vim/spec.snippets</param>
</service>
</services>

View File

@ -0,0 +1,123 @@
# 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
${3}

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Jan 15 18:29:53 UTC 2011 - roman@priesol.net
- added service for downloading spec.snippets for snipMate
-------------------------------------------------------------------
Tue Nov 2 13:30:40 UTC 2010 - puzel@novell.com

View File

@ -1,22 +1,9 @@
#
# 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/
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# norootforbuild
%define align_version 35.41
%define a_version 2.18
%define bufexplorer_version 7.2.6
@ -55,7 +42,7 @@ Release: 1
Summary: Plug-ins pack for Vim
Group: Productivity/Text/Editors
License: MIT
Url: http://www.vim.org/
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
@ -87,14 +74,17 @@ 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
Source31: spec.snippets
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
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.
@ -107,7 +97,6 @@ Authors:
%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
@ -126,7 +115,6 @@ Authors:
%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)
@ -144,7 +132,6 @@ Authors:
%package -n vim-plugin-bufexplorer
License: MIT
Version: %bufexplorer_version
Release: 1
Requires: vim
Group: Productivity/Text/Editors
Summary: Buffer Explorer / Browser
@ -164,7 +151,6 @@ Authors:
%package -n vim-plugin-calendar
License: MIT
Version: %calendar_version
Release: 1
Requires: vim
Group: Productivity/Text/Editors
Summary: Calendar for vim
@ -179,7 +165,6 @@ Authors:
%package -n vim-plugin-colorsel
License: Public Domain
Version: %colorsel_version
Release: 1
Requires: vim
Requires: gvim
Group: Productivity/Text/Editors
@ -196,7 +181,6 @@ Authors:
%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
@ -212,7 +196,6 @@ Authors:
%package -n vim-plugin-diffchanges
License: Public Domain
Version: %diffchanges_version
Release: 1
Requires: vim
Requires: diffutils
Group: Productivity/Text/Editors
@ -231,7 +214,6 @@ Authors:
%package -n vim-plugin-locateopen
License: Other uncritical OpenSource License
Version: %locateopen_version
Release: 1
Requires: vim
Requires: findutils-locate
Group: Productivity/Text/Editors
@ -255,7 +237,6 @@ Authors:
%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
@ -275,7 +256,6 @@ Authors:
%package -n vim-plugin-matrix
License: Public Domain
Version: %matrix_version
Release: 1
Requires: vim
Group: Productivity/Text/Editors
Summary: Matrix screensaver for vim
@ -290,7 +270,6 @@ Authors:
%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
@ -308,7 +287,6 @@ Authors:
%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
@ -326,7 +304,6 @@ Authors:
%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
@ -343,7 +320,6 @@ Authors:
%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
@ -361,7 +337,6 @@ Authors:
%package -n vim-plugin-project
License: MIT
Version: %project_version
Release: 1
Requires: vim
Group: Productivity/Text/Editors
Summary: Organize/Navigate projects of files
@ -383,7 +358,6 @@ Authors:
%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
@ -399,7 +373,6 @@ Authors:
%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
@ -419,7 +392,6 @@ Authors:
%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
@ -434,7 +406,6 @@ Authors:
%package -n vim-plugin-taglist
License: MIT
Version: %taglist_version
Release: 1
Requires: vim
Requires: ctags
Group: Productivity/Text/Editors
@ -452,7 +423,6 @@ Authors:
%package -n vim-plugin-tlib
License: GPL
Version: %tlib_version
Release: 1
Requires: vim
Group: Productivity/Text/Editors
Summary: Utility functions for vim
@ -468,7 +438,6 @@ Authors:
%package -n vim-plugin-tregisters
License: GPL
Version: %tregisters_version
Release: 1
Requires: vim
Requires: vim-plugin-tlib
Group: Productivity/Text/Editors
@ -484,7 +453,6 @@ Authors:
%package -n vim-plugin-tselectbuffer
License: GPL
Version: %tselectbuffer_version
Release: 1
Requires: vim
Group: Productivity/Text/Editors
Summary: A quick buffer selector/switcher
@ -501,7 +469,6 @@ Authors:
%package -n vim-plugin-tselectfiles
License: GPL
Version: %tselectfiles_version
Release: 1
Requires: vim
Requires: vim-plugin-tlib
Group: Productivity/Text/Editors
@ -519,7 +486,6 @@ Authors:
%package -n vim-plugin-utl
License: MIT
Version: %utl_version
Release: 1
Requires: vim
Group: Productivity/Text/Editors
Summary: Universal text linking for vim
@ -536,7 +502,6 @@ Authors:
%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)
@ -555,7 +520,6 @@ Authors:
%package -n vim-plugin-latex
License: Other uncritical OpenSource License
Version: %latex_version
Release: 1
Requires: vim
Requires: texlive-latex
Group: Productivity/Text/Editors
@ -574,7 +538,6 @@ Authors:
%package -n vim-plugin-quilt
License: GPL
Version: %quilt_version
Release: 1
Requires: quilt
Requires: vim
Group: Productivity/Text/Editors
@ -591,7 +554,6 @@ Authors:
%package -n vim-plugin-vimwiki
License: GPL v2
Version: %vimwiki_version
Release: 1
Requires: vim
Group: Productivity/Text/Editors
Summary: Personal wiki for vim
@ -610,7 +572,6 @@ Authors:
%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
@ -628,9 +589,7 @@ 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
@ -647,9 +606,7 @@ 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
@ -694,6 +651,8 @@ done
mkdir -p %{buildroot}%{_defaultdocdir}/vimplugin-NERDtree/
mv %buildroot/%vimplugin_dir/nerdtree_plugin %{buildroot}%{_defaultdocdir}/vimplugin-NERDtree/
cp %{SOURCE31} %buildroot/%vimplugin_dir/snippets/
%clean
rm -rf $RPM_BUILD_ROOT
@ -701,7 +660,6 @@ rm -rf $RPM_BUILD_ROOT
# 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
@ -711,7 +669,6 @@ 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
@ -721,7 +678,6 @@ 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
@ -731,7 +687,6 @@ 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
@ -741,7 +696,6 @@ 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
@ -751,7 +705,6 @@ 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
@ -761,7 +714,6 @@ 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
@ -771,7 +723,6 @@ 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
@ -781,7 +732,6 @@ 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
@ -791,7 +741,6 @@ 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
@ -801,7 +750,6 @@ 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
@ -811,7 +759,6 @@ 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
@ -821,7 +768,6 @@ 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
@ -831,7 +777,6 @@ 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
@ -841,7 +786,6 @@ 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
@ -851,7 +795,6 @@ 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
@ -861,7 +804,6 @@ 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
@ -871,7 +813,6 @@ 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
@ -1071,3 +1012,25 @@ fi
%vimplugin_dir/doc/snipMate.txt
%changelog
* Mon May 11 2009 - petr.uzel@suse.cz
- add vim-quilt
- call pre/post for all scripts containing documentation
* Sun Apr 5 2009 - petr.uzel@suse.cz
- add vim-plugin-latex
- clean up filelists
* Fri Mar 26 2009 - petr.uzel@suse.cz
- update vim-plugin-align to 35.41
- update vim-plugin-NEDRtree to 3.1.0
- update vim-plugin-supertab to 0.49
- update vim-plugin-zoomwin to 23
* Thu Mar 25 2009 - petr.uzel@suse.cz
- fix BRs (s/vimplugin-tlib/vim-plugin-tlib)
* Sat Jan 10 2009 - mstopka@opensuse.org
- rename all subpackages vimplugin-* => vim-plugin-* this is better from package naming convention point of view
* Mon Jan 05 2009 - puzel@suse.cz
- add missing requires to some subpackages
- fix rpmlint warnings
- fix vimplugin-locateopen description
- rename all subpackages vimplugins-* => vimplugin-*
* Wed Dec 31 2008 - mstopka@opensuse.org
- initial package based on Petr Uzel's packages from editors OBS project