%define _debugsource_template %{nil} %define debug_package %{nil} Name: rdrive Version: 0.7.2 Release: 1%{?dist} Summary: Local-first Google Drive backup tool License: GPL-3.0-or-later URL: https://github.com/sachesi/rdrive Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: cargo BuildRequires: rust >= 1.85 BuildRequires: gcc BuildRequires: zstd %description Local-first Google Drive backup tool written in Rust. Backs up local directories to Google Drive as versioned snapshots, supports a manual file heap, and offers encrypted sensitive backup where file names, paths, and metadata never appear in visible Drive storage. Includes three binaries: - rdrive: CLI client - rdrive-daemon: background sync daemon - rdrive-tui: TUI file manager %prep %autosetup -n %{name}-%{version} %build export CARGO_HOME="$PWD/.cargo-home" export RUSTFLAGS="%{?build_rustflags}" %if 0%{?_cargo_target_dir:1} export CARGO_TARGET_DIR="%{_cargo_target_dir}" %endif cargo build --release %install %if 0%{?_cargo_target_dir:1} install -Dpm 0755 "%{_cargo_target_dir}/release/rdrive" \ %{buildroot}%{_bindir}/rdrive install -Dpm 0755 "%{_cargo_target_dir}/release/rdrive-daemon" \ %{buildroot}%{_bindir}/rdrive-daemon install -Dpm 0755 "%{_cargo_target_dir}/release/rdrive-tui" \ %{buildroot}%{_bindir}/rdrive-tui %else install -Dpm 0755 target/release/rdrive \ %{buildroot}%{_bindir}/rdrive install -Dpm 0755 target/release/rdrive-daemon \ %{buildroot}%{_bindir}/rdrive-daemon install -Dpm 0755 target/release/rdrive-tui \ %{buildroot}%{_bindir}/rdrive-tui %endif # systemd user units install -d -m 0755 %{buildroot}%{_prefix}/lib/systemd/user/ install -pm 0644 packaging/usr/lib/systemd/user/rdrive-daemon.service \ %{buildroot}%{_prefix}/lib/systemd/user/rdrive-daemon.service install -pm 0644 packaging/usr/lib/systemd/user/rdrive-refresh.service \ %{buildroot}%{_prefix}/lib/systemd/user/rdrive-refresh.service install -pm 0644 packaging/usr/lib/systemd/user/rdrive-refresh.timer \ %{buildroot}%{_prefix}/lib/systemd/user/rdrive-refresh.timer %check test -x %{buildroot}%{_bindir}/rdrive test -x %{buildroot}%{_bindir}/rdrive-daemon test -x %{buildroot}%{_bindir}/rdrive-tui test -f %{buildroot}%{_prefix}/lib/systemd/user/rdrive-daemon.service test -f %{buildroot}%{_prefix}/lib/systemd/user/rdrive-refresh.service test -f %{buildroot}%{_prefix}/lib/systemd/user/rdrive-refresh.timer %files %license LICENSE* %doc README* %{_bindir}/rdrive %{_bindir}/rdrive-daemon %{_bindir}/rdrive-tui %dir %{_prefix}/lib/systemd/user/ %{_prefix}/lib/systemd/user/rdrive-daemon.service %{_prefix}/lib/systemd/user/rdrive-refresh.service %{_prefix}/lib/systemd/user/rdrive-refresh.timer %changelog * Sun Jun 07 2026 sachesi - 0.7.2-1 - Update to 0.7.2. * Sun Jun 07 2026 sachesi - 0.7.0-2 - Stop requiring release-only documentation in the source archive. * Fri Jun 05 2026 sachesi - 0.7.0-1 - Update to 0.7.0. * Mon May 25 2026 sachesi - 0.6.7 - Bump rdrive to v0.6.7 * Sun May 24 2026 sachesi - 0.6.2 - Bump rdrive to v0.6.2 * Sun May 24 2026 sachesi - 0.6.1 - Bump rdrive to v0.6.1 * Sat May 23 2026 sachesi - 0.6.0 - Bump rdrive to v0.6.0 * Sat May 23 2026 sachesi - 0.5.0 - Bump rdrive to v0.5.0 * Mon May 18 2026 sachesi - 0.4.0 - Rebuild * Mon May 18 2026 sachesi - 0.4.0 - Bump version to 0.4.0 * Sat May 16 2026 sachesi - 0.2.1 - Initial OBS package for rdrive