# Generated by rust2rpm 27 %bcond check 1 # prevent library files from being installed %global cargo_install_lib 0 %global crate sd Name: rust-sd Version: 1.0.0 Release: %autorelease Summary: Intuitive find & replace CLI License: MIT URL: https://crates.io/crates/sd Source: %{crates_source} Source: sd-1.0.0-vendor.tar.xz BuildRequires: cargo-rpm-macros >= 26 %global _description %{expand: An intuitive find & replace CLI.} %description %{_description} %package -n %{crate} Summary: %{summary} License: MIT %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %license cargo-vendor.txt %doc CHANGELOG.md %doc README.md %doc RELEASE.md %{_bindir}/sd %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