Update to latest Go macros.
This commit is contained in:
22
fzf.spec
22
fzf.spec
@@ -1,3 +1,6 @@
|
|||||||
|
%bcond_without check
|
||||||
|
|
||||||
|
# https://github.com/junegunn/fzf
|
||||||
%global goipath github.com/junegunn/fzf
|
%global goipath github.com/junegunn/fzf
|
||||||
Version: 0.18.0
|
Version: 0.18.0
|
||||||
%global tag %{version}
|
%global tag %{version}
|
||||||
@@ -5,8 +8,9 @@ Version: 0.18.0
|
|||||||
%gometa
|
%gometa
|
||||||
|
|
||||||
Name: fzf
|
Name: fzf
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: A command-line fuzzy finder written in Go
|
Summary: A command-line fuzzy finder written in Go
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: %{gourl}
|
URL: %{gourl}
|
||||||
Source0: %{gosource}
|
Source0: %{gosource}
|
||||||
@@ -28,13 +32,12 @@ etc.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%forgesetup
|
%goprep
|
||||||
cp %{SOURCE1} .
|
cp %{SOURCE1} .
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%gobuildroot
|
%gobuild -o %{gobuilddir}/bin/fzf %{goipath}
|
||||||
%gobuild -o bin/fzf %{goipath}
|
|
||||||
|
|
||||||
# Cleanup interpreters
|
# Cleanup interpreters
|
||||||
sed -i -e '/^#!\//, 1d' shell/completion.*
|
sed -i -e '/^#!\//, 1d' shell/completion.*
|
||||||
@@ -42,8 +45,8 @@ sed -i -e '1d;2i#!/bin/bash' bin/fzf-tmux
|
|||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -d -p %{buildroot}%{_bindir}
|
install -vdm 0755 %{buildroot}%{_bindir}
|
||||||
install -Dpm0755 bin/fzf %{buildroot}%{_bindir}/
|
install -vDpm 0755 %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
|
||||||
install -Dpm0755 bin/fzf-tmux %{buildroot}%{_bindir}/
|
install -Dpm0755 bin/fzf-tmux %{buildroot}%{_bindir}/
|
||||||
install -d -p %{buildroot}%{_mandir}/man1
|
install -d -p %{buildroot}%{_mandir}/man1
|
||||||
install -Dpm0644 man/man1/*.1 %{buildroot}%{_mandir}/man1/
|
install -Dpm0644 man/man1/*.1 %{buildroot}%{_mandir}/man1/
|
||||||
@@ -67,8 +70,10 @@ install -d %{buildroot}%{_datadir}/fzf/shell
|
|||||||
install -Dpm0644 shell/key-bindings.* %{buildroot}%{_datadir}/fzf/shell/
|
install -Dpm0644 shell/key-bindings.* %{buildroot}%{_datadir}/fzf/shell/
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with check}
|
||||||
%check
|
%check
|
||||||
%gochecks
|
%gocheck
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@@ -90,6 +95,9 @@ install -Dpm0644 shell/key-bindings.* %{buildroot}%{_datadir}/fzf/shell/
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 11 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.18.0-2
|
||||||
|
- Update to latest Go macros
|
||||||
|
|
||||||
* Mon Apr 01 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.18.0-1
|
* Mon Apr 01 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.18.0-1
|
||||||
- Update to latest version
|
- Update to latest version
|
||||||
- Move bash completion to /use/share (#1683868)
|
- Move bash completion to /use/share (#1683868)
|
||||||
|
|||||||
Reference in New Issue
Block a user