Name: cubic Version: test Release: 1%{?dist} Summary: Run Linux virtual machines with a single command License: MIT OR Apache-2.0 URL: https://cubic-vm.org Source0: %{name}-%{version}.tar.gz Source1: %{name}-%{version}-vendor.tar.gz BuildRequires: gcc BuildRequires: cargo BuildRequires: rust >= 1.92 # QEMU and UEFI firmware are named differently across the RPM distributions. %if 0%{?suse_version} Requires: qemu-x86 Requires: qemu-arm Requires: qemu-tools Requires: qemu-ovmf-x86_64 Requires: qemu-uefi-aarch64 %else %if 0%{?rhel} Requires: qemu-system-x86-core Requires: qemu-system-aarch64-core Requires: qemu-img Requires: edk2-ovmf Requires: edk2-aarch64 %else Requires: qemu-system-x86 Requires: qemu-system-aarch64 Requires: qemu-img Requires: edk2-ovmf Requires: edk2-aarch64 %endif %endif %description Cubic spins up Linux virtual machines on Linux, macOS and Windows with a single command. Every distribution comes as an official image and is ready to use within seconds. Cubic keeps things simple and secure by acting as lightweight glue over proven tools. No privileged system service is required and every VM runs as your normal user. Cubic is built on top of QEMU, EDK2, official Linux distribution images and cloud-init. %prep %autosetup -n %{name}-%{version} # Unpack the vendored crates and build fully offline so the mock chroot never # reaches crates.io. tar -xf %{SOURCE1} mkdir -p .cargo cat > .cargo/config.toml <<'EOF' [source.crates-io] replace-with = "vendored-sources" [source.vendored-sources] directory = "vendor" EOF %build cargo build --release --offline --locked %install install -Dm0755 target/release/%{name} %{buildroot}%{_bindir}/%{name} # Generate the shell completions with the freshly built binary. install -d %{buildroot}%{_datadir}/bash-completion/completions ./target/release/%{name} completions bash > %{buildroot}%{_datadir}/bash-completion/completions/%{name} install -d %{buildroot}%{_datadir}/zsh/site-functions ./target/release/%{name} completions zsh > %{buildroot}%{_datadir}/zsh/site-functions/_%{name} install -d %{buildroot}%{_datadir}/fish/vendor_completions.d ./target/release/%{name} completions fish > %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}.fish %files %license LICENSE-APACHE LICENSE-MIT %doc README.md %{_bindir}/%{name} %{_datadir}/bash-completion/completions/%{name} %{_datadir}/zsh/site-functions/_%{name} %{_datadir}/fish/vendor_completions.d/%{name}.fish %changelog * Mon Aug 31 2026 Roger Knecht - test-1 - Release test