# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate rug Name: rust-rug Version: 1.19.2 Release: %autorelease Summary: Arbitrary-precision integers, rational, floating-point and complex numbers based on GMP, MPFR and MPC License: LGPL-3.0+ URL: https://crates.io/crates/rug Source: %{crates_source} BuildRequires: rust-packaging >= 21 %global _description %{expand: Arbitrary-precision integers, rational, floating-point and complex numbers based on GMP, MPFR and MPC.} %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-GPL.md %license %{crate_instdir}/LICENSE-LGPL.md %doc %{crate_instdir}/README.md %doc %{crate_instdir}/RELEASES.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}+complex-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+complex-devel %{_description} This package contains library source intended for building other packages which use the "complex" feature of the "%{crate}" crate. %files -n %{name}+complex-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fail-on-warnings-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fail-on-warnings-devel %{_description} This package contains library source intended for building other packages which use the "fail-on-warnings" feature of the "%{crate}" crate. %files -n %{name}+fail-on-warnings-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+float-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+float-devel %{_description} This package contains library source intended for building other packages which use the "float" feature of the "%{crate}" crate. %files -n %{name}+float-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+gmp-mpfr-sys-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+gmp-mpfr-sys-devel %{_description} This package contains library source intended for building other packages which use the "gmp-mpfr-sys" feature of the "%{crate}" crate. %files -n %{name}+gmp-mpfr-sys-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+integer-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+integer-devel %{_description} This package contains library source intended for building other packages which use the "integer" feature of the "%{crate}" crate. %files -n %{name}+integer-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+num-integer-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+num-integer-devel %{_description} This package contains library source intended for building other packages which use the "num-integer" feature of the "%{crate}" crate. %files -n %{name}+num-integer-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+num-traits-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+num-traits-devel %{_description} This package contains library source intended for building other packages which use the "num-traits" feature of the "%{crate}" crate. %files -n %{name}+num-traits-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+num-traits-crate-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+num-traits-crate-devel %{_description} This package contains library source intended for building other packages which use the "num-traits-crate" feature of the "%{crate}" crate. %files -n %{name}+num-traits-crate-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}+rational-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rational-devel %{_description} This package contains library source intended for building other packages which use the "rational" feature of the "%{crate}" crate. %files -n %{name}+rational-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 %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 %cargo_test %endif %changelog %autochangelog