# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate scientific Name: rust-scientific Version: 0.5.2 Release: %autorelease Summary: Arbitrary precision scientific number (no_std capable, in pure Rust) License: MIT URL: https://crates.io/crates/scientific Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Arbitrary precision scientific number (no_std capable, in pure Rust).} %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 %{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}+arc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+arc-devel %{_description} This package contains library source intended for building other packages which use the "arc" feature of the "%{crate}" crate. %files -n %{name}+arc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+debug-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+debug-devel %{_description} This package contains library source intended for building other packages which use the "debug" feature of the "%{crate}" crate. %files -n %{name}+debug-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+macro-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+macro-devel %{_description} This package contains library source intended for building other packages which use the "macro" feature of the "%{crate}" crate. %files -n %{name}+macro-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+scientific-macro-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+scientific-macro-devel %{_description} This package contains library source intended for building other packages which use the "scientific-macro" feature of the "%{crate}" crate. %files -n %{name}+scientific-macro-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 %cargo_test %endif %changelog %autochangelog