SHA256
1
0
forked from pool/vim-plugins
Jiri Slaby 2022-02-07 11:23:48 +00:00 committed by Git OBS Bridge
parent bff162b109
commit 45c6b11c1b

View File

@ -33,10 +33,10 @@
%define gnupg_version 2.7.1
%define latex_version 1.10.0+20210818
%define locateopen_version 1.3
%define markdown_version 2.0.0+20220129
%define matrix_version 1.10
%define minibufexpl_version 6.3.2
%define multiplesearch_version 1.3
%define markdown_version 2.0.0+20220129
%define neomutt_version 20210218
%define NERDcommenter_version 2.6.0
%define NERDtree_version 6.10.16
@ -659,8 +659,7 @@ pushd file-line-%file_line_version
popd
find tlib_vim-%{tlib_version} -type f \( -name '*.vim' -o -name '*.txt' \) -exec chmod -v 644 {} +
chmod -v 644 vim-markdown-%{markdown_version}/indent/markdown.vim \
taglist-%{taglist_version}/doc/taglist.txt
chmod -v 644 taglist-%{taglist_version}/doc/taglist.txt
%build
@ -682,10 +681,6 @@ pushd tlib_vim-%{tlib_version}
rm -r addon-info.json doc/tags etc samples scripts test
popd
pushd vim-markdown-%{markdown_version}
rm -r registry test
popd
install -d %buildroot/%vimplugin_dir
for i in vimplugin-* a.vim-* ack.vim-* Align-* calendar.vim--Matsumoto-* \
colorsel.vim-* bufexplorer-* diffchanges.vim-* editorconfig-vim-* \
@ -694,8 +689,7 @@ for i in vimplugin-* a.vim-* ack.vim-* Align-* calendar.vim--Matsumoto-* \
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-* vim-markdown-* vimwiki-* \
ZoomWin-*; do
utl.vim-* vim-fugitive-* vim-gnupg-* vimwiki-* ZoomWin-*; do
pushd $i
cp -av * %buildroot/%vimplugin_dir/
popd
@ -711,21 +705,25 @@ install -d %{buildroot}%{_datadir}/appdata
install -m 644 vim-latex.metainfo.xml %{buildroot}%{_datadir}/appdata/
popd
pushd vim-markdown-%{markdown_version}
chmod 644 indent/markdown.vim
%{makeinstall} 'ADDONS=${VIMDIR}/site'
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[SC]E*
rm -rf %{buildroot}/%vimplugin_dir/LICEN?E*
rm -rf %{buildroot}/%vimplugin_dir/README*
rm -rf %{buildroot}/%vimplugin_dir/Makefile*
rm -rf %{buildroot}/%vimplugin_dir/doc/Makefile*
rm -rf %{buildroot}/%vimplugin_dir/doc/README*
rm -rf %{buildroot}/%vimplugin_dir/doc/*.{xml,xsl,css}
# For every plugin providing documentation, we have to call the post and postun
# scriptlets
# scriptlets.
%define vim_doc_post(n:) \
%%post %{-n:-n %{-n*}} \