#
# 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 .
#
Name: cockpit-machines
Version: 316
Release: 1.20240721075302373001.pr1735.16.g5ffa18b%{?dist}
Summary: Cockpit user interface for virtual machines
License: LGPL-2.1-or-later AND MIT
URL: https://github.com/cockpit-project/cockpit-machines
Source0: cockpit-machines-316.16.g5ffa18b.tar.xz
BuildArch: noarch
%if 0%{?suse_version}
BuildRequires: appstream-glib
%else
BuildRequires: libappstream-glib
%endif
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
# HACK: https://bugzilla.redhat.com/show_bug.cgi?id=2170110
%if 0%{?fedora} >= 38
Requires: (qemu-audio-spice if qemu-char-spice)
%endif
%endif
%endif
Requires: libvirt-client
Requires: libvirt-dbus >= 1.2.0
# Optional components
Recommends: virt-install >= 3.0.0
Recommends: libosinfo
Recommends: python3-gobject-base
Suggests: (qemu-virtiofsd or virtiofsd)
Provides: bundled(npm(@novnc/novnc)) = 1.4.0
Provides: bundled(npm(@patternfly/patternfly)) = 5.3.1
Provides: bundled(npm(@patternfly/react-console)) = 5.0.0
Provides: bundled(npm(@patternfly/react-core)) = 5.3.4
Provides: bundled(npm(@patternfly/react-icons)) = 5.3.2
Provides: bundled(npm(@patternfly/react-styles)) = 5.3.1
Provides: bundled(npm(@patternfly/react-table)) = 5.3.4
Provides: bundled(npm(@patternfly/react-tokens)) = 5.3.1
Provides: bundled(npm(@spice-project/spice-html5)) = 0.2.1
Provides: bundled(npm(attr-accept)) = 2.2.2
Provides: bundled(npm(dequal)) = 2.0.3
Provides: bundled(npm(file-saver)) = 1.3.8
Provides: bundled(npm(file-selector)) = 0.6.0
Provides: bundled(npm(focus-trap)) = 7.5.2
Provides: bundled(npm(js-tokens)) = 4.0.0
Provides: bundled(npm(lodash)) = 4.17.21
Provides: bundled(npm(loose-envify)) = 1.4.0
Provides: bundled(npm(object-assign)) = 4.1.1
Provides: bundled(npm(prop-types)) = 15.8.1
Provides: bundled(npm(react-dom)) = 18.3.1
Provides: bundled(npm(react-dropzone)) = 14.2.3
Provides: bundled(npm(react-is)) = 16.13.1
Provides: bundled(npm(react)) = 18.3.1
Provides: bundled(npm(redux-thunk)) = 3.1.0
Provides: bundled(npm(redux)) = 5.0.1
Provides: bundled(npm(scheduler)) = 0.23.2
Provides: bundled(npm(tabbable)) = 6.2.0
Provides: bundled(npm(throttle-debounce)) = 5.0.2
Provides: bundled(npm(tslib)) = 2.6.3
Provides: bundled(npm(xterm-addon-canvas)) = 0.5.0
Provides: bundled(npm(xterm-addon-fit)) = 0.2.1
Provides: bundled(npm(xterm)) = 4.19.0
Provides: bundled(npm(xterm)) = 5.1.0
%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 PREFIX=/usr
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*
%files
%doc README.md
%license LICENSE dist/index.js.LEGAL.txt dist/index.css.LEGAL.txt
%{_datadir}/cockpit/*
%{_datadir}/metainfo/*
# The changelog is automatically generated and merged
%changelog
* Sun Jul 21 2024 Packit - 316-1.20240721075302373001.pr1735.16.g5ffa18b
- Bump sass from 1.77.6 to 1.77.8 (dependabot[bot])
- Makefile: Update Cockpit lib to 43564c72168d4e53bd701effc4318d98 (Cockpit Project)
- build: don't rely on implicitly imported process (Jelle van der Waa)
- Use action option from EmptyStatePanel (Jelle van der Waa)
- test: selinux-policy-40.13.5-1.el10.noarch is broken as well (Martin Pitt)
- Makefile: Update Cockpit lib to 516c15509f33d15827decc4e0cdf97b7 (Cockpit Project)
- po: Update from Fedora Weblate (GitHub Workflow)
- fmf: Disable SELinux with broken rawhide policy version (Martin Pitt)
- test: Fix race condition in testCreateDownloadAnOS() on tumbleweed (Martin Pitt)
- test: Ensure expected state in createAndVerifyVirtInstallArgsUnattended() (Martin Pitt)
- Bump the patternfly group with 2 updates (dependabot[bot])
- Bump eslint-plugin-react in the eslint group (dependabot[bot])
- manifest: drop content-security-policy (Jelle van der Waa)
- fmf: Disable SELinux with broken RHEL 10 policy version (Martin Pitt)
- fmf: Show "virt-host-validate qemu" in logs (Martin Pitt)
- Makefile: Update Cockpit lib to 319e2d4539f183dc0914cc1903a09df2 (Cockpit Project)