Name: cockpit-files Version: 32.11.g68d61ab Release: 1.20251117073616370345.pr1239.11.g68d61ab%{?dist} Summary: A filesystem browser for Cockpit License: LGPL-2.1-or-later # distributions which ship nodejs-esbuild can rebuild the bundle during package build %if 0%{?fedora} >= 42 %define rebuild_bundle 1 %endif Source0: cockpit-files-32.11.g68d61ab.tar.xz %if %{defined rebuild_bundle} Source1: cockpit-files-node-32.11.g68d61ab.tar.xz %endif BuildArch: noarch BuildRequires: make %if 0%{?suse_version} # Suse's package has a different name BuildRequires: appstream-glib %else BuildRequires: libappstream-glib %endif BuildRequires: gettext %if %{defined rebuild_bundle} BuildRequires: nodejs BuildRequires: nodejs-esbuild %endif Requires: cockpit-bridge >= 318 # Replace the older cockpit-navigator provided by 45Drives Obsoletes: cockpit-navigator < 0.5.11 Provides: bundled(npm(@patternfly/patternfly)) = 6.4.0 Provides: bundled(npm(@patternfly/react-core)) = 6.4.0 Provides: bundled(npm(@patternfly/react-icons)) = 6.4.0 Provides: bundled(npm(@patternfly/react-styles)) = 6.4.0 Provides: bundled(npm(@patternfly/react-table)) = 6.4.0 Provides: bundled(npm(@patternfly/react-tokens)) = 6.4.0 Provides: bundled(npm(dequal)) = 2.0.3 Provides: bundled(npm(focus-trap)) = 7.6.4 Provides: bundled(npm(lodash)) = 4.17.21 Provides: bundled(npm(object-assign)) = 4.1.1 Provides: bundled(npm(prop-types)) = 15.8.1 Provides: bundled(npm(react)) = 18.3.1 Provides: bundled(npm(react-dom)) = 18.3.1 Provides: bundled(npm(react-is)) = 16.13.1 Provides: bundled(npm(scheduler)) = 0.23.2 Provides: bundled(npm(tabbable)) = 6.3.0 Provides: bundled(npm(throttle-debounce)) = 5.0.2 Provides: bundled(npm(tslib)) = 2.8.1 %description A filesystem browser for Cockpit %prep %setup -q -n cockpit-files %if %{defined rebuild_bundle} %setup -q -D -T -a 1 -n %{name} %endif %build %if %{defined rebuild_bundle} rm -rf dist # HACK: node module packaging is currently broken in Fedora, should be in # common location, not major version specific one NODE_ENV=production NODE_PATH=$(echo /usr/lib/node_modules_*) ./build.js %else # Use pre-built bundle on distributions without nodejs-esbuild %endif %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 %{_datadir}/cockpit/* %{_datadir}/metainfo/* %changelog * Mon Nov 17 2025 Packit - 32.11.g68d61ab-1.20251117073616370345.pr1239.11.g68d61ab - packaging: Build production bundle in Debian (Martin Pitt) - packaging: Rebuild our bundle during Fedora package build (Martin Pitt) - build: Bump default TEST_OS to fedora-43 (Martin Pitt) - cockpit-ci: Update container to 2025-11-08 (Cockpit Project) - build(deps): bump the esbuild group with 2 updates (dependabot[bot]) - packaging: Bump Debian Standards-Version to 4.7.2 (Martin Pitt) - packaging: Adjust Debian packaging for orig-node.tar.xz (Martin Pitt) - packaging: Fix formatting in debian/control (Martin Pitt) - packaging: Add -node tarball to Debian watch file (Martin Pitt) - Update cockpit lib without layout change (#1235) (Marius Vollmer)