Compare commits
22 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
28071ef5f7 | ||
| 7c11e4c98a | |||
|
|
19223e0e66 | ||
|
|
5652affca3 | ||
|
|
a86f36a492 | ||
|
|
a76768011b | ||
|
|
cd441832fb | ||
|
|
c182609f7f | ||
|
|
230956a8ca | ||
| 8104781f46 | |||
|
|
29d1bba094 |
||
|
|
10344451dd | ||
| c324e765a4 | |||
|
|
a661911879 | ||
|
|
d1d956e7f4 | ||
|
|
1327f9b1d6 | ||
|
|
5a5b28d86e | ||
|
|
224c295e7f |
||
|
|
2cf97e8fd2 | ||
|
|
139d2e268b | ||
|
|
f773db8453 | ||
|
|
19badf6090 |
4 changed files with 79 additions and 70 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1 +1,2 @@
|
|||
vgrep-*.tar.gz
|
||||
/vgrep-*.tar.gz
|
||||
/vgrep-*-vendor.tar.bz2
|
||||
|
|
|
|||
31
changelog
Normal file
31
changelog
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 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 <zebob.m@gmail.com> - 2.5.1-1
|
||||
- Update to 2.5.1
|
||||
- Close: rhbz#1897608
|
||||
|
||||
* Sun Nov 01 2020 Carl George <carl@george.computer> - 2.5.0-1
|
||||
- Latest upstream
|
||||
- Include man page
|
||||
|
||||
* Tue Aug 18 2020 Carl George <carl@george.computer> - 2.4.0-1
|
||||
- Latest upstream
|
||||
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Mon Jul 20 2020 Carl George <carl@george.computer> - 2.3.3-1
|
||||
- Latest upstream
|
||||
|
||||
* Wed Jul 01 2020 Carl George <carl@george.computer> - 2.3.1-2
|
||||
- Embed version into binary
|
||||
|
||||
* Mon Jun 29 2020 Carl George <carl@george.computer> - 2.3.1-1
|
||||
- Initial package
|
||||
3
sources
3
sources
|
|
@ -1 +1,2 @@
|
|||
SHA512 (vgrep-2.5.1.tar.gz) = 97561ac933fa8a716c9205910d088bf0bb852f2d68ea2226e27e30b5885aabd37223ec4368d72cd0ae5c72735e273004bd054a2b633e61ecb7fd854254cfaecd
|
||||
SHA512 (vgrep-2.8.0.tar.gz) = 1fbd674a7fddffede70a9d0715bf09359d48abf5c238cace43996a222e3e34ec73a7911f62b8476a2dcef40485ce192476067fd99d52b7fa0e7e3fe9297f461e
|
||||
SHA512 (vgrep-2.8.0-vendor.tar.bz2) = 56eb03889e68439eb108124175708dc1b90ef9bd0d03a317baf1aade8bfc1a35c643d7d4c8a4108da50ea8ae3a4a9aeedcf9aa482bdf1cdfcdfde18bc095fb70
|
||||
|
|
|
|||
118
vgrep.spec
118
vgrep.spec
|
|
@ -1,93 +1,69 @@
|
|||
# https://github.com/vrothberg/vgrep
|
||||
%global goipath github.com/vrothberg/vgrep
|
||||
Version: 2.5.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: 3%{?dist}
|
||||
Summary: User-friendly pager for grep
|
||||
License: GPLv3
|
||||
URL: %{gourl}
|
||||
Source0: %{gosource}
|
||||
|
||||
BuildRequires: golang(github.com/jessevdk/go-flags)
|
||||
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: 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
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 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 <zebob.m@gmail.com> - 2.5.1-1
|
||||
- Update to 2.5.1
|
||||
- Close: rhbz#1897608
|
||||
|
||||
* Sun Nov 01 2020 Carl George <carl@george.computer> - 2.5.0-1
|
||||
- Latest upstream
|
||||
- Include man page
|
||||
|
||||
* Tue Aug 18 2020 Carl George <carl@george.computer> - 2.4.0-1
|
||||
- Latest upstream
|
||||
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Mon Jul 20 2020 Carl George <carl@george.computer> - 2.3.3-1
|
||||
- Latest upstream
|
||||
|
||||
* Wed Jul 01 2020 Carl George <carl@george.computer> - 2.3.1-2
|
||||
- Embed version into binary
|
||||
|
||||
* Mon Jun 29 2020 Carl George <carl@george.computer> - 2.3.1-1
|
||||
- Initial package
|
||||
%autochangelog
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue