# Generated by rust2rpm 25 %bcond_without check %global crate cargo-deny Name: rust-cargo-deny Version: 0.14.3 Release: %autorelease Summary: Cargo plugin to help you manage large dependency graphs # * cargo-deny: MIT OR Apache-2.0 # * spdx/license-list-data: CC0-1.0 License: (MIT OR Apache-2.0) AND CC0-1.0 URL: https://crates.io/crates/cargo-deny Source: %{crates_source} # updated SPDX license list data; generated with: # $ git clone https://github.com/spdx/license-list-data.git spdx-license-list -b v3.22 --depth 1 # $ askalono cache load-spdx spdx-license-list/json/details # $ mv askalono-cache.bin.zstd askalono-cache-3.22.bin.zstd Source: askalono-cache-3.22.bin.zstd # Manually created patch for downstream crate metadata changes # * bump gix dependency from 0.54 to 0.55 # * bump ring dependency from 0.16 to 0.17 Patch: cargo-deny-fix-metadata.diff # https://github.com/EmbarkStudios/cargo-deny/pull/574 Patch: 0001-Fix-cargo-registry-index-paths-for-big-endian-archit.patch BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Cargo plugin to help you manage large dependency graphs.} %description %{_description} %package -n %{crate} Summary: %{summary} # (Apache-2.0 OR MIT) AND BSD-3-Clause # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # 0BSD OR MIT OR Apache-2.0 # 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 # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # BSD-3-Clause # ISC # ISC AND MIT AND OpenSSL # MIT # MIT OR Apache-2.0 # MIT OR Apache-2.0 OR Zlib # MIT OR Zlib OR Apache-2.0 # MPL-2.0 # Unlicense OR MIT # Zlib OR Apache-2.0 OR MIT License: Apache-2.0 AND Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND MPL-2.0 AND OpenSSL AND Unicode-DFS-2016 AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (MIT OR Apache-2.0 OR Zlib) AND (Unlicense OR MIT) # LICENSE.dependencies contains a full license breakdown Provides: bundled(spdx-license-list-data) = 3.22 %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE-APACHE %license LICENSE-MIT %license LICENSE.dependencies %doc CHANGELOG.md %doc CODE_OF_CONDUCT.md %doc CONTRIBUTING.md %doc README.md %doc SECURITY.md %{_bindir}/cargo-deny %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-APACHE %license %{crate_instdir}/LICENSE-MIT %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/CODE_OF_CONDUCT.md %doc %{crate_instdir}/CONTRIBUTING.md %doc %{crate_instdir}/README.md %doc %{crate_instdir}/SECURITY.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}+native-certs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+native-certs-devel %{_description} This package contains library source intended for building other packages which use the "native-certs" feature of the "%{crate}" crate. %files -n %{name}+native-certs-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep # update bundled SPDX license list data cp -pav %{SOURCE1} resources/spdx_cache.bin.zstd %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install %if %{with check} %check # * skip tests that require files which are not included in published crates %cargo_test -- -- --exact --skip advisories::cfg::test::deserializes_advisories_cfg --skip bans::cfg::test::deserializes_ban_cfg --skip licenses::cfg::test::deserializes_licenses_cfg --skip licenses::gather::test::normalizes_line_endings --skip sources::cfg::test::deserializes_sources_cfg --skip test::cli_snapshot %endif %changelog %autochangelog