# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate instant Name: rust-instant Version: 0.1.12 Release: %autorelease Summary: Partial replacement for std::time::Instant that works on WASM too License: BSD-3-Clause URL: https://crates.io/crates/instant Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * remove WASM-specific features and dependencies Patch: instant-fix-metadata.diff BuildRequires: rust-packaging >= 21 %global _description %{expand: A partial replacement for std::time::Instant that works on WASM too.} %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}/AUTHORS %doc %{crate_instdir}/CHANGELOGS.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}+inaccurate-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+inaccurate-devel %{_description} This package contains library source intended for building other packages which use the "inaccurate" feature of the "%{crate}" crate. %files -n %{name}+inaccurate-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+now-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+now-devel %{_description} This package contains library source intended for building other packages which use the "now" feature of the "%{crate}" crate. %files -n %{name}+now-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep # drop WASM-specific tests rm tests/wasm.rs %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog