# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate icu_decimal Name: rust-icu_decimal Version: 2.1.1 Release: %autorelease Summary: API for formatting basic decimal numbers in a locale-sensitive way License: Unicode-3.0 URL: https://crates.io/crates/icu_decimal Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Drop benchmark-only criterion, rand, rand_distr, and rand_pcg dependencies # * Omit the unused getrandom dependency (with unwanted wasm_js feature) Patch: icu_decimal-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: API for formatting basic decimal numbers in a locale-sensitive way.} %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}+compiled_data-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+compiled_data-devel %{_description} This package contains library source intended for building other packages which use the "compiled_data" feature of the "%{crate}" crate. %files -n %{name}+compiled_data-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+datagen-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+datagen-devel %{_description} This package contains library source intended for building other packages which use the "datagen" feature of the "%{crate}" crate. %files -n %{name}+datagen-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+ryu-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ryu-devel %{_description} This package contains library source intended for building other packages which use the "ryu" feature of the "%{crate}" crate. %files -n %{name}+ryu-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 %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -f datagen %build %cargo_build -f datagen %install %cargo_install -f datagen %if %{with check} %check # * Very many doctests have circular dependencies on the top-level icu crate, # enough that it would be very tedious to patch them all out. %cargo_test -f datagen -- --lib %cargo_test -f datagen -- --tests %endif %changelog %autochangelog