# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate cargo-lock Name: rust-cargo-lock Version: 9.0.0 Release: %autorelease Summary: Self-contained Cargo.lock parser with optional dependency graph analysis License: Apache-2.0 OR MIT URL: https://crates.io/crates/cargo-lock Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * prevent unused executable from being built and shipped Patch: cargo-lock-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Self-contained Cargo.lock parser with optional dependency graph analysis.} %description %{_description} %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}/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}+dependency-tree-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dependency-tree-devel %{_description} This package contains library source intended for building other packages which use the "dependency-tree" feature of the "%{crate}" crate. %files -n %{name}+dependency-tree-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+petgraph-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+petgraph-devel %{_description} This package contains library source intended for building other packages which use the "petgraph" feature of the "%{crate}" crate. %files -n %{name}+petgraph-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog