From d1795122913a5eb3e2883f6b03188b60093419321d29da0008078b6516d82c7c Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 18 Dec 2020 22:23:52 +0000 Subject: [PATCH] - Generate tags for vim documentation OBS-URL: https://build.opensuse.org/package/show/utilities/fzf?expand=0&rev=29 --- fzf.changes | 5 +++++ fzf.spec | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/fzf.changes b/fzf.changes index 5bb4695..0ffbc91 100644 --- a/fzf.changes +++ b/fzf.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Dec 18 22:22:06 UTC 2020 - Matej Cepl + +- Generate tags for vim documentation + ------------------------------------------------------------------- Sun Dec 13 19:52:48 UTC 2020 - Matej Cepl diff --git a/fzf.spec b/fzf.spec index f8671c1..afe707b 100644 --- a/fzf.spec +++ b/fzf.spec @@ -86,6 +86,8 @@ zsh shell completions for fzf Summary: Vim plugin for fzf Group: Productivity/File utilities BuildArch: noarch +Requires(post): (vim or neovim) +Requires(postun): (vim or neovim) %description -n vim-fzf Plugin for vim allowing use of fzf. @@ -143,6 +145,15 @@ go test -v -x -mod=vendor ${BUILDMOD} -a \ github.com/junegunn/fzf/src/tui \ github.com/junegunn/fzf/src/util +%post -n vim-fzf +vim -c "helptags %{vimplugin_dir}/doc |x" \ + || nvim -c "helptags %{vimplugin_dir}/doc |x" + +%postun -n vim-fzf +vim -c "helptags %{vimplugin_dir}/doc |x" \ + || nvim -c "helptags %{vimplugin_dir}/doc |x" \ + || : + %files %doc README.md %{_bindir}/fzf