1 Star 0 Fork 3

Wang Kui/rust-ripgrep

forked from src-openEuler/rust-ripgrep 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
rust-ripgrep.spec 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
Suyun 提交于 2024-09-23 17:43 +08:00 . Init package at 14.1.0
%global debug_package %{nil}
%global crate_name ripgrep
Name: rust-ripgrep
Version: 14.1.0
Release: 1
Summary: Line-oriented search tool
License: Unlicense OR MIT
URL: https://crates.io/crates/ripgrep
Source0: https://github.com/BurntSushi/ripgrep/archive/refs/tags/%{version}.tar.gz
Source1: vendor.tar.xz
Source2: cargo_config
BuildRequires: cargo
%global _description %{expand:
Ripgrep is a line-oriented search tool that recursively searches the
current directory for a regex pattern while respecting gitignore rules.
ripgrep has first class support on Windows, macOS and Linux.}
%description %{_description}
%prep
%setup -q -T -b 0 -n %{crate_name}-%{version}
%setup -q -D -T -a 1 -n %{crate_name}-%{version}
cp %{SOURCE2} .cargo/config.toml
%build
cargo build --release
%install
export CARGO_HOME=`pwd`/cargo-home/
# cargo install appends /bin to the path
cargo install --root=%{buildroot}%{_prefix} --path .
# remove spurious files
rm -f %{buildroot}%{_prefix}/.crates.toml
rm -f %{buildroot}%{_prefix}/.crates2.json
%files
%license UNLICENSE
%{_bindir}/rg
%changelog
* Mon Sep 23 2024 Suyun <suyun@aosc.io> - 14.1.0-1
- Init package at 14.1.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wangkui35/rust-ripgrep.git
git@gitee.com:wangkui35/rust-ripgrep.git
wangkui35
rust-ripgrep
rust-ripgrep
master

搜索帮助