# Generated by rust2rpm 24 %bcond_with check %global crate vhost-device-vsock Name: rust-vhost-device-vsock Version: 0.1.0 Release: 1%{?dist} Summary: Virtio-vsock device using the vhost-user protocol License: Apache-2.0 OR BSD-3-Clause URL: https://crates.io/crates/vhost-device-vsock Source: %{crates_source} Patch: 0001-WORKAROUND-give-a-64KB-credit-breath-window.patch BuildRequires: rust-packaging >= 21 %global _description %{expand: A virtio-vsock device using the vhost-user protocol.} %description %{_description} %package -n %{crate} Summary: %{summary} %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE-APACHE %license LICENSE-BSD-3-Clause %doc CHANGELOG.md %doc README.md %{_bindir}/vhost-device-vsock %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