Initial import (rhbz#2022710)

Initial import.

Resolves: rhbz#2022710
Signed-off-by: Sergio Lopez <slp@redhat.com>
This commit is contained in:
Sergio Lopez 2022-01-27 12:09:05 +01:00
parent 3e3e5e8bb2
commit 83e14b45ef
7 changed files with 74 additions and 0 deletions

2
.gitignore vendored
View File

@ -0,0 +1,2 @@
/virtiofsd-1.1.0-vendor.tar.gz
/virtiofsd-1.1.0.crate

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# virtiofsd
The virtiofsd package

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

2
sources Normal file
View File

@ -0,0 +1,2 @@
SHA512 (virtiofsd-1.1.0-vendor.tar.gz) = d23610ccf2b6310b45f1ef074cf390a3ba25c4a22ec555280f85875a7b02169617d4087a69e213eb8ecde8180ac8c22b50da8f8fe5cff267f1309e1ccf703816
SHA512 (virtiofsd-1.1.0.crate) = c0c2679e0d878081b01b44adbebe8decffb96507643d7ab73f5346bec3456191b24d7d7e3917d6f6da3cf8467f1bd40c1043706b1c20da99947eb00e301d7dde

12
tests/tests.yml Normal file
View File

@ -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

View File

@ -0,0 +1,3 @@
#!/bin/bash -ex
/usr/libexec/virtiofsd --print-capabilities

46
virtiofsd.spec Normal file
View File

@ -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 <slp@redhat.com> - 1.1.0-1
- Initial package