# TODO:
# - package vendored modules
-%define fzfrev d471067
-%define fzfvimrev 1dcdb21
-%define fzfgitrev b6192ec
-%define vendor_version 0.41.0
+%define fzfrev d3311d9
+%define fzfvimrev d1016db
+%define fzfgitrev aacab4a
+%define vendor_version 0.43.0
Summary: A command-line fuzzy finder written in Go
Name: fzf
-Version: 0.42.0
+Version: 0.43.0
Release: 1
License: MIT
Group: Applications/Shells
#Source0Download: https://github.com/junegunn/fzf/releases
Source0: https://github.com/junegunn/fzf/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: b47bb2d48df48eb7967d7d770d77d0f8
+# Source0-md5: 4d96a309165221d63a9436011972fde1
# cd fzf-%{version}
# go mod vendor
# cd ..
# tar cJf fzf-vendor-%{version}.tar.xz fzf-%{version}/vendor
Source1: %{name}-vendor-%{vendor_version}.tar.xz
-# Source1-md5: 9b06dbb8d20d3c224adec8d7e934d7ae
+# Source1-md5: f55bcb9c049734d3a0c50bdcdb690591
Source2: https://github.com/junegunn/fzf.vim/archive/%{fzfvimrev}/fzf.vim-%{fzfvimrev}.tar.gz
-# Source2-md5: 91b6bd2ac916d10daf351c5f6ecbdf03
+# Source2-md5: 7b51ec2eac49b7d64fda85b6c17a30f2
Source3: https://github.com/junegunn/fzf-git.sh/archive/%{fzfgitrev}/fzf-git.sh-%{fzfgitrev}.tar.gz
-# Source3-md5: ce2ca5973987c212618f2b5fff43006b
+# Source3-md5: 7e587b851b3ddcc0b07036208e157bed
Patch0: install.patch
URL: https://github.com/junegunn/fzf
BuildRequires: golang >= 1.17
src=${prefix_expand}.${shell}
echo -n "Generate $src ... "
-- fzf_completion="[[ \$- == *i* ]] && source \"$fzf_base/shell/completion.${shell}\" 2> /dev/null"
-+ fzf_completion="[[ \$- == *i* ]] && source \"/usr/share/fzf/completion.${shell}\" 2> /dev/null"
+- fzf_completion="source \"$fzf_base/shell/completion.${shell}\""
++ fzf_completion="source \"/usr/share/fzf/completion.${shell}\""
if [ $auto_completion -eq 0 ]; then
fzf_completion="# $fzf_completion"
fi