From 279834628e829b775e82a030a5996228150bbd2b Mon Sep 17 00:00:00 2001 From: Wenl4ng <15861868579@163.com> Date: Wed, 20 Nov 2024 09:42:36 +0800 Subject: [PATCH] use lfs server Signed-off-by: Wenl4ng <15861868579@163.com> --- .gitattributes | 1 + .lfsconfig | 2 ++ rust-1.82.0-aarch64-unknown-linux-gnu.tar.xz | 3 +++ rust-1.82.0-riscv64gc-unknown-linux-gnu.tar.xz | 3 +++ rust-1.82.0-x86_64-unknown-linux-gnu.tar.xz | 3 +++ rust.spec | 9 ++++++--- rustc-1.82.0-src.tar.xz | 3 +++ 7 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 .gitattributes create mode 100644 .lfsconfig create mode 100644 rust-1.82.0-aarch64-unknown-linux-gnu.tar.xz create mode 100644 rust-1.82.0-riscv64gc-unknown-linux-gnu.tar.xz create mode 100644 rust-1.82.0-x86_64-unknown-linux-gnu.tar.xz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..d87f561 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.xz filter=lfs diff=lfs merge=lfs -text diff --git a/.lfsconfig b/.lfsconfig new file mode 100644 index 0000000..a8a12cd --- /dev/null +++ b/.lfsconfig @@ -0,0 +1,2 @@ +[lfs] + url = https://artlfs.openeuler.openatom.cn/src-openEuler/rust \ No newline at end of file diff --git a/rust-1.82.0-aarch64-unknown-linux-gnu.tar.xz b/rust-1.82.0-aarch64-unknown-linux-gnu.tar.xz new file mode 100644 index 0000000..5e0f13e --- /dev/null +++ b/rust-1.82.0-aarch64-unknown-linux-gnu.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99acf175be33bd96ac82d644125d0e2acc6962d61ee64851edc7d8ba3bd23ca4 +size 236675048 diff --git a/rust-1.82.0-riscv64gc-unknown-linux-gnu.tar.xz b/rust-1.82.0-riscv64gc-unknown-linux-gnu.tar.xz new file mode 100644 index 0000000..3c3cd4f --- /dev/null +++ b/rust-1.82.0-riscv64gc-unknown-linux-gnu.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:532190c3cdbdee9249bcde648b1c61b092bdd8885266ba9edd6df6824a454958 +size 217304308 diff --git a/rust-1.82.0-x86_64-unknown-linux-gnu.tar.xz b/rust-1.82.0-x86_64-unknown-linux-gnu.tar.xz new file mode 100644 index 0000000..e92b3a3 --- /dev/null +++ b/rust-1.82.0-x86_64-unknown-linux-gnu.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8a6bf24ca1fee2bd861590431c7954674191a0c0dfa0af4169731bc1459cf58a +size 178075016 diff --git a/rust.spec b/rust.spec index d8b688e..be2bb94 100644 --- a/rust.spec +++ b/rust.spec @@ -19,7 +19,7 @@ Name: rust Version: 1.82.0 -Release: 2 +Release: 3 Summary: The Rust Programming Language License: Apache-2.0 OR MIT URL: https://www.rust-lang.org @@ -254,12 +254,12 @@ Man pages and other related help documents for rust. %prep # download source0 and gpg check -wget -qO %{SOURCE0} https://user-repo.openeuler.openatom.cn/lfs-tar/rust/rustc-%{version}-src.tar.xz +#wget -qO %{SOURCE0} https://user-repo.openeuler.openatom.cn/lfs-tar/rust/rustc-%{version}-src.tar.xz gpg --import %{SOURCE2} gpg --verify %{SOURCE1} %{SOURCE0} %ifarch %{bootstrap_arches} -wget -qO %{_sourcedir}/%{bootstrap_root}.tar.xz https://user-repo.openeuler.openatom.cn/lfs-tar/rust/%{bootstrap_root}.tar.xz +#wget -qO %{_sourcedir}/%{bootstrap_root}.tar.xz https://user-repo.openeuler.openatom.cn/lfs-tar/rust/%{bootstrap_root}.tar.xz %setup -q -n %{bootstrap_root} -T -b %{bootstrap_source} ./install.sh --components=cargo,rustc,rust-std-%{rust_triple} \ --prefix=%{local_rust_root} --disable-ldconfig @@ -544,6 +544,9 @@ export %{rust_env} %{_mandir}/man1/cargo*.1* %changelog +* Wed Nov 20 2024 Wenl4ng - 1.82.0-3 +- use lfs-server + * Wed Nov 13 2024 jchzhou - 1.82.0-2 - Switch to bundled llvm for building, halve the 'max_cpus' in this case diff --git a/rustc-1.82.0-src.tar.xz b/rustc-1.82.0-src.tar.xz index e69de29..c83dcc0 100644 --- a/rustc-1.82.0-src.tar.xz +++ b/rustc-1.82.0-src.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1276a0bb8fa12288ba6fa96597d28b40e74c44257c051d3bc02c2b049bb38210 +size 219769328 -- Gitee