forked from pool/vim-plugins
Accepting request 311191 from home:AndreasStieger:branches:editors
- add plugin for ack - add plugin for ag a.k.a. the_silver_searcher OBS-URL: https://build.opensuse.org/request/show/311191 OBS-URL: https://build.opensuse.org/package/show/editors/vim-plugins?expand=0&rev=35
This commit is contained in:
parent
5239cd5e65
commit
2fa72aee1f
@ -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
|
Fri Sep 12 11:25:56 UTC 2014 - mrueckert@suse.de
|
||||||
|
|
||||||
|
@ -47,6 +47,8 @@
|
|||||||
%define gitdiff_version 2
|
%define gitdiff_version 2
|
||||||
%define snipmate_version 0.83
|
%define snipmate_version 0.83
|
||||||
%define rails_version 4.4
|
%define rails_version 4.4
|
||||||
|
%define ack_version 1.0.8
|
||||||
|
%define ag_version 20150518
|
||||||
|
|
||||||
Name: vim-plugins
|
Name: vim-plugins
|
||||||
Version: 7.2.22
|
Version: 7.2.22
|
||||||
@ -86,6 +88,8 @@ Source28: vimplugin-gnupg-%{gnupg_version}.tar.bz2
|
|||||||
Source29: vimplugin-gitdiff-%{gitdiff_version}.tar.bz2
|
Source29: vimplugin-gitdiff-%{gitdiff_version}.tar.bz2
|
||||||
Source30: vimplugin-snipmate-%{snipmate_version}.tar.bz2
|
Source30: vimplugin-snipmate-%{snipmate_version}.tar.bz2
|
||||||
Source31: vimplugin-rails-%{rails_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
|
Source100: spec.snippets
|
||||||
Patch1: locateopen-1.3-locate-support.patch
|
Patch1: locateopen-1.3-locate-support.patch
|
||||||
BuildRequires: vim
|
BuildRequires: vim
|
||||||
@ -533,8 +537,32 @@ Recommends: rubygem(rails)
|
|||||||
%description -n vim-plugin-rails
|
%description -n vim-plugin-rails
|
||||||
This plugin offers the many features for Ruby on Rails application development.
|
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
|
%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 ------
|
# ------- patch locateopen ------
|
||||||
pushd vimplugin-locateopen-%locateopen_version
|
pushd vimplugin-locateopen-%locateopen_version
|
||||||
%patch1
|
%patch1
|
||||||
@ -552,6 +580,12 @@ done
|
|||||||
mkdir -p %{buildroot}%{_defaultdocdir}/vimplugin-NERDtree/
|
mkdir -p %{buildroot}%{_defaultdocdir}/vimplugin-NERDtree/
|
||||||
mv %{buildroot}/%vimplugin_dir/nerdtree_plugin %{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/
|
cp %{SOURCE100} %{buildroot}/%vimplugin_dir/snippets/
|
||||||
|
|
||||||
# delete unneeded files
|
# 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
|
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null
|
||||||
fi
|
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
|
%post
|
||||||
vim -u NONE -U NONE -X -n '+set nobackup nomore' '+helptags %vimplugin_dir/doc/' '+qa!' < /dev/null &> /dev/null
|
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/autoload/rails.vim
|
||||||
%vimplugin_dir/doc/rails.txt
|
%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
|
%changelog
|
||||||
|
3
vimplugin-ack-1.0.8.tar.gz
Normal file
3
vimplugin-ack-1.0.8.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:90217dcce5b815d7ece55a8bde985ec4282b46fac1c7bd16b1b827b86eb4bd77
|
||||||
|
size 5984
|
3
vimplugin-ag-20150518.tar.bz2
Normal file
3
vimplugin-ag-20150518.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:4c1e377fcf6babd33b8558db39969d6d60e8d69b9511104bd591ad730ca476d3
|
||||||
|
size 4673
|
Loading…
Reference in New Issue
Block a user