summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-07-05 06:34:18 +0000
committerCoprDistGit <infra@openeuler.org>2023-07-05 06:34:18 +0000
commit299951315a71edc1b090428714a10671ec2867c7 (patch)
treec184f61d322637543a890f0940c6ea28ef3938ef
parentfe7690495c30330d57c9a835e83535563552144f (diff)
automatic import of bat
-rw-r--r--bat.spec4
-rw-r--r--config28
2 files changed, 30 insertions, 2 deletions
diff --git a/bat.spec b/bat.spec
index 3714e8a..1303e88 100644
--- a/bat.spec
+++ b/bat.spec
@@ -5,8 +5,8 @@ Summary: A cat(1) clone with syntax highlighting and Git integration.
License: Apache-2.0, MIT
URL: https://github.com/sharkdp/bat
-Source0: https://github.com/sharkdp/bat/archive/refs/tags/bat-%{version}.tar.gz
-Source1: https://gitee.com/zerocraft/bat/blob/master/bat-%{version}.tar.gz
+Source0: https://gitee.com/zerocraft/bat/blob/master/bat-%{version}.tar.gz
+Patch0000: config
BuildRequires: cargo
diff --git a/config b/config
new file mode 100644
index 0000000..cfa20fe
--- /dev/null
+++ b/config
@@ -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 \ No newline at end of file