## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # https://github.com/vrothberg/vgrep %global goipath github.com/vrothberg/vgrep Version: 2.6.1 %gometa %global common_description %{expand: vgrep is a pager for grep, git-grep, ripgrep and similar grep implementations, and allows for opening the indexed file locations in a user-specified editor such as vim or emacs. vgrep is inspired by the ancient cgvg scripts but extended to perform further operations such as listing statistics of files and directory trees or showing the context lines before and after the matches.} %global golicenses LICENSE %global godocs README.md %bcond_without check Name: vgrep Release: %autorelease Summary: User-friendly pager for grep License: GPLv3 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) BuildRequires: go-md2man %description %{common_description} %gopkg %prep %goprep %build export LDFLAGS="-X main.version=%{version} " %gobuild -o %{gobuilddir}/bin/vgrep %{goipath} go-md2man -in docs/vgrep.1.md -out docs/vgrep.1 %install %gopkginstall install -D -p -m 0755 %{gobuilddir}/bin/vgrep %{buildroot}%{_bindir}/vgrep install -D -p -m 0644 docs/vgrep.1 %{buildroot}%{_mandir}/man1/vgrep.1 %if %{with check} %check %gocheck %endif %files %license %{golicenses} %doc %{godocs} %{_bindir}/vgrep %{_mandir}/man1/vgrep.1* %gopkgfiles %changelog * Sat Jan 21 2023 Fedora Release Engineering 2.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Oct 11 2022 Carl George 2.6.1-1 - Update to 2.6.1, resolves rhbz#2122034 * Sat Jul 23 2022 Fedora Release Engineering 2.6.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Maxwell G 2.6.0-3 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * Sat Jun 18 2022 Robert-André Mauchin 2.6.0-2 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Tue Jan 25 2022 Carl George 2.6.0-1 - Latest upstream 2.6.0 * Sat Jan 22 2022 Fedora Release Engineering - 2.5.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 2.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 2.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jan 8 12:50:39 CET 2021 Robert-André Mauchin - 2.5.1-1 - Update to 2.5.1 - Close: rhbz#1897608 * Sun Nov 01 2020 Carl George - 2.5.0-1 - Latest upstream - Include man page * Tue Aug 18 2020 Carl George - 2.4.0-1 - Latest upstream * Wed Jul 29 2020 Fedora Release Engineering - 2.3.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 20 2020 Carl George - 2.3.3-1 - Latest upstream * Wed Jul 01 2020 Carl George - 2.3.1-2 - Embed version into binary * Mon Jun 29 2020 Carl George - 2.3.1-1 - Initial package