# Generated by rust2rpm 28 %bcond check 1 %global crate innernet Name: rust-innernet Version: 1.7.1 Release: %autorelease Summary: Client to manage innernet network interfaces License: MIT URL: https://crates.io/crates/innernet Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A client to manage innernet network interfaces.} %description %{_description} %package -n %{crate} Summary: %{summary} License: MIT # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %doc README.md %{_bindir}/innernet %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 %changelog %autochangelog