2
0
cockpit-machines/cockpit-machines.spec
Adam Majer 451eab2757 Accepting request 1187807 from home:ldragon:branches:systemsmanagement:cockpit
- Update to 316:
    * Bug fixes and performance improvements
- Changes from 315:
    * Translation updates and bug fixes
- Changes from 314:
    * Fix translation extraction
    * Translation updates
- Changes from 313:
    * Updates to translations
- Changes from 312:
    * Bug fixes and performance improvements
- Changes from 311:
    * Allow pasting multiple SSH keys at once in Create VM dialog
    * Fix detaching host device for running VMs
- Changes from 310:
    * Bug fixes and performance improvements
- Changes from 309:
    * bug fixes and performance improvements
- Changes from 308:
    * Add TPM when switching to EFI
    * Translation updates
    * Only use external snapshots for disks of type "file"
    * Skip empty media drives for external snapshots
    * Refresh VM after creating/reverting/deleting snapshots
    * Don't list disks in snapshot XML
    * Fix detaching host devices for running VMs

OBS-URL: https://build.opensuse.org/request/show/1187807
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:cockpit/cockpit-machines?expand=0&rev=37
2024-07-17 07:50:13 +00:00

84 lines
2.5 KiB
RPMSpec

#
# spec file for package cockpit-machines
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: cockpit-machines
Version: 316
Release: 0
Summary: Cockpit user interface for virtual machines
License: LGPL-2.1-or-later AND MIT
URL: https://github.com/cockpit-project/cockpit-machines
# source_validator insists that if obscpio has no version then
# tarball must neither
Source: https://github.com/cockpit-project/cockpit-machines/releases/download/%{version}/cockpit-machines-%{version}.tar.xz
Source10: package-lock.json
Source11: node_modules.spec.inc
%include %_sourcedir/node_modules.spec.inc
Patch10: hide-docs.patch
Patch11: load-css-overrides.patch
BuildArch: noarch
BuildRequires: appstream-glib
BuildRequires: make
Requires: cockpit-bridge >= 215
%if 0%{?suse_version}
Requires: libvirt-daemon-qemu
%else
Requires: libvirt-daemon-kvm
%endif
Requires: libvirt-client
Requires: libvirt-dbus >= 1.2.0
Requires: qemu-spice
Requires: virt-install
# Optional components
Recommends: libosinfo
Recommends: python3-gobject-base
#
BuildRequires: cockpit-devel >= 293
BuildRequires: local-npm-registry
BuildRequires: sassc
%description
Cockpit component for managing virtual machines.
If "virt-install" is installed, you can also create new virtual machines.
%prep
%setup -q -n %{name}
%patch10 -p1
%patch11 -p1
rm -f package-lock.json
local-npm-registry %{_sourcedir} install --with=dev --legacy-peer-deps || ( find ~/.npm/_logs -name '*-debug.log' -print0 | xargs -0 cat; false)
%build
export PREFIX=%_prefix
mkdir -p pkg/lib
cp -r %{_datadir}/cockpit/devel/lib/* pkg/lib
NODE_ENV=production npm run build
%install
export PREFIX=%_prefix
%make_install
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*
%files
%doc README.md
%license LICENSE
%{_datadir}/cockpit
%{_datadir}/metainfo/*
%changelog