# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate fixed_decimal Name: rust-fixed_decimal Version: 0.7.1 Release: %autorelease Summary: API for representing numbers in a human-readable form License: Unicode-3.0 URL: https://crates.io/crates/fixed_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 per_myriad example, which would require the internal # icu_benchmark_macros crate # * Omit the unused getrandom dependency (with unwanted wasm_js feature) Patch: fixed_decimal-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: An API for representing numbers in a human-readable form.} %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}+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}+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 %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