44
55Name: cloud-hypervisor-cvm
66Summary: Cloud Hypervisor CVM is an open source Virtual Machine Monitor (VMM) that enables running SEV SNP enabled VMs on top of MSHV using the IGVM file format as payload.
7- Version: 38 .0.72.2
8- Release: 4 %{?dist }
7+ Version: 41 .0.79
8+ Release: 1 %{?dist }
99License: ASL 2.0 OR BSD-3-clause
1010Vendor: Microsoft Corporation
1111Distribution: Azure Linux
1212Group: Applications/System
1313URL: https://github.com/microsoft/cloud-hypervisor
1414Source0: https://github.com/microsoft/cloud-hypervisor/archive/refs/tags/msft/v%{version }.tar.gz#/%{name}-%{version}.tar.gz
1515%if 0%{?using_vendored_crates }
16- # Note: the %%{name}-%%{version}-cargo .tar.gz file contains a cache created by capturing the contents downloaded into $CARGO_HOME.
16+ # Note: the %%{name}-%%{version}-vendor .tar.gz file contains a cache created by capturing the contents downloaded into $CARGO_HOME.
1717# To update the cache and config.toml run:
1818# tar -xf %%{name}-%%{version}.tar.gz
1919# cd %%{name}-%%{version}
20- # patch -u -p0 < ../upgrade-openssl-to-3.3.2-to-address-CVE-2024-6119.patch
2120# cargo vendor > config.toml
22- # tar -czf %%{name}-%%{version}-cargo.tar.gz vendor/
23- # rename the tarball to %%{name}-%%{version}-2-cargo.tar.gz when updating version
24- # (feel free to drop -2 and this comment on version change)
25- Source1: %{name }-%{version }-2-cargo.tar.gz
21+ # tar -czf %%{name}-%%{version}-vendor.tar.gz vendor/
22+ Source1: %{name }-%{version }-vendor.tar.gz
2623Source2: config.toml
2724%endif
28- # Generated using:
29- # tar -xf %%{name}-%%{version}.tar.gz
30- # cd %%{name}-%%{version}
31- # cargo update -p openssl-src --precise 300.3.2+3.3.2
32- # diff -u ../cloud-hypervisor-msft-v38.0.72.2.backup/Cargo.lock Cargo.lock > ../upgrade-openssl-to-3.3.2-to-address-CVE-2024-6119.patch
33- Patch0: upgrade-openssl-to-3.3.2-to-address-CVE-2024-6119.patch
34- Patch1: CVE-2024-12797.patch
3525
3626BuildRequires: binutils
3727BuildRequires: gcc
@@ -40,8 +30,8 @@ BuildRequires: glibc-devel
4030BuildRequires: openssl-devel
4131
4232%if ! 0%{?using_rustup }
43- BuildRequires: rust < 1.85.0
44- BuildRequires: cargo < 1.85.0
33+ BuildRequires: rust >= 1.85.0
34+ BuildRequires: cargo >= 1.85.0
4535%endif
4636
4737Requires: bash
@@ -78,15 +68,12 @@ Cloud Hypervisor is an open source Virtual Machine Monitor (VMM) that runs on to
7868
7969%prep
8070
81- %setup -q -n cloud-hypervisor-msft-v %{version }
71+ %setup -q -n cloud-hypervisor-%{version }
8272%if 0%{?using_vendored_crates }
8373tar xf %{SOURCE1 }
8474mkdir -p .cargo
8575cp %{SOURCE2 } .cargo/
8676%endif
87- # The vendored archive has been populated based on the patch, so we need to
88- # repatch here as well in order to use the same versions
89- %autopatch -p0
9077
9178%install
9279install -d %{buildroot }%{_bindir }
@@ -144,10 +131,14 @@ cargo build --release --target=%{rust_musl_target} %{cargo_pkg_feature_opts} %{c
144131%{_libdir }/cloud-hypervisor/static/ch-remote
145132%caps(cap_net_admim=ep) %{_libdir }/cloud-hypervisor/static/cloud-hypervisor
146133%endif
147- %license LICENSE-APACHE
148- %license LICENSE-BSD-3-Clause
134+ %license LICENSES/Apache-2.0 .txt
135+ %license LICENSES/BSD-3-Clause .txt
136+ %license LICENSES/CC-BY-4.0.txt
149137
150138%changelog
139+ * Mon Apr 28 2025 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 41.0.79-1
140+ - Auto-upgrade to 41.0.79
141+
151142* Mon Apr 21 2025 Kavya Sree Kaitepalli <kkaitepalli@microsoft.com> - 38.0.72.2-4
152143- Pin rust version
153144
0 commit comments