diff --git a/rust-ripgrep.spec b/rust-ripgrep.spec index c2e0f37..c790f92 100644 --- a/rust-ripgrep.spec +++ b/rust-ripgrep.spec @@ -5,7 +5,7 @@ Name: rust-%{crate} Version: 0.7.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Line oriented search tool using Rust's regex library License: Unlicense or MIT @@ -63,6 +63,12 @@ the raw performance of grep with the usability of the silver searcher. %install %cargo_install %{__install} -Dpm0644 -t %{buildroot}%{_mandir}/man1 doc/rg.1 +%{__install} -Dpm0644 -t %{buildroot}%{_datadir}/bash-completion/completions \ + target/release/build/%{crate}-*/out/rg.bash-completion +%{__install} -Dpm0644 -t %{buildroot}%{_datadir}/fish/vendor_functions.d \ + target/release/build/%{crate}-*/out/rg.fish +%{__install} -Dpm0644 -t %{buildroot}%{_datadir}/zsh/site-functions \ + complete/_rg %if %{with check} %check @@ -74,8 +80,20 @@ the raw performance of grep with the usability of the silver searcher. %doc README.md CHANGELOG.md %{_bindir}/rg %{_mandir}/man1/rg.1* +%dir %{_datadir}/bash-completion +%dir %{_datadir}/bash-completion/completions +%{_datadir}/bash-completion/completions/rg.bash-completion +%dir %{_datadir}/fish +%dir %{_datadir}/fish/vendor_functions.d +%{_datadir}/fish/vendor_functions.d/rg.fish +%dir %{_datadir}/zsh +%dir %{_datadir}/zsh/site-functions +%{_datadir}/zsh/site-functions/_rg %changelog +* Thu Nov 23 2017 Igor Gnatenko - 0.7.1-4 +- Package completions + * Wed Nov 15 2017 Igor Gnatenko - 0.7.1-3 - Rebuild for dependency change