2649d2a
%bcond_without check
2649d2a
2649d2a
# https://github.com/junegunn/fzf
d7cb852
%global goipath         github.com/junegunn/fzf
39b12b8
Version:                0.25.0
f56adfd
%global tag             %{version}
1ef72ab
d7cb852
%gometa
1ef72ab
1ef72ab
Name:           fzf
835edc4
Release:        1%{?dist}
1ef72ab
Summary:        A command-line fuzzy finder written in Go
2649d2a
1ef72ab
License:        MIT
d7cb852
URL:            %{gourl}
d7cb852
Source0:        %{gosource}
1ef72ab
Source1:        README.Fedora
39b12b8
# https://github.com/junegunn/fzf/pull/2305
39b12b8
Patch0001:      0001-Use-more-explicit-int-to-string-conversion.patch
1ef72ab
a13d312
BuildRequires: golang(github.com/gdamore/tcell) >= 1.4
1ef72ab
BuildRequires: golang(github.com/gdamore/tcell/encoding)
0791101
BuildRequires: golang(github.com/mattn/go-isatty) >= 0.0.12
0791101
BuildRequires: golang(github.com/mattn/go-runewidth) >= 0.0.8
0791101
BuildRequires: golang(github.com/mattn/go-shellwords) >= 1.0.9
0791101
BuildRequires: golang(github.com/saracen/walker)
1ef72ab
BuildRequires: golang(golang.org/x/crypto/ssh/terminal)
1ef72ab
1ef72ab
%description
1ef72ab
fzf is a general-purpose command-line fuzzy finder.
1ef72ab
1ef72ab
It's an interactive Unix filter for command-line that can be used with any
1ef72ab
list; files, command history, processes, hostnames, bookmarks, git commits,
1ef72ab
etc.
1ef72ab
1ef72ab
1ef72ab
%prep
2649d2a
%goprep
1ef72ab
cp %{SOURCE1} .
39b12b8
%patch0001 -p1
1ef72ab
1ef72ab
1ef72ab
%build
ff48b6d
export LDFLAGS='-X main.version=%{version} -X main.revision=Fedora '
2649d2a
%gobuild -o %{gobuilddir}/bin/fzf %{goipath}
1ef72ab
1ef72ab
# Cleanup interpreters
1ef72ab
sed -i -e '/^#!\//, 1d' shell/completion.*
1ef72ab
sed -i -e '1d;2i#!/bin/bash' bin/fzf-tmux
1ef72ab
1ef72ab
1ef72ab
%install
2649d2a
install -vdm 0755 %{buildroot}%{_bindir}
2649d2a
install -vDpm 0755 %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
1ef72ab
install -Dpm0755 bin/fzf-tmux %{buildroot}%{_bindir}/
1ef72ab
install -d -p %{buildroot}%{_mandir}/man1
1ef72ab
install -Dpm0644 man/man1/*.1 %{buildroot}%{_mandir}/man1/
1ef72ab
1ef72ab
install -d %{buildroot}%{_datadir}/fzf
1ef72ab
1ef72ab
# Install vim plugin
1ef72ab
install -d %{buildroot}%{_datadir}/vim/vimfiles/plugin
1ef72ab
install -Dpm0644 plugin/fzf.vim %{buildroot}%{_datadir}/vim/vimfiles/plugin/
d201fc4
install -d %{buildroot}%{_datadir}/nvim/site/plugin
d201fc4
install -Dpm0644 plugin/fzf.vim %{buildroot}%{_datadir}/nvim/site/plugin/
1ef72ab
1ef72ab
# Install shell completion
e874418
install -d %{buildroot}%{_sysconfdir}/bash_completion.d/
e874418
install -Dpm0644 shell/completion.bash %{buildroot}%{_sysconfdir}/bash_completion.d/fzf
1ef72ab
install -d %{buildroot}%{_datadir}/zsh/site-functions
1ef72ab
install -Dpm0644 shell/completion.zsh %{buildroot}%{_datadir}/zsh/site-functions/fzf
1ef72ab
1ef72ab
# Install shell key bindings (not enabled)
1ef72ab
install -d %{buildroot}%{_datadir}/fzf/shell
1ef72ab
install -Dpm0644 shell/key-bindings.* %{buildroot}%{_datadir}/fzf/shell/
1ef72ab
1ef72ab
2649d2a
%if %{with check}
1ef72ab
%check
2649d2a
%gocheck
2649d2a
%endif
1ef72ab
1ef72ab
1ef72ab
%files
1ef72ab
%license LICENSE
1ef72ab
%doc README.md README-VIM.md CHANGELOG.md README.Fedora
1ef72ab
%{_bindir}/fzf
1ef72ab
%{_bindir}/fzf-tmux
1ef72ab
%{_mandir}/man1/fzf.1*
1ef72ab
%{_mandir}/man1/fzf-tmux.1*
1ef72ab
%dir %{_datadir}/fzf
1ef72ab
%{_datadir}/fzf/shell
1ef72ab
%dir %{_datadir}/zsh/site-functions
1ef72ab
%{_datadir}/zsh/site-functions/fzf
1ef72ab
%dir %{_datadir}/vim/vimfiles/plugin
1ef72ab
%{_datadir}/vim/vimfiles/plugin/fzf.vim
d201fc4
%dir %{_datadir}/nvim/site/plugin
d201fc4
%{_datadir}/nvim/site/plugin/fzf.vim
e874418
%{_sysconfdir}/bash_completion.d/fzf
1ef72ab
1ef72ab
1ef72ab
%changelog
39b12b8
* Sat Jan 02 2021 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.25.0-1
39b12b8
- Update to latest version (#1912051)
39b12b8
1ef4f25
* Sat Dec 12 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.24.4-1
1ef4f25
- Update to latest version (#1904701)
1ef4f25
3f8a895
* Mon Nov 09 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.24.3-1
3f8a895
- Update to latest version (#1896207)
3f8a895
da6b769
* Mon Nov 09 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.24.2-1
da6b769
- Update to latest version (#1894363)
da6b769
ff48b6d
* Wed Oct 28 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.24.1-1
ff48b6d
- Update to latest version (#1892504)
ff48b6d
cd91c80
* Wed Oct 28 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.24.0-1
cd91c80
- Update to latest version (#1891744)
cd91c80
2756c45
* Sat Oct 10 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.23.1-1
2756c45
- Update to latest version (#1887123)
2756c45
a13d312
* Thu Oct 08 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.23.0-1
a13d312
- Update to latest version (#1886203)
a13d312
835edc4
* Mon Aug 03 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.22.0-1
835edc4
- Update to latest version (#1862819)
835edc4
79bbaa8
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.1-2
79bbaa8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
79bbaa8
0791101
* Wed May 06 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.21.1-1
0791101
- Update to latest version
0791101
f4be04e
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.0-3
f4be04e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f4be04e
e874418
* Sat Jan 11 16:47:31 CET 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0.20.0-2
e874418
- Fix bash completion installation location (#1789958)
e874418
9894df0
* Mon Dec 23 01:41:54 CET 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.20.0-1
9894df0
- Update to 0.20.0 (#1784565)
9894df0
c7e0df5
* Sat Nov 16 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.19.0-1
c7e0df5
- Update to latest version
c7e0df5
3f8b85e
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.0-3
3f8b85e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3f8b85e
2649d2a
* Thu Jul 11 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.18.0-2
2649d2a
- Update to latest Go macros
2649d2a
ac1e223
* Mon Apr 01 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.18.0-1
ac1e223
- Update to latest version
ac1e223
- Move bash completion to /use/share (#1683868)
ac1e223
0e0d549
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.5-3
0e0d549
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0e0d549
14d4c8d
* Mon Jan 14 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.17.5-2
14d4c8d
- Switch to forgesetup
14d4c8d
f56adfd
* Wed Oct 10 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.17.5-1
f56adfd
- New upstream release.
f56adfd
4bae6ba
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.4-2
4bae6ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4bae6ba
3f582ec
* Thu Jun 14 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.17.4-1
3f582ec
- New upstream release.
d7cb852
- Update spec based on More Go Programming template.
3f582ec
be30dc2
* Fri Mar 16 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.17.3-1
be30dc2
- New upstream release.
be30dc2
811e69a
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.1-2
811e69a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
811e69a
3f30562
* Sun Oct 22 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.17.1-1
3f30562
- New upstream release.
3f30562
152fb4a
* Wed Sep 20 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.17.0.2-1
152fb4a
- New upstream release.
152fb4a
8f42513
* Mon Sep 4 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.17.0-1
8f42513
- New upstream release.
8f42513
- Mention neovim in readme as well.
8f42513
d201fc4
* Mon Sep 4 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.16.11-7
d201fc4
- Install plugin for neovim also.
d201fc4
1ef72ab
* Thu Aug 24 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.16.11-6
1ef72ab
- Turn off source and unit testing packages.
1ef72ab
1ef72ab
* Wed Aug 23 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.16.11-5
1ef72ab
- Enable vim plugin by default.
1ef72ab
- Fix directory ownership on plugins.
1ef72ab
1ef72ab
* Mon Aug 21 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.16.11-4
1ef72ab
- Restore dist tag.
1ef72ab
1ef72ab
* Sun Aug 20 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.16.11-3
1ef72ab
- Fix source URL.
1ef72ab
- Enable debuginfo subpackage.
1ef72ab
- Correct interpreters in shebangs.
1ef72ab
1ef72ab
* Sun Aug 20 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.16.11-2
1ef72ab
- Add fzf binary to package.
1ef72ab
- Add Fedora-specific readme about optional things.
1ef72ab
- Install shell completions.
1ef72ab
- Install (disabled) vim plugin also.
1ef72ab
- Install (disabled) shell key bindings.
1ef72ab
1ef72ab
* Fri Aug 18 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.16.11-1
1ef72ab
- Initial package for Fedora