# Generated by rust2rpm 28 %bcond check 0 %global debug_package %{nil} %global crate vergen Name: rust-vergen Version: 9.0.6 Release: %autorelease Summary: Embed version info in Rust binaries via build scripts License: MIT OR Apache-2.0 URL: https://crates.io/crates/vergen Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Generate 'cargo:rustc-env' instructions via 'build.rs' for use in your code via the 'env!' macro.} %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}/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}+build-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+build-devel %{_description} This package contains library source intended for building other packages which use the "build" feature of the "%{crate}" crate. %files -n %{name}+build-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+cargo-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cargo-devel %{_description} This package contains library source intended for building other packages which use the "cargo" feature of the "%{crate}" crate. %files -n %{name}+cargo-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+cargo_metadata-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cargo_metadata-devel %{_description} This package contains library source intended for building other packages which use the "cargo_metadata" feature of the "%{crate}" crate. %files -n %{name}+cargo_metadata-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+emit_and_set-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+emit_and_set-devel %{_description} This package contains library source intended for building other packages which use the "emit_and_set" feature of the "%{crate}" crate. %files -n %{name}+emit_and_set-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+regex-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+regex-devel %{_description} This package contains library source intended for building other packages which use the "regex" feature of the "%{crate}" crate. %files -n %{name}+regex-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rustc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rustc-devel %{_description} This package contains library source intended for building other packages which use the "rustc" feature of the "%{crate}" crate. %files -n %{name}+rustc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rustc_version-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rustc_version-devel %{_description} This package contains library source intended for building other packages which use the "rustc_version" feature of the "%{crate}" crate. %files -n %{name}+rustc_version-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+si-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+si-devel %{_description} This package contains library source intended for building other packages which use the "si" feature of the "%{crate}" crate. %files -n %{name}+si-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sysinfo-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+sysinfo-devel %{_description} This package contains library source intended for building other packages which use the "sysinfo" feature of the "%{crate}" crate. %files -n %{name}+sysinfo-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+time-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+time-devel %{_description} This package contains library source intended for building other packages which use the "time" feature of the "%{crate}" crate. %files -n %{name}+time-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unstable-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unstable-devel %{_description} This package contains library source intended for building other packages which use the "unstable" feature of the "%{crate}" crate. %files -n %{name}+unstable-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