# Generated by rust2rpm 24 %bcond_without check %global crate vhost-user-vsock Name: rust-vhost-user-vsock Version: 0.1.0 Release: %autorelease Summary: Virtio-vsock device using the vhost-user protocol License: Apache-2.0 OR BSD-3-Clause URL: https://crates.io/crates/vhost-user-vsock Source: %{crates_source} Patch0: vhost-user-vsock-downgrade-virtio-bindings.diff 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} # FIXME: no license files detected %doc README.md %{_bindir}/vhost-user-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