Stephan Kulow 2015-07-12 20:53:06 +00:00 committed by Git OBS Bridge
commit 456a4d9578
4 changed files with 85 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jun 8 20:00:20 UTC 2015 - astieger@suse.com
- add plugin for ack
- add plugin for ag a.k.a. the_silver_searcher
-------------------------------------------------------------------
Fri Sep 12 11:25:56 UTC 2014 - mrueckert@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package vim-plugins
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 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
@ -47,6 +47,8 @@
%define gitdiff_version 2
%define snipmate_version 0.83
%define rails_version 4.4
%define ack_version 1.0.8
%define ag_version 20150518
Name: vim-plugins
Version: 7.2.22
@ -86,6 +88,8 @@ Source28: vimplugin-gnupg-%{gnupg_version}.tar.bz2
Source29: vimplugin-gitdiff-%{gitdiff_version}.tar.bz2
Source30: vimplugin-snipmate-%{snipmate_version}.tar.bz2
Source31: vimplugin-rails-%{rails_version}.tar.bz2
Source32: https://github.com/mileszs/ack.vim/archive/%{ack_version}.tar.gz#/vimplugin-ack-%{ack_version}.tar.gz
Source33: vimplugin-ag-%{ag_version}.tar.bz2
Source100: spec.snippets
Patch1: locateopen-1.3-locate-support.patch
BuildRequires: vim
@ -327,7 +331,7 @@ can be toggled on and off and individual marks can be hidden.
%package -n vim-plugin-supertab
Version: %supertab_version
Release: 0
Summary: Visually shows the location of marks
Summary: Easy insert mode completion with Tab key
License: BSD-3-Clause
Group: Productivity/Text/Editors
Requires: vim
@ -533,8 +537,32 @@ Recommends: rubygem(rails)
%description -n vim-plugin-rails
This plugin offers the many features for Ruby on Rails application development.
%package -n vim-plugin-ack
Version: %ack_version
Release: 0
Summary: Run the ack search tool from Vim
License: Vim
Group: Productivity/Text/Editors
Requires: ack >= 2.0
%description -n vim-plugin-ack
Run the ack search tool from Vim, with enhanced results listing.
%package -n vim-plugin-ag
Version: %ag_version
Release: 0
Summary: Run the ag (the_silver_search) search tool from Vim
License: Vim
Group: Productivity/Text/Editors
Requires: the_silver_searcher
%description -n vim-plugin-ag
Run the ack search tool from Vim, with enhanced results listing.
%prep
%setup -q -c -n %{name} -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a9 -a10 -a11 -a12 -a13 -a14 -a15 -a16 -a17 -a18 -a19 -a20 -a21 -a22 -a23 -a24 -a25 -a26 -a27 -a28 -a29 -a30 -a31
%setup -q -c -n %{name} -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a9 -a10 -a11 -a12 -a13 -a14 -a15 -a16 -a17 -a18 -a19 -a20 -a21 -a22 -a23 -a24 -a25 -a26 -a27 -a28 -a29 -a30 -a31 -a32 -a33
# ------- patch locateopen ------
pushd vimplugin-locateopen-%locateopen_version
%patch1
@ -552,6 +580,12 @@ done
mkdir -p %{buildroot}%{_defaultdocdir}/vimplugin-NERDtree/
mv %{buildroot}/%vimplugin_dir/nerdtree_plugin %{buildroot}%{_defaultdocdir}/vimplugin-NERDtree/
# vim-plugin-ack
pushd ack.vim-%{ack_version}
cp -a autoload doc plugin %{buildroot}/%{vimplugin_dir}
# vim-plugin-latext creates ftplugin
cp -a ftplugin/qf.vim %{buildroot}%{vimplugin_dir}/ftplugin/
cp %{SOURCE100} %{buildroot}/%vimplugin_dir/snippets/
# delete unneeded files
@ -765,6 +799,26 @@ 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-ack
%post -n vim-plugin-ack
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null
%postun -n vim-plugin-ack
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-ag
%post -n vim-plugin-ag
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null
%postun -n vim-plugin-ag
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
@ -963,4 +1017,20 @@ fi
%vimplugin_dir/autoload/rails.vim
%vimplugin_dir/doc/rails.txt
%files -n vim-plugin-ack
%defattr(-,root,root,0755)
%doc ack.vim-%{ack_version}/README.md
%vimplugin_dir/plugin/ack.vim
%vimplugin_dir/autoload/ack.vim
%vimplugin_dir/doc/ack.txt
%vimplugin_dir/doc/ack_quick_help.txt
%dir %vimplugin_dir/ftplugin
%vimplugin_dir/ftplugin/qf.vim
%files -n vim-plugin-ag
%defattr(-,root,root,0755)
%vimplugin_dir/plugin/ag.vim
%vimplugin_dir/autoload/ag.vim
%vimplugin_dir/doc/ag.txt
%changelog

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:90217dcce5b815d7ece55a8bde985ec4282b46fac1c7bd16b1b827b86eb4bd77
size 5984

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4c1e377fcf6babd33b8558db39969d6d60e8d69b9511104bd591ad730ca476d3
size 4673