# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate icu_properties Name: rust-icu_properties Version: 1.5.1 Release: %autorelease Summary: Definitions for Unicode properties License: Unicode-3.0 URL: https://crates.io/crates/icu_properties Source: %{crates_source} # * Downstream-only: unconditionally skip compiling tests that would require the # circular (path-based) dev-dependency on the icu crate. Patch10: icu_properties-1.5.1-no-icu-dev-dependency.patch BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Definitions for Unicode properties.} %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}+bidi-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bidi-devel %{_description} This package contains library source intended for building other packages which use the "bidi" feature of the "%{crate}" crate. %files -n %{name}+bidi-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}+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 %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # * All doc tests use icu::properties, which would require the circular # (path-based) dev-dependency on the icu crate. %cargo_test -- --tests %endif %changelog %autochangelog