File rust-iroh-cli.spec of Package rust-iroh-cli
# Generated by rust2rpm 26
%bcond_with check
%global crate iroh-cli
Name: rust-%{crate}
Version: 0.28.1
Release: 1%{?dist}
Summary: Bytes. Distributed
License: MIT OR Apache-2.0
URL: https://crates.io/crates/iroh-cli
Source: https://crates.io/api/v1/crates/%crate/%version/download#/%crate-%version.crate
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
Bytes. Distributed.}
%description %{_description}
%package -n iroh
Summary: %{summary}
License: MIT OR Apache-2.0
%description -n iroh %{_description}
%files -n iroh
# FIXME: no license files detected
%license LICENSE.dependencies
%doc README.md
%{_bindir}/iroh
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%{cargo_license_summary}
%{cargo_license} > LICENSE.dependencies
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif