%global debug_package %{nil} Name: rustic # renovate: datasource=github-releases depName=rustic-rs/rustic extractVersion=true Version: 0.10.3 Release: 1%{?dist} Summary: rustic - fast, encrypted, and deduplicated backups powered by Rust License: MIT OR Apache-2.0 URL: https://github.com/rustic-rs/%{name} Source: %{url}/archive/refs/tags/v%{version}.tar.gz BuildRequires: cargo BuildRequires: rust >= 1.85.0 %description %prep %autosetup -n %{name}-%{version} %build export RUSTFLAGS="%{build_rustflags}" cargo build --release --locked %install install -Dpm 0755 target/release/%{name} -t %{buildroot}%{_bindir}/ %files %license LICENSE-MIT LICENSE-APACHE %doc README.md %{_bindir}/%{name} %changelog %autochangelog