# Generated by rust2rpm 27 %bcond check 1 %global crate ouch Name: rust-ouch Version: 0.6.1 Release: 1%?dist Summary: Command-line utility for easily compressing and decompressing files and directories License: MIT URL: https://crates.io/crates/ouch Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: ouch-fix-metadata-auto.diff BuildRequires: anda-srpm-macros cargo-rpm-macros >= 24 BuildRequires: gcc-c++ %global _description %{expand: A command-line utility for easily compressing and decompressing files and directories.} %description %{_description} %package -n %{crate} Summary: %{summary} License: (0BSD OR MIT OR Apache-2.0) AND Apache-2.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 (BSD-3-Clause AND MIT) AND (BSD-3-Clause OR MIT) AND CC0-1.0 AND LGPL-3.0-only AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) AND Zlib # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %doc CHANGELOG.md %doc CONTRIBUTING.md %doc README.md %{_bindir}/ouch %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep_online %build %{cargo_license_summary_online} %{cargo_license_online} > LICENSE.dependencies %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog