From 83e14b45efa764376d7ca8c580e8b117ce0ba248 Mon Sep 17 00:00:00 2001 From: Sergio Lopez Date: Thu, 27 Jan 2022 12:09:05 +0100 Subject: [PATCH] Initial import (rhbz#2022710) Initial import. Resolves: rhbz#2022710 Signed-off-by: Sergio Lopez --- .gitignore | 2 ++ README.md | 3 +++ gating.yaml | 6 +++++ sources | 2 ++ tests/tests.yml | 12 ++++++++++ tests/virtiofsd_printcaps.sh | 3 +++ virtiofsd.spec | 46 ++++++++++++++++++++++++++++++++++++ 7 files changed, 74 insertions(+) create mode 100644 README.md create mode 100644 gating.yaml create mode 100644 sources create mode 100644 tests/tests.yml create mode 100644 tests/virtiofsd_printcaps.sh create mode 100644 virtiofsd.spec diff --git a/.gitignore b/.gitignore index e69de29..c0aa13b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +/virtiofsd-1.1.0-vendor.tar.gz +/virtiofsd-1.1.0.crate diff --git a/README.md b/README.md new file mode 100644 index 0000000..7e8c703 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# virtiofsd + +The virtiofsd package diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..648918d --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-9 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/sources b/sources new file mode 100644 index 0000000..8b53ca6 --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +SHA512 (virtiofsd-1.1.0-vendor.tar.gz) = d23610ccf2b6310b45f1ef074cf390a3ba25c4a22ec555280f85875a7b02169617d4087a69e213eb8ecde8180ac8c22b50da8f8fe5cff267f1309e1ccf703816 +SHA512 (virtiofsd-1.1.0.crate) = c0c2679e0d878081b01b44adbebe8decffb96507643d7ab73f5346bec3456191b24d7d7e3917d6f6da3cf8467f1bd40c1043706b1c20da99947eb00e301d7dde diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..6b85d85 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,12 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + remote_user: root + tests: + - virtiofsd_printcaps: + dir: . + run: ./virtiofsd_printcaps.sh + required_packages: + - virtiofsd diff --git a/tests/virtiofsd_printcaps.sh b/tests/virtiofsd_printcaps.sh new file mode 100644 index 0000000..5405bdb --- /dev/null +++ b/tests/virtiofsd_printcaps.sh @@ -0,0 +1,3 @@ +#!/bin/bash -ex + +/usr/libexec/virtiofsd --print-capabilities diff --git a/virtiofsd.spec b/virtiofsd.spec new file mode 100644 index 0000000..73483bf --- /dev/null +++ b/virtiofsd.spec @@ -0,0 +1,46 @@ +Name: virtiofsd +Version: 1.1.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 +Source0: %{crates_source} +Source1: %{name}-%{version}-vendor.tar.gz + +ExclusiveArch: %{rust_arches} +BuildRequires: rust-toolset +BuildRequires: libcap-ng-devel +BuildRequires: libseccomp-devel +Requires: libcap-ng +Requires: libseccomp +Provides: virtiofsd +Obsoletes: qemu-virtiofsd = 17:6.2.0 + +%description +%{summary}. + +%prep +%setup -q -n %{name}-%{version} + +%cargo_prep -V 1 + +%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 +* Thu Jan 27 2022 Sergio Lopez - 1.1.0-1 +- Initial package +