# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate jiff-icu Name: rust-jiff-icu Version: 0.2.2 Release: %autorelease Summary: Conversion routines between Jiff and ICU4X License: Unlicense OR MIT URL: https://crates.io/crates/jiff-icu Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Remove the dev-dependency on the icu meta-crate, which we have not packaged # since it depends on effectively the entire ICU4X stack. A small patch # disables the doctests that would require it. Patch: jiff-icu-fix-metadata.diff # * Downstream-only: ignore doctests that would require the icu meta-crate. This # would require parts of the ICU4X stack that we have not yet packaged. Patch10: 0001-Downstream-only-ignore-doctests-that-would-require-t.patch BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Conversion routines between Jiff and ICU4X.} %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}/COPYING %license %{crate_instdir}/LICENSE-MIT %license %{crate_instdir}/UNLICENSE %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}+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}+time-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+time-devel %{_description} This package contains library source intended for building other packages which use the "time" feature of the "%{crate}" crate. %files -n %{name}+time-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+zoned-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+zoned-devel %{_description} This package contains library source intended for building other packages which use the "zoned" feature of the "%{crate}" crate. %files -n %{name}+zoned-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 %cargo_test %endif %changelog %autochangelog