File rust-sendme.spec of Package rust-sendme
# Generated by rust2rpm 27
%bcond check 0
%global crate sendme
Name: rust-%{crate}
Version: 0.26.0
Release: 1%{?dist}
Summary: Cli tool to send directories over the network, with NAT hole punching
License: Apache-2.0 OR MIT
URL: https://crates.io/crates/sendme
Source: https://crates.io/api/v1/crates/%crate/%version/download#/%crate-%version.crate
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
A cli tool to send directories over the network, with NAT hole punching.}
%description %{_description}
%package -n %{crate}
Summary: %{summary}
# FIXME: paste output of %%cargo_license_summary here
License: # FIXME
# LICENSE.dependencies contains a full license breakdown
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE-APACHE
%license LICENSE-MIT
%license LICENSE.dependencies
%doc README.md
%{_bindir}/sendme
%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