From 2649d2ace13f4b96803114823667e398a792f266 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Wed, 10 Jul 2019 20:44:55 -0400 Subject: [PATCH] Update to latest Go macros. --- fzf.spec | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/fzf.spec b/fzf.spec index 7e3f2a2..3b4b540 100644 --- a/fzf.spec +++ b/fzf.spec @@ -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 - 0.18.0-2 +- Update to latest Go macros + * Mon Apr 01 2019 Elliott Sales de Andrade - 0.18.0-1 - Update to latest version - Move bash completion to /use/share (#1683868)