# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate potential_utf Name: rust-potential_utf Version: 0.1.2 Release: %autorelease Summary: Unvalidated string and character types License: Unicode-3.0 URL: https://crates.io/crates/potential_utf Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Unvalidated string and character types.} %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 %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}+alloc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+alloc-devel %{_description} This package contains library source intended for building other packages which use the "alloc" feature of the "%{crate}" crate. %files -n %{name}+alloc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+databake-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+databake-devel %{_description} This package contains library source intended for building other packages which use the "databake" feature of the "%{crate}" crate. %files -n %{name}+databake-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+writeable-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+writeable-devel %{_description} This package contains library source intended for building other packages which use the "writeable" feature of the "%{crate}" crate. %files -n %{name}+writeable-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+zerovec-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+zerovec-devel %{_description} This package contains library source intended for building other packages which use the "zerovec" feature of the "%{crate}" crate. %files -n %{name}+zerovec-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -f databake,serde,writeable,zerovec %build %cargo_build -f databake,serde,writeable,zerovec %install %cargo_install -f databake,serde,writeable,zerovec %if %{with check} %check %cargo_test -f databake,serde,writeable,zerovec %endif %changelog %autochangelog