# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate rust_decimal Name: rust-rust_decimal Version: 1.32.0 Release: %autorelease Summary: Decimal number implementation written in pure Rust License: MIT URL: https://crates.io/crates/rust_decimal Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop unused, benchmark-only criterion dev-dependency to speed up builds # * drop unused features with missing dependencies Patch: rust_decimal-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Decimal number implementation written in pure Rust suitable for financial and fixed-precision calculations.} %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}/BUILD.md %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/CODE_OF_CONDUCT.md %doc %{crate_instdir}/CONTRIBUTING.md %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}+bytes-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bytes-devel %{_description} This package contains library source intended for building other packages which use the "bytes" feature of the "%{crate}" crate. %files -n %{name}+bytes-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+c-repr-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+c-repr-devel %{_description} This package contains library source intended for building other packages which use the "c-repr" feature of the "%{crate}" crate. %files -n %{name}+c-repr-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+legacy-ops-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+legacy-ops-devel %{_description} This package contains library source intended for building other packages which use the "legacy-ops" feature of the "%{crate}" crate. %files -n %{name}+legacy-ops-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+maths-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+maths-devel %{_description} This package contains library source intended for building other packages which use the "maths" feature of the "%{crate}" crate. %files -n %{name}+maths-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+maths-nopanic-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+maths-nopanic-devel %{_description} This package contains library source intended for building other packages which use the "maths-nopanic" feature of the "%{crate}" crate. %files -n %{name}+maths-nopanic-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+proptest-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+proptest-devel %{_description} This package contains library source intended for building other packages which use the "proptest" feature of the "%{crate}" crate. %files -n %{name}+proptest-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rand-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rand-devel %{_description} This package contains library source intended for building other packages which use the "rand" feature of the "%{crate}" crate. %files -n %{name}+rand-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rkyv-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rkyv-devel %{_description} This package contains library source intended for building other packages which use the "rkyv" feature of the "%{crate}" crate. %files -n %{name}+rkyv-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rkyv-safe-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rkyv-safe-devel %{_description} This package contains library source intended for building other packages which use the "rkyv-safe" feature of the "%{crate}" crate. %files -n %{name}+rkyv-safe-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}+serde-arbitrary-precision-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-arbitrary-precision-devel %{_description} This package contains library source intended for building other packages which use the "serde-arbitrary-precision" feature of the "%{crate}" crate. %files -n %{name}+serde-arbitrary-precision-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-bincode-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-bincode-devel %{_description} This package contains library source intended for building other packages which use the "serde-bincode" feature of the "%{crate}" crate. %files -n %{name}+serde-bincode-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-float-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-float-devel %{_description} This package contains library source intended for building other packages which use the "serde-float" feature of the "%{crate}" crate. %files -n %{name}+serde-float-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-str-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-str-devel %{_description} This package contains library source intended for building other packages which use the "serde-str" feature of the "%{crate}" crate. %files -n %{name}+serde-str-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-with-arbitrary-precision-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-with-arbitrary-precision-devel %{_description} This package contains library source intended for building other packages which use the "serde-with-arbitrary-precision" feature of the "%{crate}" crate. %files -n %{name}+serde-with-arbitrary-precision-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-with-float-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-with-float-devel %{_description} This package contains library source intended for building other packages which use the "serde-with-float" feature of the "%{crate}" crate. %files -n %{name}+serde-with-float-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-with-str-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-with-str-devel %{_description} This package contains library source intended for building other packages which use the "serde-with-str" feature of the "%{crate}" crate. %files -n %{name}+serde-with-str-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde_json-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde_json-devel %{_description} This package contains library source intended for building other packages which use the "serde_json" feature of the "%{crate}" crate. %files -n %{name}+serde_json-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_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # * doctests can only be compiled and run in-tree # * integration tests require files which are not included in published crates %cargo_test -- --lib %endif %changelog %autochangelog