# Generated by rust2rpm 26 %bcond_without check %global crate zeitfetch Name: rust-zeitfetch Version: 0.1.13 Release: %autorelease Summary: Instantaneous snapshots of cross-platform system information License: MIT URL: https://crates.io/crates/zeitfetch Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: zeitfetch-fix-metadata-auto.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Instantaneous snapshots of cross-platform system information.} %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 %license LICENSE.dependencies %doc README.md %{_bindir}/zeitfetch %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