Name: virtiofsd Version: 1.13.2 Release: %autorelease Summary: Virtio-fs vhost-user device daemon (Rust version) License: Apache-2.0 AND BSD-3-Clause URL: https://gitlab.com/virtio-fs/virtiofsd # To create/dowload the source files (i.e., crate and vendor files), # set the version in the spec and then: # make # if you need to get a different version: # make VERSION= # Source: https://src.fedoraproject.org/repo/pkgs/virtiofsd/virtiofsd-1.13.2.crate/sha512/628d023c6033eec6db6aa5effd1d960322a57234d174638c89af4223a24c4a67cc8c711867bec3849b9d69ea9e79b68c04c03834ef5d0a12111938dd1b9840ee/virtiofsd-1.13.2.crate Source1: https://src.fedoraproject.org/repo/pkgs/virtiofsd/virtiofsd-1.13.2-vendor.tar.xz/sha512/54eb81a5d225a35581986c084b6f1866c38729bf3c80c053e01ff3c3101e35b04685f3e8ea9fe68243197f6259b705b57c41ddca6d0f66b988540a430a5bbd4d/virtiofsd-1.13.2-vendor.tar.xz ExclusiveArch: %{rust_arches} # Some of our deps (i.e. vm-memory) are not available on 32 bits targets. ExcludeArch: i686 %if 0%{?rhel} BuildRequires: rust-toolset %else BuildRequires: rust-packaging >= 21 %endif BuildRequires: libcap-ng-devel BuildRequires: libseccomp-devel Requires: qemu-common Requires: shadow-utils Provides: vhostuser-backend(fs) Conflicts: qemu-virtiofsd %if 0%{?fedora} > 38 Obsoletes: qemu-virtiofsd <= 2:8.0.0-1 Provides: qemu-virtiofsd = 2:7.2.1-1 %endif %description %{summary}. %prep %autosetup -n %{name}-%{version_no_tilde} -p1 -a1 %cargo_prep -v vendor rm -f Cargo.lock %build %cargo_build %cargo_license_summary %{cargo_license} > LICENSE.dependencies %cargo_vendor_manifest %install mkdir -p %{buildroot}%{_libexecdir} install -D -p -m 0755 target/release/virtiofsd %{buildroot}%{_libexecdir}/virtiofsd install -D -p -m 0644 50-virtiofsd.json %{buildroot}%{_datadir}/qemu/vhost-user/50-virtiofsd.json %files %license LICENSE-APACHE LICENSE-BSD-3-Clause %license LICENSE.dependencies %license cargo-vendor.txt %doc README.md %{_libexecdir}/virtiofsd %{_datadir}/qemu/vhost-user/50-virtiofsd.json %changelog %autochangelog