From 52a679ea73738263cf7828a9f1da6d542cdf88fd Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Wed, 25 Mar 2026 21:03:42 -0700 Subject: [PATCH] [f44] add: cloud-hypervisor (#10826) (#10834) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add: cloud-hypervisor (#10826) * add: cloud-hypervisor Resolves https://github.com/terrapkg/packages/issues/10815 Signed-off-by: Owen-sz * I cant spell Signed-off-by: Owen-sz --------- Signed-off-by: Owen-sz (cherry picked from commit 57f2f29c286a259893906634ef6eef6be60eb0b2) * bump(cloud-hypervisor): release 1 → 2 --------- Signed-off-by: Owen-sz Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Co-authored-by: hamachitan[bot] <252235638+hamachitan[bot]@users.noreply.github.com> --- anda/system/cloud-hypervisor/anda.hcl | 5 ++ .../cloud-hypervisor/cloud-hypervisor.spec | 55 +++++++++++++++++++ anda/system/cloud-hypervisor/update.rhai | 1 + 3 files changed, 61 insertions(+) create mode 100644 anda/system/cloud-hypervisor/anda.hcl create mode 100644 anda/system/cloud-hypervisor/cloud-hypervisor.spec create mode 100644 anda/system/cloud-hypervisor/update.rhai diff --git a/anda/system/cloud-hypervisor/anda.hcl b/anda/system/cloud-hypervisor/anda.hcl new file mode 100644 index 0000000000..dbca34d29a --- /dev/null +++ b/anda/system/cloud-hypervisor/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "cloud-hypervisor.spec" + } +} diff --git a/anda/system/cloud-hypervisor/cloud-hypervisor.spec b/anda/system/cloud-hypervisor/cloud-hypervisor.spec new file mode 100644 index 0000000000..374e8267dc --- /dev/null +++ b/anda/system/cloud-hypervisor/cloud-hypervisor.spec @@ -0,0 +1,55 @@ +Name: cloud-hypervisor +License: Apache-2.0 AND MPL-2.0 AND (Unlicense OR MIT) AND (MIT OR Zlib OR Apache-2.0) AND (MIT OR Apache-2.0 OR LGPL-2.1-or-later) AND MIT AND BSD-3-Clause AND (BSD-3-Clause OR Apache-2.0) AND (BSD-3-Clause OR MIT OR Apache-2.0) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC-BY-4.0 AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSD-3-Clause) AND (Apache-2.0 OR MIT) +Version: 51.1 +Release: 2%{?dist} +Summary: A Virtual Machine Monitor for modern Cloud workloads +URL: https://github.com/cloud-hypervisor/cloud-hypervisor +Source0: https://github.com/cloud-hypervisor/cloud-hypervisor/archive/refs/tags/v%{version}.tar.gz +BuildRequires: perl +BuildRequires: cargo-rpm-macros +BuildRequires: pkgconfig(openssl) + +Packager: Owen Zimmerman + +%description +A Virtual Machine Monitor for modern Cloud workloads. Features include CPU, +memory and device hotplug, support for running Windows and Linux guests, +device offload with vhost-user and a minimal compact footprint. +Written in Rust with a strong focus on security. + +%package doc +Summary: Documentation for cloud-hypervisor +Requires: %{name} = %{evr} + +%description doc +%{summary}. + +%prep +%autosetup +%cargo_prep_online + +%build +%cargo_build + +%install +install -Dm755 target/rpm/cloud-hypervisor %{buildroot}%{_bindir}/cloud-hypervisor +install -Dm755 target/rpm/ch-remote %{buildroot}%{_bindir}/ch-remote +install -Dm755 target/rpm/vhost_user_block %{buildroot}%{_bindir}/vhost_user_block +install -Dm755 target/rpm/vhost_user_net %{buildroot}%{_bindir}/vhost_user_net + +%{cargo_license_online} > LICENSE.dependencies + +%files +%license LICENSE.dependencies LICENSES/ +%doc CODEOWNERS CODE_OF_CONDUCT.md CONTRIBUTING.md CREDITS.md MAINTAINERS.md README.md release-notes.md +%{_bindir}/ch-remote +%{_bindir}/cloud-hypervisor +%{_bindir}/vhost_user_block +%{_bindir}/vhost_user_net + +%files doc +%doc docs/ + +%changelog +* Wed Mar 25 2026 Owen Zimmerman +- Initial commit diff --git a/anda/system/cloud-hypervisor/update.rhai b/anda/system/cloud-hypervisor/update.rhai new file mode 100644 index 0000000000..1f21db8ff6 --- /dev/null +++ b/anda/system/cloud-hypervisor/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("cloud-hypervisor/cloud-hypervisor"));