Initial import (fedora#2086523).
This commit is contained in:
parent
263c7e153f
commit
125ecbf437
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/virtiofsd-1.2.0.crate
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
||||
SHA512 (virtiofsd-1.2.0.crate) = d27c6fea8861dba8b39e950a2b372153630ae947577b1c4c7a327961b942f1a3bc072008e2edffb25d2bb1492f93436372127dae57158e5994814dfeb0994b3f
|
50
virtiofsd.spec
Normal file
50
virtiofsd.spec
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user