Initial import (fedora#2086523).

This commit is contained in:
Sergio Lopez 2022-05-17 08:04:08 +02:00
parent 263c7e153f
commit 125ecbf437
3 changed files with 52 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/virtiofsd-1.2.0.crate

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (virtiofsd-1.2.0.crate) = d27c6fea8861dba8b39e950a2b372153630ae947577b1c4c7a327961b942f1a3bc072008e2edffb25d2bb1492f93436372127dae57158e5994814dfeb0994b3f

50
virtiofsd.spec Normal file
View File

@ -0,0 +1,50 @@
Name: virtiofsd
Version: 1.2.0
Release: 1%{?dist}
Summary: Virtio-fs vhost-user device daemon (Rust version)
# Upstream license specification: Apache-2.0 AND BSD-3-Clause
License: ASL 2.0 and BSD
URL: https://gitlab.com/virtio-fs/virtiofsd
Source: %{crates_source}
# Some of our deps (i.e. vm-memory) are only available on x86_64, aarch64 and
# ppc64le while others (i.e. virtio-queue) only support x86_64, aarch64 and
# s390x.
# This restricts us to the intersection of those sets: x86_64 and aarch64.
ExclusiveArch: x86_64 aarch64
BuildRequires: rust-packaging >= 21
BuildRequires: libcap-ng-devel
BuildRequires: libseccomp-devel
Requires: qemu-common
Provides: vhostuser-backend(fs)
Conflicts: qemu-virtiofsd
%description
%{summary}.
%prep
%autosetup -n %{name}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
mkdir -p %{buildroot}%{_libexecdir}
install -D -p -m 0755 target/release/virtiofsd %{buildroot}%{_libexecdir}/virtiofsd
install -D -p -m 0644 50-qemu-virtiofsd.json %{buildroot}%{_datadir}/qemu/vhost-user/50-qemu-virtiofsd.json
%files
%license LICENSE-APACHE LICENSE-BSD-3-Clause
%doc README.md
%{_libexecdir}/virtiofsd
%{_datadir}/qemu/vhost-user/50-qemu-virtiofsd.json
%changelog
* Mon May 16 2022 Sergio Lopez <slp@redhat.com> - 1.2.0-1
- Initial package