# Generated by rust2rpm 28 %bcond check 1 %global crate ingredients Name: rust-ingredients Version: 0.2.0 Release: %autorelease Summary: Check ingredients of published Rust crates License: MIT URL: https://crates.io/crates/ingredients Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Check ingredients of published Rust crates.} %description %{_description} %package -n %{crate} Summary: %{summary} # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # Apache-2.0 # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # MIT # MIT OR Apache-2.0 # Unicode-3.0 # Unlicense OR MIT # Zlib License: %{shrink: MIT AND Apache-2.0 AND Unicode-DFS-2016 AND Unicode-3.0 AND Zlib AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (Unlicense OR MIT) } # LICENSE.dependencies contains a full license breakdown Requires: cargo Requires: git-core %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %doc CHANGELOG.md %doc README.md %{_bindir}/ingredients %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/README.md %{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+cli-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cli-devel %{_description} This package contains library source intended for building other packages which use the "cli" feature of the "%{crate}" crate. %files -n %{name}+cli-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -f cli %build %cargo_build -f cli %{cargo_license_summary -f cli} %{cargo_license -f cli} > LICENSE.dependencies %install %cargo_install -f cli %if %{with check} %check %cargo_test -f cli %endif %changelog %autochangelog