2022-04-29 16:14:50 +02:00
|
|
|
#
|
|
|
|
# spec file for package cockpit-tukit
|
|
|
|
#
|
2024-01-16 10:25:40 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2022-04-29 16:14:50 +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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-05-19 15:15:20 +02:00
|
|
|
Name: cockpit-tukit
|
2024-01-16 10:25:40 +01:00
|
|
|
Version: 0.1.2~git0.647b3e3
|
2022-05-19 15:15:20 +02:00
|
|
|
Release: 0%{?dist}
|
|
|
|
Summary: Cockpit module for Transactional Update
|
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
|
|
|
|
URL: https://github.com/openSUSE/cockpit-tukit
|
|
|
|
Source: %{name}-%{version}.tar.xz
|
2022-04-29 16:14:50 +02:00
|
|
|
Source10: package-lock.json
|
|
|
|
Source11: node_modules.spec.inc
|
2022-04-29 16:25:21 +02:00
|
|
|
Source12: node_modules.sums
|
2022-04-29 16:14:50 +02:00
|
|
|
%include %_sourcedir/node_modules.spec.inc
|
2022-06-17 12:44:46 +02:00
|
|
|
Patch0: load-css-overrides.patch
|
2022-05-19 15:15:20 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: appstream-glib
|
2023-10-10 09:12:11 +02:00
|
|
|
BuildRequires: cockpit-devel >= 293
|
2022-05-19 15:15:20 +02:00
|
|
|
BuildRequires: local-npm-registry
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: nodejs-devel
|
|
|
|
BuildRequires: npm
|
2022-04-29 16:14:50 +02:00
|
|
|
|
2022-05-19 15:15:20 +02:00
|
|
|
Requires: cockpit-system
|
|
|
|
Requires: tukitd
|
2022-04-29 16:14:50 +02:00
|
|
|
|
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Cockpit module for Transactional Update
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
2022-06-17 12:44:46 +02:00
|
|
|
%patch0 -p1
|
2022-04-29 16:14:50 +02:00
|
|
|
rm -f package-lock.json
|
2023-07-31 08:36:00 +02:00
|
|
|
rm -rf node_modules
|
|
|
|
local-npm-registry %{_sourcedir} install --with=dev || ( find ~/.npm/_logs -name '*-debug.log' -print0 | xargs -0 cat; false)
|
2022-04-29 16:14:50 +02:00
|
|
|
|
|
|
|
%build
|
2023-07-31 08:36:00 +02:00
|
|
|
mkdir -p pkg
|
|
|
|
cp -r %{_datadir}/cockpit/devel/lib pkg/lib
|
2022-04-29 16:14:50 +02:00
|
|
|
NODE_ENV=production npm run build
|
|
|
|
|
|
|
|
%install
|
2023-07-31 08:36:00 +02:00
|
|
|
PREFIX=/usr DESTDIR=%{buildroot} make install
|
2022-04-29 16:14:50 +02:00
|
|
|
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*
|
|
|
|
|
|
|
|
# drop source maps, they are large and just for debugging
|
|
|
|
find %{buildroot}%{_datadir}/cockpit/ -name '*.map' | xargs --no-run-if-empty rm --verbose
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md
|
2023-07-31 08:36:00 +02:00
|
|
|
%license LICENSE dist/index.js.LEGAL.txt dist/index.css.LEGAL.txt
|
2022-04-29 16:14:50 +02:00
|
|
|
%{_datadir}/cockpit
|
|
|
|
%{_datadir}/metainfo/*
|
|
|
|
|
|
|
|
%changelog
|