Name: cockpit-files Version: 1 Release: 1.20240328225321295589.pr347%{?dist} Summary: A filesystem browser for Cockpit License: LGPL-2.1-or-later Source0: cockpit-files-1.tar.xz Source1: cockpit-files-node-1.tar.xz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs BuildRequires: make BuildRequires: libappstream-glib BuildRequires: gettext %if 0%{?rhel} && 0%{?rhel} <= 8 BuildRequires: libappstream-glib-devel %endif Requires: cockpit-bridge >= 310 Provides: bundled(npm(@patternfly/patternfly)) = 5.2.1 Provides: bundled(npm(@patternfly/react-core)) = 5.2.3 Provides: bundled(npm(@patternfly/react-icons)) = 5.2.1 Provides: bundled(npm(@patternfly/react-styles)) = 5.2.1 Provides: bundled(npm(@patternfly/react-table)) = 5.2.4 Provides: bundled(npm(@patternfly/react-tokens)) = 5.2.1 Provides: bundled(npm(array-buffer-byte-length)) = 1.0.1 Provides: bundled(npm(attr-accept)) = 2.2.2 Provides: bundled(npm(available-typed-arrays)) = 1.0.7 Provides: bundled(npm(call-bind)) = 1.0.7 Provides: bundled(npm(date-fns)) = 3.6.0 Provides: bundled(npm(deep-equal)) = 2.2.3 Provides: bundled(npm(define-data-property)) = 1.1.4 Provides: bundled(npm(define-properties)) = 1.2.1 Provides: bundled(npm(es-define-property)) = 1.0.0 Provides: bundled(npm(es-errors)) = 1.3.0 Provides: bundled(npm(es-get-iterator)) = 1.1.3 Provides: bundled(npm(file-selector)) = 0.6.0 Provides: bundled(npm(focus-trap)) = 7.5.2 Provides: bundled(npm(for-each)) = 0.3.3 Provides: bundled(npm(function-bind)) = 1.1.2 Provides: bundled(npm(functions-have-names)) = 1.2.3 Provides: bundled(npm(get-intrinsic)) = 1.2.4 Provides: bundled(npm(gopd)) = 1.0.1 Provides: bundled(npm(has-bigints)) = 1.0.2 Provides: bundled(npm(has-property-descriptors)) = 1.0.2 Provides: bundled(npm(has-proto)) = 1.0.3 Provides: bundled(npm(has-symbols)) = 1.0.3 Provides: bundled(npm(has-tostringtag)) = 1.0.2 Provides: bundled(npm(hasown)) = 2.0.2 Provides: bundled(npm(internal-slot)) = 1.0.7 Provides: bundled(npm(is-arguments)) = 1.1.1 Provides: bundled(npm(is-array-buffer)) = 3.0.4 Provides: bundled(npm(is-bigint)) = 1.0.4 Provides: bundled(npm(is-boolean-object)) = 1.1.2 Provides: bundled(npm(is-callable)) = 1.2.7 Provides: bundled(npm(is-date-object)) = 1.0.5 Provides: bundled(npm(is-map)) = 2.0.3 Provides: bundled(npm(is-number-object)) = 1.0.7 Provides: bundled(npm(is-regex)) = 1.1.4 Provides: bundled(npm(is-set)) = 2.0.3 Provides: bundled(npm(is-shared-array-buffer)) = 1.0.3 Provides: bundled(npm(is-string)) = 1.0.7 Provides: bundled(npm(is-symbol)) = 1.0.4 Provides: bundled(npm(is-weakmap)) = 2.0.2 Provides: bundled(npm(is-weakset)) = 2.0.3 Provides: bundled(npm(isarray)) = 2.0.5 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(object-inspect)) = 1.13.1 Provides: bundled(npm(object-is)) = 1.1.6 Provides: bundled(npm(object-keys)) = 1.1.1 Provides: bundled(npm(object.assign)) = 4.1.5 Provides: bundled(npm(possible-typed-array-names)) = 1.0.0 Provides: bundled(npm(prop-types)) = 15.8.1 Provides: bundled(npm(react-dom)) = 18.2.0 Provides: bundled(npm(react-dropzone)) = 14.2.3 Provides: bundled(npm(react-is)) = 16.13.1 Provides: bundled(npm(react)) = 18.2.0 Provides: bundled(npm(regexp.prototype.flags)) = 1.5.2 Provides: bundled(npm(scheduler)) = 0.23.0 Provides: bundled(npm(set-function-length)) = 1.2.2 Provides: bundled(npm(set-function-name)) = 2.0.2 Provides: bundled(npm(side-channel)) = 1.0.6 Provides: bundled(npm(stop-iteration-iterator)) = 1.0.0 Provides: bundled(npm(tabbable)) = 6.2.0 Provides: bundled(npm(throttle-debounce)) = 5.0.0 Provides: bundled(npm(tslib)) = 2.6.2 Provides: bundled(npm(which-boxed-primitive)) = 1.0.2 Provides: bundled(npm(which-collection)) = 1.0.2 Provides: bundled(npm(which-typed-array)) = 1.1.15 %description A filesystem browser for Cockpit %prep %autosetup -n cockpit-files -a 1 # ignore pre-built bundle in release tarball and rebuild it # but keep it in RHEL/CentOS-8, as that has a too old nodejs %if ! 0%{?rhel} || 0%{?rhel} >= 9 rm -rf dist %endif %build NODE_ENV=production make %install %make_install PREFIX=/usr # drop source maps, they are large and just for debugging find %{buildroot}%{_datadir}/cockpit/ -name '*.map' | xargs --no-run-if-empty rm --verbose %check appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/* # this can't be meaningfully tested during package build; tests happen through # FMF (see plans/all.fmf) during package gating %files %doc README.md %license LICENSE dist/index.js.LEGAL.txt dist/index.css.LEGAL.txt %{_datadir}/cockpit/* %{_datadir}/metainfo/* %changelog * Thu Mar 28 2024 Packit - 1-1.20240328225321295589.pr347 - Development snapshot (988ff920)