diff --git a/sources b/sources index e32d746..0f09daa 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vgrep-2.6.1.tar.gz) = f61db1d6564ad63599f3e21ee83fda254cfd808324115cfa6edce85804f43a89fcec2c2f191e0ddd07c9fd0c99ca2811b80d2774d1765cc8100a29b89cf768f9 +SHA512 (vgrep-2.7.0.tar.gz) = 5cc9e866c6de9b024d29dc9aeeb87d6eea23becde63968b2a9266412bbe44920fa13d5e7dda47bb46135301ff7f5fd79e02ec2da8a9a694183d9e63aad64478d diff --git a/vgrep.spec b/vgrep.spec index d0336ec..e099a37 100644 --- a/vgrep.spec +++ b/vgrep.spec @@ -1,8 +1,8 @@ # https://github.com/vrothberg/vgrep %global goipath github.com/vrothberg/vgrep -Version: 2.6.1 +Version: 2.7.0 -%gometa +%gometa -f %global common_description %{expand: vgrep is a pager for grep, git-grep, ripgrep and similar grep implementations, @@ -19,29 +19,22 @@ directory trees or showing the context lines before and after the matches.} Name: vgrep Release: %autorelease Summary: User-friendly pager for grep -License: GPLv3 +License: GPL-3.0-only URL: %{gourl} -Source0: %{gosource} - -BuildRequires: golang(github.com/google/shlex) -BuildRequires: golang(github.com/jessevdk/go-flags) -BuildRequires: golang(github.com/json-iterator/go) -BuildRequires: golang(github.com/mattn/go-shellwords) -BuildRequires: golang(github.com/nightlyone/lockfile) -BuildRequires: golang(github.com/peterh/liner) -BuildRequires: golang(github.com/sirupsen/logrus) -BuildRequires: golang(golang.org/x/term) +Source: %{gosource} BuildRequires: go-md2man -%description -%{common_description} +%description %{common_description} %gopkg %prep %goprep +%generate_buildrequires +%go_generate_buildrequires + %build export LDFLAGS="-X main.version=%{version} " %gobuild -o %{gobuilddir}/bin/vgrep %{goipath}