Accepting request 1073494 from editors

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1073494
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/vim-plugins?expand=0&rev=47
This commit is contained in:
Dominique Leuenberger 2023-03-21 16:44:07 +00:00 committed by Git OBS Bridge
commit 66f071ebf4
3 changed files with 67 additions and 45 deletions

5
global-rsync-filter Normal file
View File

@ -0,0 +1,5 @@
- .*
- /CHANGE*
- /CONTRIBUT*
- /LICEN?E*
- /README*

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Mar 14 08:16:22 UTC 2023 - Jiri Slaby <jslaby@suse.cz>
- use rsync for installs
We can exclude files instead of ugly rm -rf
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Mar 13 13:46:02 UTC 2023 - Ludwig Nussel <lnussel@suse.de> Mon Mar 13 13:46:02 UTC 2023 - Ludwig Nussel <lnussel@suse.de>

View File

@ -110,12 +110,14 @@ Source102: neomutt.vim-%{neomutt_version}.tar.xz
Source103: salt-vim-%{salt_version}.tar.xz Source103: salt-vim-%{salt_version}.tar.xz
Source104: vim-latex-%{latex_version}.tar.xz Source104: vim-latex-%{latex_version}.tar.xz
Source200: gitrebase.vim Source200: gitrebase.vim
Source300: global-rsync-filter
Source1000: https://raw.githubusercontent.com/openSUSE/pack-tools/master/contrib/vim/spec.snippets Source1000: https://raw.githubusercontent.com/openSUSE/pack-tools/master/contrib/vim/spec.snippets
Source1001: check_for_updates.pl Source1001: check_for_updates.pl
Patch0: salt-syntax-avoid-multiline-lets.patch Patch0: salt-syntax-avoid-multiline-lets.patch
Patch1: locateopen-1.3-locate-support.patch Patch1: locateopen-1.3-locate-support.patch
Patch2: showmarks-signs.patch Patch2: showmarks-signs.patch
Patch3: file-line-Fix-other-plugins-loading.patch Patch3: file-line-Fix-other-plugins-loading.patch
BuildRequires: rsync
BuildRequires: vim BuildRequires: vim
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
@ -715,51 +717,73 @@ chmod -v 644 taglist-%{taglist_version}/doc/taglist.txt
%build %build
%install %install
pushd editorconfig-vim-%{editorconfig_version} # BEGIN EXCLUDES
rm -rf plugin/editorconfig-core-py/ tests/ cat > ale-%{ale_version}/.rsync-filter <<EOF
rm -f mkzip.sh - /supported-tools.md
popd EOF
pushd nerdtree-%{NERDtree_version} cat > editorconfig-vim-%{editorconfig_version}/.rsync-filter <<EOF
rm -f _config.yml screenshot.png - /plugin/editorconfig-core-py/
popd - /tests/
- /mkzip.sh
EOF
pushd salt-vim-%{salt_version} cat > nerdtree-%{NERDtree_version}/.rsync-filter <<EOF
rm -f salt-vim.spec - /_config.yml
popd - /nerdtree_plugin/
- /screenshot.png
EOF
pushd tlib_vim-%{tlib_version} cat > salt-vim-%{salt_version}/.rsync-filter <<EOF
rm -rf addon-info.json doc/tags etc samples scripts test - /salt-vim.spec
popd EOF
pushd vim-airline-%{airline_version} cat > tlib_vim-%{tlib_version}/.rsync-filter <<EOF
rm -rf t/ ISSUE_TEMPLATE.md Gemfile Rakefile - /addon-info.json
popd - /doc/tags
- /etc/
- /samples/
- /scripts/
- /test/
EOF
cat > vim-airline-%{airline_version}/.rsync-filter <<EOF
- /t/
- /ISSUE_TEMPLATE.md
- /Gemfile
- /Rakefile
EOF
cat > vim-latex-%{latex_version}/.rsync-filter <<EOF
- /Makefile*
- /vim-latex.metainfo.xml
- /doc/*.css
- /doc/*.xml
- /doc/*.xsl
- /doc/Makefile*
- /doc/README*
EOF
# END EXCLUDES
install -d %buildroot/%vimplugin_dir install -d %buildroot/%vimplugin_dir
for i in vimplugin-* ale-* a.vim-* ack.vim-* Align-* calendar.vim--Matsumoto-* \ for i in */; do
colorsel.vim-* bufexplorer-* diffchanges.vim-* editorconfig-vim-* \ test "$i" = 'vim-markdown-%{markdown_version}/' && continue
file-line-* gitdiff.vim-* LocateOpen-* matrix.vim--Yang-* \ rsync -FFXHav --filter='merge %{SOURCE300}' \
minibufexpl.vim-* MultipleSearch-* neomutt.vim-* nerdcommenter-* \ "$i" %buildroot/%{vimplugin_dir}/
nerdtree-* project.tar.gz-* quilt-* rails.vim-* salt-vim-* \
SearchComplete-* ShowMarks7-* snipMate-* SuperTab--Van-Dewoestine-* \
taglist-* tlib_vim-* tregisters-* tselectbuffer-* tselectfiles-* \
utl.vim-* vim-airline-* vim-fugitive-* vim-gnupg-* vimwiki-* \
ZoomWin-*; do
pushd $i
cp -av * %buildroot/%vimplugin_dir/
popd
done done
install -d %buildroot/%vimplugin_dir/after/ftplugin/ install -d %buildroot/%vimplugin_dir/after/ftplugin/
install -m 644 %{SOURCE200} %buildroot/%vimplugin_dir/after/ftplugin/ install -m 644 %{SOURCE200} %buildroot/%vimplugin_dir/after/ftplugin/
install -d %{buildroot}%{_defaultdocdir}/vimplugin-NERDtree/ install -d %{buildroot}/%vimplugin_dir/snippets/
mv %{buildroot}/%vimplugin_dir/nerdtree_plugin %{buildroot}%{_defaultdocdir}/vimplugin-NERDtree/ install -m 644 %{SOURCE1000} %{buildroot}/%vimplugin_dir/snippets/
pushd nerdtree-%{NERDtree_version}
install -d %{buildroot}%{_defaultdocdir}/vimplugin-NERDtree/
install -m 644 nerdtree_plugin/* %{buildroot}%{_defaultdocdir}/vimplugin-NERDtree/
popd
# vim-plugin-latex
pushd vim-latex-%{latex_version} pushd vim-latex-%{latex_version}
cp -av compiler doc ftplugin indent latextags ltags plugin %{buildroot}/%{vimplugin_dir}
install -d %{buildroot}%{_datadir}/appdata install -d %{buildroot}%{_datadir}/appdata
install -m 644 vim-latex.metainfo.xml %{buildroot}%{_datadir}/appdata/ install -m 644 vim-latex.metainfo.xml %{buildroot}%{_datadir}/appdata/
popd popd
@ -769,19 +793,6 @@ chmod 644 indent/markdown.vim
%{makeinstall} 'ADDONS=${VIMDIR}/site' %{makeinstall} 'ADDONS=${VIMDIR}/site'
popd popd
install -d %{buildroot}/%vimplugin_dir/snippets/
install -m 644 %{SOURCE1000} %{buildroot}/%vimplugin_dir/snippets/
# delete unneeded files
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 # For every plugin providing documentation, we have to call the post and postun
# scriptlets. # scriptlets.