# Generated by rust2rpm 28 %bcond check 1 # prevent library files from being installed %global cargo_install_lib 0 %global crate coldsnap Name: rust-coldsnap Version: 0.12.0 Release: %autorelease Summary: A Command-line interface for uploading and downloading Amazon EBS snapshots License: Apache-2.0 URL: https://crates.io/crates/coldsnap Source: %{crates_source} Source: coldsnap-0.12.0-vendor.tar.xz BuildRequires: cargo-rpm-macros >= 26 %global _description %{expand: A Command-line interface for uploading and downloading Amazon EBS snapshots.} %description %{_description} %package -n %{crate} Summary: %{summary} # %%cargo_licenses from vendored crates. Can drop after move to system-wide aws-lc # Apache-2.0 # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR ISC OR MIT # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # BSD-3-Clause # ISC # ISC AND (Apache-2.0 OR ISC) # ISC AND (Apache-2.0 OR ISC) AND Apache-2.0 AND MIT AND BSD-3-Clause AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 OR ISC OR MIT-0) # MIT # MIT OR Apache-2.0 # MIT OR Apache-2.0 OR LGPL-2.1-or-later # Unicode-3.0 # Unlicense OR MIT # (MIT OR Apache-2.0) AND Unicode-3.0 License: %{shrink: Apache-2.0 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 OR ISC OR MIT-0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-3-Clause AND ISC AND (Apache-2.0 OR ISC) AND MIT AND (MIT OR Apache-2.0 OR LGPL-2.1-or-later) AND Unicode-3.0 AND (Unlicense OR MIT) } Provides: bundled(aws-lc) = 5.5.0 %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license NOTICE %license LICENSE.dependencies %license cargo-vendor.txt %doc CHANGELOG.md %doc CODE_OF_CONDUCT.md %doc CONTRIBUTING.md %doc README.md %{_bindir}/coldsnap %prep %autosetup -n %{crate}-%{version} -p1 -a1 %cargo_prep -v vendor %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %{cargo_vendor_manifest} %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog