SHA256
1
0
forked from pool/vim-plugins
Jiri Slaby 2023-03-14 06:43:15 +00:00 committed by Git OBS Bridge
parent 3df1af382e
commit 7059e5e0b4

View File

@ -717,7 +717,7 @@ chmod -v 644 taglist-%{taglist_version}/doc/taglist.txt
%install
pushd editorconfig-vim-%{editorconfig_version}
rm -rf plugin/editorconfig-core-py/ tests/
rm mkzip.sh
rm -f mkzip.sh
popd
pushd nerdtree-%{NERDtree_version}
@ -729,18 +729,23 @@ rm -f salt-vim.spec
popd
pushd tlib_vim-%{tlib_version}
rm -r addon-info.json doc/tags etc samples scripts test
rm -rf addon-info.json doc/tags etc samples scripts test
popd
pushd vim-airline-%{airline_version}
rm -rf t/ ISSUE_TEMPLATE.md Gemfile Rakefile
popd
install -d %buildroot/%vimplugin_dir
for i in vimplugin-* a.vim-* ack.vim-* Align-* calendar.vim--Matsumoto-* \
for i in vimplugin-* ale-* a.vim-* ack.vim-* Align-* calendar.vim--Matsumoto-* \
colorsel.vim-* bufexplorer-* diffchanges.vim-* editorconfig-vim-* \
file-line-* gitdiff.vim-* LocateOpen-* matrix.vim--Yang-* \
minibufexpl.vim-* MultipleSearch-* neomutt.vim-* nerdcommenter-* \
nerdtree-* project.tar.gz-* quilt-* rails.vim-* salt-vim-* \
SearchComplete-* ShowMarks7-* snipMate-* SuperTab--Van-Dewoestine-* \
taglist-* tlib_vim-* tregisters-* tselectbuffer-* tselectfiles-* \
utl.vim-* vim-fugitive-* vim-gnupg-* vimwiki-* ZoomWin-*; do
utl.vim-* vim-airline-* vim-fugitive-* vim-gnupg-* vimwiki-* \
ZoomWin-*; do
pushd $i
cp -av * %buildroot/%vimplugin_dir/
popd
@ -764,29 +769,18 @@ chmod 644 indent/markdown.vim
%{makeinstall} 'ADDONS=${VIMDIR}/site'
popd
pushd ale-%{ale_version}
for i in ale_linters doc autoload ftplugin plugin rplugin syntax; do
cp -a $i %{buildroot}/%{vimplugin_dir}
done
popd
pushd vim-airline-%{airline_version}
for i in doc autoload plugin; do
cp -a $i %{buildroot}/%{vimplugin_dir}
done
popd
install -d %{buildroot}/%vimplugin_dir/snippets/
install -m 644 %{SOURCE1000} %{buildroot}/%vimplugin_dir/snippets/
# delete unneeded files
rm -rf %{buildroot}/%vimplugin_dir/CHANGE*
rm -rf %{buildroot}/%vimplugin_dir/CONTRIBUT*
rm -rf %{buildroot}/%vimplugin_dir/LICEN?E*
rm -rf %{buildroot}/%vimplugin_dir/README*
rm -rf %{buildroot}/%vimplugin_dir/doc/Makefile*
rm -rf %{buildroot}/%vimplugin_dir/doc/README*
rm -rf %{buildroot}/%vimplugin_dir/doc/*.{xml,xsl,css}
rm -f %{buildroot}/%vimplugin_dir/CHANGE*
rm -f %{buildroot}/%vimplugin_dir/CONTRIBUT*
rm -f %{buildroot}/%vimplugin_dir/LICEN?E*
rm -f %{buildroot}/%vimplugin_dir/README*
rm -f %{buildroot}/%vimplugin_dir/supported-tools.md
rm -f %{buildroot}/%vimplugin_dir/doc/Makefile*
rm -f %{buildroot}/%vimplugin_dir/doc/README*
rm -f %{buildroot}/%vimplugin_dir/doc/*.{xml,xsl,css}
# For every plugin providing documentation, we have to call the post and postun
# scriptlets.