Repository navigation
Expand file tree
/
Copy pathrustfs.spec
More file actions
133 lines (100 loc) · 4.56 KB
/
Copy pathrustfs.spec
File metadata and controls
133 lines (100 loc) · 4.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
%global _enable_debug_packages 0
%global _empty_manifest_terminate_build 0
Name: rustfs
Version: 1.0.4
Release: 1
Summary: High-performance distributed object storage for MinIO alternative
License: Apache-2.0
URL: https://github.com/rustfs/rustfs
Source0: https://github.com/rustfs/rustfs/archive/refs/tags/%{version}.tar.gz
BuildRequires: cargo
BuildRequires: rust
BuildRequires: mold
BuildRequires: pango-devel
BuildRequires: cairo-devel
BuildRequires: cairo-gobject-devel
BuildRequires: gdk-pixbuf2-devel
BuildRequires: atk-devel
BuildRequires: gtk3-devel
BuildRequires: libsoup-devel
BuildRequires: cmake
BuildRequires: clang-devel
%description
RustFS is a high-performance distributed object storage software built using Rust, one of the most popular languages worldwide. Along with MinIO, it shares a range of advantages such as simplicity, S3 compatibility, open-source nature, support for data lakes, AI, and big data. Furthermore, it has a better and more user-friendly open-source license in comparison to other storage systems, being constructed under the Apache license. As Rust serves as its foundation, RustFS provides faster speed and safer distributed features for high-performance object storage.
%prep
%autosetup -n %{name}-%{version}
%build
# Set the target directory according to the schema
export CMAKE=$(which cmake3)
%ifarch x86_64 || aarch64 || loongarch64
TARGET_DIR="target/%_arch"
PLATFORM=%_arch-unknown-linux-gnu
%else
TARGET_DIR="target/unknown"
PLATFORM=unknown-platform
%endif
# Set CARGO_TARGET_DIR and build the project
#CARGO_TARGET_DIR=$TARGET_DIR RUSTFLAGS="-C link-arg=-fuse-ld=mold" cargo build --release --package rustfs
%ifarch loongarch64
CFLAGS="-mcmodel=medium" CARGO_TARGET_DIR=$TARGET_DIR RUSTFLAGS="-C link-arg=-fuse-ld=mold -C link-arg=-lm" cargo build --release --target $PLATFORM -p rustfs --bins
%else
CARGO_TARGET_DIR=$TARGET_DIR RUSTFLAGS="-C link-arg=-fuse-ld=mold -C link-arg=-lm" cargo build --release --target $PLATFORM -p rustfs --bins
%endif
%install
mkdir -p %buildroot/usr/bin/
install %_builddir/%{name}-%{version}/target/%_arch/%_arch-unknown-linux-gnu/release/rustfs %buildroot/usr/bin/
%files
%license LICENSE
%doc docs
%_bindir/rustfs
%changelog
* Mon Oct 26 2026 overtrue <anzhengchao@gmail.com>
- Update RPM package to RustFS 1.0.4
* Sun Oct 18 2026 overtrue <anzhengchao@gmail.com>
- Update RPM package to RustFS 1.0.3
* Fri Oct 16 2026 overtrue <anzhengchao@gmail.com>
- Update RPM package to RustFS 1.0.2
* Sat Oct 03 2026 overtrue <anzhengchao@gmail.com>
- Update RPM package to RustFS 1.0.1
* Wed Sep 16 2026 overtrue <anzhengchao@gmail.com>
- Record the RustFS 1.0.0 stable release
* Mon Sep 14 2026 overtrue <anzhengchao@gmail.com>
- Update RPM package to RustFS 1.0.0
* Mon Aug 31 2026 overtrue <anzhengchao@gmail.com>
- Update RPM package to RustFS 1.0.0-rc.5
* Thu Aug 27 2026 overtrue <anzhengchao@gmail.com>
- Update RPM package to RustFS 1.0.0-rc.4
* Thu Aug 20 2026 overtrue <anzhengchao@gmail.com>
- Update RPM package to RustFS 1.0.0-rc.3
* Fri Aug 14 2026 overtrue <anzhengchao@gmail.com>
- Update RPM package to RustFS 1.0.0-rc.2
* Sat Aug 08 2026 overtrue <anzhengchao@gmail.com>
- Update RPM package to RustFS 1.0.0-rc.1
* Thu Jul 30 2026 overtrue <anzhengchao@gmail.com>
- Update RPM package to RustFS 1.0.0-beta.12
* Thu Jul 23 2026 overtrue <anzhengchao@gmail.com>
- Update RPM package to RustFS 1.0.0-beta.11
* Fri Jul 17 2026 overtrue <anzhengchao@gmail.com>
- Update RPM package to RustFS 1.0.0-beta.10
* Thu Jul 16 2026 houseme <housemecn@gmail.com>
- Update RPM package to RustFS 1.0.0-beta.10-preview.4
* Thu Jul 16 2026 houseme <housemecn@gmail.com>
- Update RPM package to RustFS 1.0.0-beta.10-preview.1
* Tue Jul 14 2026 houseme <housemecn@gmail.com>
- Update RPM package to RustFS 1.0.0-beta.9
* Wed Jun 10 2026 houseme <housemecn@gmail.com>
- Update RPM package to RustFS 1.0.0-beta.8
* Wed Jun 03 2026 houseme <housemecn@gmail.com>
- Update RPM package to RustFS 1.0.0-beta.7
* Thu May 28 2026 houseme <housemecn@gmail.com>
- Update RPM package to RustFS 1.0.0-beta.6
* Thu May 20 2026 houseme <housemecn@gmail.com>
- Update RPM package to RustFS 1.0.0-beta.4
* Thu May 14 2026 houseme <housemecn@gmail.com>
- Update RPM package to RustFS 1.0.0-beta.3
* Thu Jan 28 2026 houseme <housemecn@gmail.com>
- Initial RPM package for RustFS 1.0.0-alpha.81
* Thu Nov 20 2025 Wenlong Zhang <zhangwenlong@loongson.cn>
- Initial RPM package for RustFS 1.0.0-alpha.69
* Tue Jul 08 2025 Wenlong Zhang <zhangwenlong@loongson.cn>
- Initial RPM package for RustFS 1.0.0-alpha.36