# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate below-dump Name: rust-below-dump Version: 0.7.1 Release: %autorelease Summary: Dump crate for below License: Apache-2.0 URL: https://crates.io/crates/below-dump Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * bump clap dependency from 3.2.25 to 4 Patch: below-dump-fix-metadata.diff # Migrate to clap 4 # based on https://github.com/facebookincubator/below/commit/a1b257d91677637063c1eb359097d53078f7272a Patch: below-dump-clap4.diff # below-btrfs and below-model are not available ExcludeArch: %{arm32} %{ix86} BuildRequires: rust-packaging >= 21 %global _description %{expand: Dump crate for below.} %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 %{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 %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