From 7806885a3dd39bac68359312f4e6bb76fd299376 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Tue, 14 Apr 2026 01:56:39 -0500 Subject: [PATCH] add: cloud-hypervisor-nightly (#11251) (#11253) --- anda/system/cloud-hypervisor/nightly/anda.hcl | 8 +++ .../nightly/cloud-hypervisor-nightly.spec | 57 +++++++++++++++++++ .../cloud-hypervisor/nightly/update.rhai | 5 ++ .../cloud-hypervisor/{ => stable}/anda.hcl | 0 .../{ => stable}/cloud-hypervisor.spec | 0 .../cloud-hypervisor/{ => stable}/update.rhai | 0 6 files changed, 70 insertions(+) create mode 100644 anda/system/cloud-hypervisor/nightly/anda.hcl create mode 100644 anda/system/cloud-hypervisor/nightly/cloud-hypervisor-nightly.spec create mode 100644 anda/system/cloud-hypervisor/nightly/update.rhai rename anda/system/cloud-hypervisor/{ => stable}/anda.hcl (100%) rename anda/system/cloud-hypervisor/{ => stable}/cloud-hypervisor.spec (100%) rename anda/system/cloud-hypervisor/{ => stable}/update.rhai (100%) diff --git a/anda/system/cloud-hypervisor/nightly/anda.hcl b/anda/system/cloud-hypervisor/nightly/anda.hcl new file mode 100644 index 0000000000..bcf490fb52 --- /dev/null +++ b/anda/system/cloud-hypervisor/nightly/anda.hcl @@ -0,0 +1,8 @@ +project pkg { + rpm { + spec = "cloud-hypervisor-nightly.spec" + } + labels { + nightly = 1 + } +} diff --git a/anda/system/cloud-hypervisor/nightly/cloud-hypervisor-nightly.spec b/anda/system/cloud-hypervisor/nightly/cloud-hypervisor-nightly.spec new file mode 100644 index 0000000000..4244c23680 --- /dev/null +++ b/anda/system/cloud-hypervisor/nightly/cloud-hypervisor-nightly.spec @@ -0,0 +1,57 @@ +%global commit ff329126150930a88212d4c31607265d06ae619b +%global commit_date 20260414 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: cloud-hypervisor-nightly +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: 0~%{commit_date}git.%{shortcommit} +Release: 1%{?dist} +Summary: A Virtual Machine Monitor for modern Cloud workloads +URL: https://github.com/cloud-hypervisor/cloud-hypervisor +Source0: %{url}/archive/%{commit}/cloud-hypervisor-%{commit}.tar.gz +BuildRequires: perl +BuildRequires: cargo-rpm-macros +BuildRequires: pkgconfig(openssl) +Conflicts: cloud-hypervisor + +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 -n cloud-hypervisor-%{commit} +%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 +%caps(cap_net_admin=ep) %{_bindir}/cloud-hypervisor +%{_bindir}/ch-remote +%{_bindir}/vhost_user_block +%{_bindir}/vhost_user_net + +%changelog +* Tue Apr 14 2026 Owen Zimmerman +- Initial commit (port from stable spec) diff --git a/anda/system/cloud-hypervisor/nightly/update.rhai b/anda/system/cloud-hypervisor/nightly/update.rhai new file mode 100644 index 0000000000..3f227e4d25 --- /dev/null +++ b/anda/system/cloud-hypervisor/nightly/update.rhai @@ -0,0 +1,5 @@ +rpm.global("commit", gh_commit("cloud-hypervisor/cloud-hypervisor")); +if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); +} diff --git a/anda/system/cloud-hypervisor/anda.hcl b/anda/system/cloud-hypervisor/stable/anda.hcl similarity index 100% rename from anda/system/cloud-hypervisor/anda.hcl rename to anda/system/cloud-hypervisor/stable/anda.hcl diff --git a/anda/system/cloud-hypervisor/cloud-hypervisor.spec b/anda/system/cloud-hypervisor/stable/cloud-hypervisor.spec similarity index 100% rename from anda/system/cloud-hypervisor/cloud-hypervisor.spec rename to anda/system/cloud-hypervisor/stable/cloud-hypervisor.spec diff --git a/anda/system/cloud-hypervisor/update.rhai b/anda/system/cloud-hypervisor/stable/update.rhai similarity index 100% rename from anda/system/cloud-hypervisor/update.rhai rename to anda/system/cloud-hypervisor/stable/update.rhai