Name: garage Version: 2.2.0 Release: 0%{?dist} Summary: An S3-compatible distributed object storage service designed for self-hosting at a small-to-medium scale. License: AGPLv3 BuildArch: x86_64 URL: https://git.deuxfleurs.fr/Deuxfleurs/garage Source0: https://git.deuxfleurs.fr/Deuxfleurs/garage/archive/v%{version}.tar.gz Source1: config.toml Source2: systemd.service Source3: sysusers.conf Source4: tmpfiles.conf BuildRequires: cargo BuildRequires: systemd-rpm-macros Requires(pre): shadow-utils %{?systemd_requires} %{?sysusers_requires_compat} Requires: glibc Requires: libgcc Requires: libsodium Requires: lmdb Requires: sqlite Requires: zstd %description Garage is an S3-compatible distributed object storage service designed for self-hosting at a small-to-medium scale. Garage is designed for storage clusters composed of nodes running at different physical locations, in order to easily provide a storage service that replicates data at these different locations and stays available even when some servers are unreachable. Garage also focuses on being lightweight, easy to operate, and highly resilient to machine failures. %prep %setup -n %{name} %build cargo build --release --no-default-features --features 'system-libs,metrics,lmdb,sqlite' %install install -D -m 755 target/release/garage %{buildroot}%{_bindir}/garage install -D -m 640 %{SOURCE1} %{buildroot}%{_sysconfdir}/garage.toml install -D -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/garage.service install -D -m 644 %{SOURCE3} %{buildroot}%{_sysusersdir}/garage.conf install -D -m 644 %{SOURCE4} %{buildroot}/usr/lib/tmpfiles.d/tmpfiles.conf %clean rm -rf %{buildroot} %pre %sysusers_create_compat %{SOURCE3} %post %systemd_post garage.service %preun %systemd_preun garage.service %postun %systemd_postun garage.service %files %defattr(-,garage,garage,-) %{_bindir}/garage %config(noreplace) %{_sysconfdir}/garage.toml %{_unitdir}/garage.service %{_sysusersdir}/garage.conf /usr/lib/tmpfiles.d/tmpfiles.conf %changelog * Tue Apr 14 2026 Martin Kaufmann - 2.2.0-0 - Initial build