virtiofsd/virtiofsd.spec
2022-05-17 08:04:08 +02:00

51 lines
1.4 KiB
RPMSpec

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