2021-05-04 09:45:15 +02:00
|
|
|
#
|
|
|
|
# spec file for package cockpit-machines
|
|
|
|
#
|
2024-01-31 12:31:45 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2021-05-04 09:45:15 +02:00
|
|
|
#
|
|
|
|
# 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
|
2024-07-17 09:50:13 +02:00
|
|
|
Version: 316
|
2021-05-04 09:45:15 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Cockpit user interface for virtual machines
|
2021-06-29 12:08:35 +02:00
|
|
|
License: LGPL-2.1-or-later AND MIT
|
2021-05-04 09:45:15 +02:00
|
|
|
URL: https://github.com/cockpit-project/cockpit-machines
|
2021-08-16 11:01:26 +02:00
|
|
|
# source_validator insists that if obscpio has no version then
|
|
|
|
# tarball must neither
|
2024-07-17 09:50:13 +02:00
|
|
|
Source: https://github.com/cockpit-project/cockpit-machines/releases/download/%{version}/cockpit-machines-%{version}.tar.xz
|
2021-05-04 09:45:15 +02:00
|
|
|
Source10: package-lock.json
|
|
|
|
Source11: node_modules.spec.inc
|
|
|
|
%include %_sourcedir/node_modules.spec.inc
|
2023-06-16 14:39:53 +02:00
|
|
|
Patch10: hide-docs.patch
|
|
|
|
Patch11: load-css-overrides.patch
|
2021-05-04 09:45:15 +02:00
|
|
|
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
|
2024-04-01 20:14:37 +02:00
|
|
|
Requires: qemu-spice
|
2022-03-17 14:41:10 +01:00
|
|
|
Requires: virt-install
|
2021-05-04 09:45:15 +02:00
|
|
|
# Optional components
|
|
|
|
Recommends: libosinfo
|
|
|
|
Recommends: python3-gobject-base
|
|
|
|
#
|
2023-06-16 14:39:53 +02:00
|
|
|
BuildRequires: cockpit-devel >= 293
|
2021-05-04 09:45:15 +02:00
|
|
|
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
|
2024-07-17 09:50:13 +02:00
|
|
|
%setup -q -n %{name}
|
2024-07-25 14:19:16 +02:00
|
|
|
%patch -P 10 -p1
|
|
|
|
%patch -P 11 -p1
|
2021-05-04 09:45:15 +02:00
|
|
|
rm -f package-lock.json
|
2021-08-13 13:23:45 +02:00
|
|
|
local-npm-registry %{_sourcedir} install --with=dev --legacy-peer-deps || ( find ~/.npm/_logs -name '*-debug.log' -print0 | xargs -0 cat; false)
|
2021-05-04 09:45:15 +02:00
|
|
|
|
|
|
|
%build
|
2023-06-16 14:39:53 +02:00
|
|
|
export PREFIX=%_prefix
|
2022-06-10 16:47:53 +02:00
|
|
|
mkdir -p pkg/lib
|
|
|
|
cp -r %{_datadir}/cockpit/devel/lib/* pkg/lib
|
2021-05-04 09:45:15 +02:00
|
|
|
NODE_ENV=production npm run build
|
|
|
|
|
|
|
|
%install
|
2023-06-16 14:39:53 +02:00
|
|
|
export PREFIX=%_prefix
|
2021-05-04 09:45:15 +02:00
|
|
|
%make_install
|
|
|
|
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md
|
2023-06-16 14:39:53 +02:00
|
|
|
%license LICENSE
|
2021-05-04 09:45:15 +02:00
|
|
|
%{_datadir}/cockpit
|
|
|
|
%{_datadir}/metainfo/*
|
|
|
|
|
|
|
|
%changelog
|