Compare commits

...
Sign in to create a new pull request.

14 commits

Author SHA1 Message Date
Fedora Release Engineering
28071ef5f7 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 08:28:02 +00:00
7c11e4c98a Port to new golang packaging guidelines
- Use vendor tarball for build dependencies
- Remove golang-github-vrothberg-vgrep-devel subpackage rhbz#2446694
2026-03-20 01:50:01 -05:00
Maxwell G
19223e0e66 Rebuild for https://fedoraproject.org/wiki/Changes/golang1.26 2026-02-02 20:02:45 -06:00
Fedora Release Engineering
5652affca3 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 19:53:23 +00:00
Alejandro Sáez
a86f36a492 rebuild 2025-10-10 15:14:45 +02:00
Maxwell G
a76768011b Rebuild for golang-1.25.0 2025-08-15 18:44:42 -05:00
Fedora Release Engineering
cd441832fb Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 20:04:06 +00:00
Fedora Release Engineering
c182609f7f Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 14:18:17 +00:00
Fedora Release Engineering
230956a8ca Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 08:44:31 +00:00
8104781f46 Update to 2.8.0 rhbz#2282260 2024-07-05 14:40:30 -05:00
Maxwell G
29d1bba094
Rebuild for golang 1.22.0 2024-02-11 23:40:57 +00:00
Fedora Release Engineering
10344451dd Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 07:42:05 +00:00
c324e765a4 Update to version 2.7.0, resolves rhbz#2245195
- Switch to automatically generated buildrequires
- Switch to SPDX license identifier
- Disable i686 build
2023-11-29 16:38:35 -06:00
Fedora Release Engineering
a661911879 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 17:35:46 +00:00
3 changed files with 48 additions and 46 deletions

3
.gitignore vendored
View file

@ -1 +1,2 @@
vgrep-*.tar.gz
/vgrep-*.tar.gz
/vgrep-*-vendor.tar.bz2

View file

@ -1 +1,2 @@
SHA512 (vgrep-2.6.1.tar.gz) = f61db1d6564ad63599f3e21ee83fda254cfd808324115cfa6edce85804f43a89fcec2c2f191e0ddd07c9fd0c99ca2811b80d2774d1765cc8100a29b89cf768f9
SHA512 (vgrep-2.8.0.tar.gz) = 1fbd674a7fddffede70a9d0715bf09359d48abf5c238cace43996a222e3e34ec73a7911f62b8476a2dcef40485ce192476067fd99d52b7fa0e7e3fe9297f461e
SHA512 (vgrep-2.8.0-vendor.tar.bz2) = 56eb03889e68439eb108124175708dc1b90ef9bd0d03a317baf1aade8bfc1a35c643d7d4c8a4108da50ea8ae3a4a9aeedcf9aa482bdf1cdfcdfde18bc095fb70

View file

@ -1,69 +1,69 @@
# https://github.com/vrothberg/vgrep
%global goipath github.com/vrothberg/vgrep
Version: 2.6.1
%bcond check 1
%gometa
Name: vgrep
Version: 2.8.0
Release: %autorelease
ExclusiveArch: %{golang_arches_future}
Summary: User-friendly pager for grep
License: Apache-2.0 AND BSD-3-Clause AND GPL-3.0-only AND MIT
URL: https://github.com/vrothberg/vgrep
Source0: %{url}/archive/v%{version}/vgrep-%{version}.tar.gz
Source1: vgrep-%{version}-vendor.tar.bz2
%global common_description %{expand:
BuildRequires: go-rpm-macros
BuildRequires: go-vendor-tools
BuildRequires: askalono-cli
BuildRequires: go-md2man
%description
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.}
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
%autosetup -a 1
%build
export LDFLAGS="-X main.version=%{version} "
%gobuild -o %{gobuilddir}/bin/vgrep %{goipath}
# command
%global gomodulesmode GO111MODULE=on
export GO_LDFLAGS="-X main.version=%{version} "
%gobuild -o bin/vgrep .
# manpage
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}
%install
# licenses
%go_vendor_license_install
# command
install -D -p -m 0755 -t %{buildroot}%{_bindir} bin/vgrep
# manpage
install -D -p -m 0644 -t %{buildroot}%{_mandir}/man1 docs/vgrep.1
%check
%gocheck
# license validation
%go_vendor_license_check
# upstream tests
%if %{with check}
%gocheck2
%endif
%files
%license %{golicenses}
%doc %{godocs}
%files -f %{go_vendor_license_filelist}
%doc README.md
%{_bindir}/vgrep
%{_mandir}/man1/vgrep.1*
%gopkgfiles
%changelog
%autochangelog