You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-ripgrep/SOURCES/rust2rpm.toml

27 lines
853 B

[package]
summary = "Line-oriented search tool"
extra-files = [
"%{_mandir}/man1/rg.1*",
"%{bash_completions_dir}/rg.bash",
"%{fish_completions_dir}/rg.fish",
"%{zsh_completions_dir}/_rg",
]
[features]
enable-all = true
[scripts]
install.post = [
"# generate and install manpage",
"target/release/rg --generate man > rg.1",
"install -Dpm 0644 rg.1 -t %{buildroot}/%{_mandir}/man1/",
"# generate and install shell completions",
"target/release/rg --generate complete-bash > rg.bash",
"target/release/rg --generate complete-fish > rg.fish",
"target/release/rg --generate complete-zsh > _rg",
"install -Dpm 0644 rg.bash -t %{buildroot}/%{bash_completions_dir}",
"install -Dpm 0644 rg.fish -t %{buildroot}/%{fish_completions_dir}",
"install -Dpm 0644 _rg -t %{buildroot}/%{zsh_completions_dir}",
]