# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate icu_provider Name: rust-icu_provider Version: 1.5.0 Release: %autorelease Summary: Trait and struct definitions for the ICU data provider License: Unicode-3.0 URL: https://crates.io/crates/icu_provider Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Drop benchmark-only criterion dependency Patch: icu_provider-fix-metadata.diff # * Downstream-only: unconditionally skip compiling tests that would require the # circular (path-based) dev-dependency on the icu crate. Patch10: icu_provider-1.5.0-no-icu-dev-dependency.patch BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Trait and struct definitions for the ICU data provider.} %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}+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}+deserialize_bincode_1-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+deserialize_bincode_1-devel %{_description} This package contains library source intended for building other packages which use the "deserialize_bincode_1" feature of the "%{crate}" crate. %files -n %{name}+deserialize_bincode_1-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+deserialize_json-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+deserialize_json-devel %{_description} This package contains library source intended for building other packages which use the "deserialize_json" feature of the "%{crate}" crate. %files -n %{name}+deserialize_json-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+experimental-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+experimental-devel %{_description} This package contains library source intended for building other packages which use the "experimental" feature of the "%{crate}" crate. %files -n %{name}+experimental-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+log_error_context-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+log_error_context-devel %{_description} This package contains library source intended for building other packages which use the "log_error_context" feature of the "%{crate}" crate. %files -n %{name}+log_error_context-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+logging-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+logging-devel %{_description} This package contains library source intended for building other packages which use the "logging" feature of the "%{crate}" crate. %files -n %{name}+logging-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+macros-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+macros-devel %{_description} This package contains library source intended for building other packages which use the "macros" feature of the "%{crate}" crate. %files -n %{name}+macros-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}+std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+std-devel %{_description} This package contains library source intended for building other packages which use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sync-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+sync-devel %{_description} This package contains library source intended for building other packages which use the "sync" feature of the "%{crate}" crate. %files -n %{name}+sync-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -f deserialize_json,experimental,macros,serde %build %cargo_build -f deserialize_json,experimental,macros,serde %install %cargo_install -f deserialize_json,experimental,macros,serde %if %{with check} %check %cargo_test -f deserialize_json,experimental,macros,serde %endif %changelog %autochangelog