forked from carlwgeorge/ripgrep-rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathripgrep.spec
106 lines (78 loc) · 2.93 KB
/
ripgrep.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
Name: ripgrep
Version: 11.0.1
Release: 1%{?dist}
Summary: A search tool that combines the usability of ag with the raw speed of grep
License: MIT or Unlicense
URL: https://github.com/BurntSushi/ripgrep
Source0: https://github.com/BurntSushi/ripgrep/archive/%{version}/ripgrep-%{version}.tar.gz
BuildRequires: rust >= 1.34.0
BuildRequires: cargo
BuildRequires: asciidoc
%if 0%{?fedora} >= 24
ExclusiveArch: x86_64 i686 armv7hl
%else
ExclusiveArch: x86_64 aarch64
%endif
%description
ripgrep is a line-oriented search tool that recursively searches your current
directory for a regex pattern while respecting your gitignore rules. ripgrep
is similar to other popular search tools like The Silver Searcher, ack and
grep.
%prep
%autosetup
%build
cargo build --release
%install
install -D -p -m 755 target/release/rg %{buildroot}%{_bindir}/rg
install -D -p -m 644 target/release/build/ripgrep-*/out/rg.1 %{buildroot}%{_mandir}/man1/rg.1
install -D -p -m 644 target/release/build/ripgrep-*/out/rg.bash %{buildroot}%{_datadir}/bash-completion/completions/rg
install -D -p -m 644 target/release/build/ripgrep-*/out/rg.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/rg.fish
install -D -p -m 644 complete/_rg %{buildroot}%{_datadir}/zsh/site-functions/_rg
%check
cargo test
%files
%license COPYING LICENSE-MIT UNLICENSE
%doc README.md CHANGELOG.md GUIDE.md FAQ.md
%{_bindir}/rg
%{_mandir}/man1/rg.1*
%{_datadir}/bash-completion
%{_datadir}/fish
%{_datadir}/zsh
%changelog
* Mon Jun 10 2019 Carl George <[email protected]> - 11.0.1-1
- Latest upstream
* Mon Sep 10 2018 Carl George <[email protected]> - 0.10.0-1
- Latest upstream
* Mon Aug 06 2018 Carl George <[email protected]> - 0.9.0-1
- Latest upstream
* Sat Mar 03 2018 Carl George <[email protected]> - 0.8.1-1
- Latest upstream
* Tue Feb 13 2018 Carl George <[email protected]> - 0.8.0-1
- Latest upstream
- Man page is now generated during build
- Bash completion filename updated
- Include new guide and FAQ files
* Tue Nov 07 2017 Carl George <[email protected]> - 0.7.1-1
- Latest upstream
* Fri Jul 07 2017 Carl George <[email protected]> - 0.5.2-1
- Latest upstream
- Add zsh and fish completions
* Mon Apr 24 2017 Carl George <[email protected]> - 0.5.1-1
- Latest upstream
* Wed Mar 15 2017 Carl George <[email protected]> - 0.5.0-1
- Latest upstream
* Sun Dec 25 2016 Carl George <[email protected]> - 0.3.2-1
- Latest upstream
- Add bash completion
- Enable build for EPEL7 aarch64
* Sun Nov 27 2016 Carl George <[email protected]> - 0.3.1-1
- Latest upstream
* Sat Nov 12 2016 Carl George <[email protected]> - 0.2.9-1
- Latest upstream
* Mon Nov 07 2016 Carl George <[email protected]> - 0.2.8-1
- Latest upstream
* Thu Oct 13 2016 Carl George <[email protected]> - 0.2.3-1
- Latest upstream
- Set ExclusiveArch to match build requirements
* Thu Sep 29 2016 Carl George <[email protected]> - 0.2.1-1
- Initial spec file