diff --git a/bats-indent-19eb3c5.patch b/bats-indent-19eb3c5.patch new file mode 100644 index 0000000..e6f33c3 --- /dev/null +++ b/bats-indent-19eb3c5.patch @@ -0,0 +1,9 @@ +diff -rNu bats.vim-0.10.0.orig/after/indent/bats.vim bats.vim-0.10.0/after/indent/bats.vim +--- bats.vim-0.10.0.orig/after/indent/bats.vim 1970-01-01 01:00:00.000000000 +0100 ++++ bats.vim-0.10.0/after/indent/bats.vim 2023-09-04 16:26:22.078065023 +0200 +@@ -0,0 +1,5 @@ ++" Bats.vim - Syntax files for Bats (Bash Automated Testing System). ++" Version: 0.10.0 ++ ++" Use Bash indentation. ++runtime! indent/sh.vim diff --git a/vim-plugins.changes b/vim-plugins.changes index fbffc0b..47e4237 100644 --- a/vim-plugins.changes +++ b/vim-plugins.changes @@ -3,6 +3,12 @@ Thu Sep 7 22:27:36 UTC 2023 - David Disseldorp - add vim-plugin-cscope +------------------------------------------------------------------- +Mon Sep 4 14:50:28 UTC 2023 - Olav Reinert + +- add vim-plugin-bats 0.10.0 + * add upstream file not released yet: bats-indent-19eb3c5.patch + ------------------------------------------------------------------- Tue Jul 11 07:51:41 UTC 2023 - Jiri Slaby diff --git a/vim-plugins.spec b/vim-plugins.spec index 7ff6ee7..a8ab226 100644 --- a/vim-plugins.spec +++ b/vim-plugins.spec @@ -22,6 +22,7 @@ %define align_version_orig 37-43 %define align_version 37.43 %define a_version 2.18 +%define bats_version 0.10.0 %define bufexplorer_version 7.4.26 %define calendar_version 2.5 %define colorsel_version 20110107 @@ -104,7 +105,8 @@ Source35: https://github.com/tpope/vim-fugitive/archive/refs/tags/v%{fugit Source36: https://github.com/vim-airline/vim-airline/archive/refs/tags/v%{airline_version}.tar.gz#/vimplugin-airline-%{airline_version}.tar.gz Source37: https://github.com/dense-analysis/ale/archive/refs/tags/v%{ale_version}.tar.gz#/vimplugin-ale-%{ale_version}.tar.gz Source38: https://github.com/dhruvasagar/vim-table-mode/archive/refs/tags/v%{table_mode_version}.tar.gz#/vimplugin-table-mode-%{table_mode_version}.tar.gz -Source39: https://cscope.sourceforge.net/cscope_maps.vim +Source39: https://github.com/aliou/bats.vim/archive/refs/tags/v%{bats_version}.tar.gz#/vimplugin-bats-%{bats_version}.tar.gz +Source40: https://cscope.sourceforge.net/cscope_maps.vim # from _service Source100: file-line-%{file_line_version}.tar.xz Source101: vim-markdown-%{markdown_version}.tar.xz @@ -119,6 +121,7 @@ Patch0: salt-syntax-avoid-multiline-lets.patch Patch1: locateopen-1.3-locate-support.patch Patch2: showmarks-signs.patch Patch3: file-line-Fix-other-plugins-loading.patch +Patch4: bats-indent-19eb3c5.patch BuildRequires: rsync BuildRequires: vim BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -197,6 +200,18 @@ comments, align declarations, etc. It handles alignment on multiple separators, not just the first one, and the separators may be the same across the line or different. +%package -n vim-plugin-bats +Version: %bats_version +Release: 0 +Summary: Bats plugin for Vim +License: Vim +Group: Productivity/Text/Editors +URL: https://github.com/aliou/bats.vim + +%description -n vim-plugin-bats +This Vim plugin provides support for editing Bats (Bash Automated Testing +System) test files. + %package -n vim-plugin-bufexplorer Version: %bufexplorer_version Release: 0 @@ -721,7 +736,7 @@ Usage: Press o again: the previous set of windows is restored %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 -a26 -a27 -a28 -a30 -a31 -a32 -a33 -a34 -a35 -a36 -a37 -a38 -a100 -a101 -a102 -a103 -a104 +%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 -a26 -a27 -a28 -a30 -a31 -a32 -a33 -a34 -a35 -a36 -a37 -a38 -a39 -a100 -a101 -a102 -a103 -a104 pushd salt-vim-%{salt_version} %patch0 -p1 popd @@ -735,6 +750,9 @@ popd pushd file-line-%file_line_version %patch3 -p1 popd +pushd bats.vim-%{bats_version} +%patch4 -p1 +popd find tlib_vim-%{tlib_version} -type f \( -name '*.vim' -o -name '*.txt' \) -exec chmod -v 644 {} + chmod -v 644 taglist-%{taglist_version}/doc/taglist.txt @@ -799,6 +817,10 @@ cat > vim-latex-%{latex_version}/.rsync-filter < bats.vim-%{bats_version}/.rsync-filter <