# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate icu_locale_core Name: rust-icu_locale_core Version: 2.0.0 Release: %autorelease Summary: API for managing Unicode Language and Locale Identifiers License: Unicode-3.0 URL: https://crates.io/crates/icu_locale_core Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Drop benchmark-only criterion dependency # * Drop postcard dependency; not packaged, used only for one test # * Restore litemap dev-dependency with testing feature; see # https://github.com/unicode-org/icu4x/pull/6601 # * Omit the filter_langids and syntatically_canonicalize_locales examples, # which would require the internal icu_benchmark_macros crate Patch: icu_locale_core-fix-metadata.diff # * Downstream-only: unconditionally skip compiling tests that would require a # dev-dependency on postcard. Patch10: icu_locale_core-2.0.0-no-postcard-dev-dependency.patch # * In locale_core, skip check_sizes() test on non-64-bit arches: Patch11: 0001-In-locale_core-skip-check_sizes-test-on-non-64-bit-a.patch BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: API for managing Unicode Language and Locale Identifiers.} %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}+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 alloc,databake,serde,zerovec %build %cargo_build -f alloc,databake,serde,zerovec %install %cargo_install -f alloc,databake,serde,zerovec %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 alloc,databake,serde,zerovec -- --lib %endif %changelog %autochangelog