diff options
author | CoprDistGit <infra@openeuler.org> | 2023-07-05 09:19:26 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-07-05 09:19:26 +0000 |
commit | c145bf6e1eb672a006dfc0838ff73e4c4e507098 (patch) | |
tree | e5bae8734bcc981a6182549ddc3d22bb83ff03bc | |
parent | 310c8070ccfccf57e51316654d632ca085537e7b (diff) |
automatic import of bat
-rw-r--r-- | bat.spec | 16 | ||||
-rw-r--r-- | config | 28 |
2 files changed, 42 insertions, 2 deletions
@@ -6,7 +6,8 @@ License: Apache-2.0, MIT URL: https://github.com/sharkdp/bat Source0: https://gitee.com/zerocraft/bat/blob/master/bat-%{version}.tar.gz -Source1: https://gitee.com/zerocraft/bat/blob/master/cargo_config.tar.gz +Source1: cargo_config.tar.gz +Source2: config BuildRequires: cargo @@ -17,6 +18,17 @@ A cat(1) clone with syntax highlighting and Git integration. %setup -n %{name}-%{version} -%install +tar xf %{SOURCE1} + +cp %{SOURCE2} ~/.cargo/ + ls -al + +ls ~/.cargo/ + +%install cargo install --locked bat + +%changelog +* 07 05 2023 zerocraft <zero.craft@hotmail.com> - 0.23.0 +- openEuler init @@ -0,0 +1,28 @@ +[source.crates-io] +replace-with = 'rsproxy' +registry = "https://github.com/rust-lang/crates.io-index" + +[source.rsproxy] +registry = "https://rsproxy.cn/crates.io-index" + +[registries.rsproxy] +index = "https://rsproxy.cn/crates.io-index" + +# 中国科学技术大学 +[source.ustc] +registry = "git://mirrors.ustc.edu.cn/crates.io-index" + +# 上海交通大学 +[source.sjtu] +registry = "https://mirrors.sjtug.sjtu.edu.cn/git/crates.io-index" + +# 清华大学 +[source.tuna] +registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git" + +# rustcc社区 +[source.rustcc] +registry = "https://code.aliyun.com/rustcc/crates.io-index.git" + +[net] +git-fetch-with-cli = true |