# # Copyright (C) 2021 Red Hat, Inc. # # Cockpit is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. # # Cockpit is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with Cockpit; If not, see <http://www.gnu.org/licenses/>. # Name: cockpit-machines Version: 270.2 Release: 1%{?dist} Summary: Cockpit user interface for virtual machines License: LGPLv2+ and MIT URL: https://github.com/cockpit-project/cockpit-machines Source0: cockpit-machines-270.2.tar.xz BuildArch: noarch BuildRequires: libappstream-glib BuildRequires: make BuildRequires: gettext %if 0%{?rhel} && 0%{?rhel} <= 8 BuildRequires: libappstream-glib-devel %endif Requires: cockpit-bridge >= 215 %if 0%{?suse_version} Requires: libvirt-daemon-qemu %else Requires: libvirt-daemon-driver-qemu Requires: libvirt-daemon-driver-network Requires: libvirt-daemon-driver-nodedev Requires: libvirt-daemon-driver-storage-core Requires: (libvirt-daemon-driver-interface if virt-install) Requires: (libvirt-daemon-config-network if virt-install) Recommends: libvirt-daemon-driver-storage-disk %if 0%{?rhel} Requires: qemu-kvm %else # smaller footprint on Fedora, as qemu-kvm is really expensive on a server Requires: qemu-kvm-core Recommends: qemu-block-curl Recommends: qemu-char-spice Recommends: qemu-device-usb-host Recommends: qemu-device-usb-redirect %endif %endif Requires: libvirt-client Requires: libvirt-dbus >= 1.2.0 # Optional components Recommends: virt-install Recommends: libosinfo Recommends: python3-gobject-base Suggests: qemu-virtiofsd %description Cockpit component for managing virtual machines. If "virt-install" is installed, you can also create new virtual machines. %prep %setup -q -n cockpit-machines %build # Nothing to build %install %make_install appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/* %files %doc README.md %license LICENSE dist/index.js.LICENSE.txt.gz %{_datadir}/cockpit/* %{_datadir}/metainfo/* # The changelog is automatically generated and merged %changelog