Update to latest Go macros.

This commit is contained in:
Elliott Sales de Andrade
2019-07-10 20:44:55 -04:00
parent ac1e2237df
commit 2649d2ace1

View File

@@ -1,3 +1,6 @@
%bcond_without check
# https://github.com/junegunn/fzf
%global goipath github.com/junegunn/fzf
Version: 0.18.0
%global tag %{version}
@@ -5,8 +8,9 @@ Version: 0.18.0
%gometa
Name: fzf
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A command-line fuzzy finder written in Go
License: MIT
URL: %{gourl}
Source0: %{gosource}
@@ -28,13 +32,12 @@ etc.
%prep
%forgesetup
%goprep
cp %{SOURCE1} .
%build
%gobuildroot
%gobuild -o bin/fzf %{goipath}
%gobuild -o %{gobuilddir}/bin/fzf %{goipath}
# Cleanup interpreters
sed -i -e '/^#!\//, 1d' shell/completion.*
@@ -42,8 +45,8 @@ sed -i -e '1d;2i#!/bin/bash' bin/fzf-tmux
%install
install -d -p %{buildroot}%{_bindir}
install -Dpm0755 bin/fzf %{buildroot}%{_bindir}/
install -vdm 0755 %{buildroot}%{_bindir}
install -vDpm 0755 %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
install -Dpm0755 bin/fzf-tmux %{buildroot}%{_bindir}/
install -d -p %{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/
%if %{with check}
%check
%gochecks
%gocheck
%endif
%files
@@ -90,6 +95,9 @@ install -Dpm0644 shell/key-bindings.* %{buildroot}%{_datadir}/fzf/shell/
%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
- Update to latest version
- Move bash completion to /use/share (#1683868)