[packages/fzf] package fzf-tmux

atler atler at pld-linux.org
Thu Sep 29 02:06:39 CEST 2022


commit 18596e3a2ffc898c43fd363e0b4abc172ae467ce
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Sep 29 02:06:15 2022 +0200

    package fzf-tmux

 fzf.spec | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/fzf.spec b/fzf.spec
index 022372e..b5dd3d1 100644
--- a/fzf.spec
+++ b/fzf.spec
@@ -1,6 +1,5 @@
 # TODO:
 # - package vendored modules
-# - package fzf-tmux
 
 %define		fzfrev		04d0b02
 %define		fzfvimrev	9ceac71
@@ -42,6 +41,16 @@ It's an interactive Unix filter for command-line that can be used with
 any list; files, command history, processes, hostnames, bookmarks, git
 commits, etc.
 
+%package tmux
+Summary:	Script for starting fzf in tmux pane
+Requires:	%{name} = %{version}-%{release}
+Requires:	coreutils
+Requires:	tmux
+BuildArch:	noarch
+
+%description tmux
+Script for starting fzf in tmux pane.
+
 %package -n bash-completion-fzf
 Summary:	bash-completion for fzf
 Group:		Applications/Shells
@@ -91,7 +100,7 @@ Documentation for fzf Vim plugin.
 %{__mv} fzf-%{vendor_version}/vendor .
 %{__mv} fzf.vim-%{fzfvimrev}* fzf.vim
 %{__sed} -i -e "s at let s:bin_dir = .*@let s:bin_dir = '%{_datadir}/fzf/vim/bin/'@" fzf.vim/autoload/fzf/vim.vim
-%{__sed} -i -e '1s,.*env bash,#!/bin/bash,' fzf.vim/bin/preview.sh
+%{__sed} -i -e '1s,.*env bash,#!/bin/bash,' fzf.vim/bin/preview.sh bin/fzf-tmux
 %{__sed} -i -e '1s,.*env perl,#!%{__perl},' fzf.vim/bin/tags.pl
 
 %{__mkdir_p} .go-cache
@@ -106,6 +115,7 @@ install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/fzf/vim/bin,%{_mandir}/man1,%{
 install -d $RPM_BUILD_ROOT%{_datadir}/vim/{doc,autoload,plugin/fzf}
 
 cp -p target/fzf $RPM_BUILD_ROOT%{_bindir}/fzf
+cp -p bin/fzf-tmux $RPM_BUILD_ROOT%{_bindir}/fzf-tmux
 cp -p man/man1/fzf.1 $RPM_BUILD_ROOT%{_mandir}/man1
 cp -p shell/completion.bash $RPM_BUILD_ROOT%{_datadir}/fzf
 cp -p shell/key-bindings.bash $RPM_BUILD_ROOT%{_datadir}/fzf
@@ -133,6 +143,10 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_datadir}/fzf
 %{_mandir}/man1/fzf.1*
 
+%files tmux
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/fzf-tmux
+
 %files -n bash-completion-fzf
 %defattr(644,root,root,755)
 %{_datadir}/fzf/completion.bash
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fzf.git/commitdiff/18596e3a2ffc898c43fd363e0b4abc172ae467ce



More information about the pld-cvs-commit mailing list