From 125ecbf4371ce2013b2cd924af0865fea98f1f0e Mon Sep 17 00:00:00 2001 From: Sergio Lopez Date: Tue, 17 May 2022 08:04:08 +0200 Subject: [PATCH] Initial import (fedora#2086523). --- .gitignore | 1 + sources | 1 + virtiofsd.spec | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 .gitignore create mode 100644 sources create mode 100644 virtiofsd.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3985812 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/virtiofsd-1.2.0.crate diff --git a/sources b/sources new file mode 100644 index 0000000..b5f42c6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (virtiofsd-1.2.0.crate) = d27c6fea8861dba8b39e950a2b372153630ae947577b1c4c7a327961b942f1a3bc072008e2edffb25d2bb1492f93436372127dae57158e5994814dfeb0994b3f diff --git a/virtiofsd.spec b/virtiofsd.spec new file mode 100644 index 0000000..7a9d5eb --- /dev/null +++ b/virtiofsd.spec @@ -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 - 1.2.0-1 +- Initial package +