# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate const_format Name: rust-%{crate} Version: 0.2.22 Release: %autorelease Summary: Compile-time string formatting # Upstream license specification: Zlib License: zlib URL: https://crates.io/crates/const_format Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21 %global _description %{expand: Compile-time string formatting.} %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-ZLIB.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}+all-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+all-devel %{_description} This package contains library source intended for building other packages which use the "all" feature of the "%{crate}" crate. %files -n %{name}+all-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+assert-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+assert-devel %{_description} This package contains library source intended for building other packages which use the "assert" feature of the "%{crate}" crate. %files -n %{name}+assert-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+assertc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+assertc-devel %{_description} This package contains library source intended for building other packages which use the "assertc" feature of the "%{crate}" crate. %files -n %{name}+assertc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+assertcp-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+assertcp-devel %{_description} This package contains library source intended for building other packages which use the "assertcp" feature of the "%{crate}" crate. %files -n %{name}+assertcp-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+const_generics-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+const_generics-devel %{_description} This package contains library source intended for building other packages which use the "const_generics" feature of the "%{crate}" crate. %files -n %{name}+const_generics-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+constant_time_as_str-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+constant_time_as_str-devel %{_description} This package contains library source intended for building other packages which use the "constant_time_as_str" feature of the "%{crate}" crate. %files -n %{name}+constant_time_as_str-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+debug-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+debug-devel %{_description} This package contains library source intended for building other packages which use the "debug" feature of the "%{crate}" crate. %files -n %{name}+debug-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+derive-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+derive-devel %{_description} This package contains library source intended for building other packages which use the "derive" feature of the "%{crate}" crate. %files -n %{name}+derive-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+docsrs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+docsrs-devel %{_description} This package contains library source intended for building other packages which use the "docsrs" feature of the "%{crate}" crate. %files -n %{name}+docsrs-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fmt-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fmt-devel %{_description} This package contains library source intended for building other packages which use the "fmt" feature of the "%{crate}" crate. %files -n %{name}+fmt-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+nightly_const_generics-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+nightly_const_generics-devel %{_description} This package contains library source intended for building other packages which use the "nightly_const_generics" feature of the "%{crate}" crate. %files -n %{name}+nightly_const_generics-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+only_new_tests-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+only_new_tests-devel %{_description} This package contains library source intended for building other packages which use the "only_new_tests" feature of the "%{crate}" crate. %files -n %{name}+only_new_tests-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+testing-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+testing-devel %{_description} This package contains library source intended for building other packages which use the "testing" feature of the "%{crate}" crate. %files -n %{name}+testing-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog