From e3f0fe18f510ce12eed29152dc9a647be51054d7 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Wed, 15 Mar 2023 21:12:28 +0300 Subject: [PATCH] import virtiofsd-1.4.0-1.el9 --- .gitignore | 2 ++ .virtiofsd.metadata | 2 ++ SPECS/virtiofsd.spec | 65 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 .gitignore create mode 100644 .virtiofsd.metadata create mode 100644 SPECS/virtiofsd.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..af7fad9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/virtiofsd-1.4.0-vendor.tar.gz +SOURCES/virtiofsd-1.4.0.crate diff --git a/.virtiofsd.metadata b/.virtiofsd.metadata new file mode 100644 index 0000000..3e9d164 --- /dev/null +++ b/.virtiofsd.metadata @@ -0,0 +1,2 @@ +13d3296c0b164f7800353c4210c70eb48e52ea3e SOURCES/virtiofsd-1.4.0-vendor.tar.gz +fa2e1cc6cdbaf7eca98e04b22c895c1a8829e9bf SOURCES/virtiofsd-1.4.0.crate diff --git a/SPECS/virtiofsd.spec b/SPECS/virtiofsd.spec new file mode 100644 index 0000000..9f00657 --- /dev/null +++ b/SPECS/virtiofsd.spec @@ -0,0 +1,65 @@ +Name: virtiofsd +Version: 1.4.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: x86_64 aarch64 s390x +BuildRequires: rust-toolset +BuildRequires: libcap-ng-devel +BuildRequires: libseccomp-devel +Provides: virtiofsd +Obsoletes: qemu-virtiofsd = 17:6.2.0 +# Both qemu-virtiofsd and virtiofsd ship the same binary +Conflicts: 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 +* Wed Mar 15 2023 MSVSphere Packaging Team - 1.4.0-1 +- Rebuilt for MSVSphere 9.1. + +* Wed Jul 27 2022 Sergio Lopez - 1.4.0-1 +- Update to upstream version 1.4.0 [bz#2111356] + +* Mon Jun 27 2022 Sergio Lopez - 1.3.0-1 +- Update to upstream version 1.3.0 [bz#2077854] + +* Fri Feb 18 2022 Sergio Lopez - 1.1.0-3 +- Restore "Provides: virtiofsd", despite rpmdeplint complains, to + satisfy qemu-kvm dependencies + +* Fri Jan 28 2022 Sergio Lopez - 1.1.0-2 +- Explicitly declare the conflict with qemu-virtiofsd +- Remove explicit library dependencies +- Remove useless "Provides: virtiosfd" +- Remove Windows binaries from vendor tarball + +* Thu Jan 27 2022 Sergio Lopez - 1.1.0-1 +- Initial package +