# # Copyright (C) 2017-2020 Red Hat, Inc. # # Cockpit is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. # # Cockpit is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with Cockpit; If not, see . # Name: cockpit-podman Version: 117 Release: 1.20251117073639610483.pr2330.20.ge69248f%{?dist} Summary: Cockpit component for Podman containers License: LGPL-2.1-or-later URL: https://github.com/cockpit-project/cockpit-podman # distributions which ship nodejs-esbuild can rebuild the bundle during package build %if 0%{?fedora} >= 42 %define rebuild_bundle 1 %endif Source0: cockpit-podman-117.20.ge69248f.tar.xz %if %{defined rebuild_bundle} Source1: https://github.com/cockpit-project/%{name}/releases/download/%{version}/%{name}-node-%{version}.tar.xz %endif BuildArch: noarch %if 0%{?suse_version} # Suse's package has a different name BuildRequires: appstream-glib %else BuildRequires: libappstream-glib %endif BuildRequires: make BuildRequires: gettext %if 0%{?rhel} && 0%{?rhel} <= 8 BuildRequires: libappstream-glib-devel %endif %if %{defined rebuild_bundle} BuildRequires: nodejs BuildRequires: nodejs-esbuild %endif Requires: cockpit-bridge Requires: podman >= 2.0.4 # HACK https://github.com/containers/crun/issues/1091 %if 0%{?centos} == 9 Requires: criu-libs %elif 0%{?suse_version} Requires: libcriu2 %endif 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(@xterm/addon-canvas)) = 0.7.0 Provides: bundled(npm(@xterm/xterm)) = 5.5.0 Provides: bundled(npm(docker-names)) = 1.2.1 Provides: bundled(npm(focus-trap)) = 7.6.4 Provides: bundled(npm(ipaddr.js)) = 2.2.0 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 The Cockpit user interface for Podman containers. %prep %setup -q -n cockpit-podman %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 appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/* %files %doc README.md %license LICENSE dist/index.js.LEGAL.txt dist/index.css.LEGAL.txt %{_datadir}/cockpit/* %{_datadir}/metainfo/* %changelog * Mon Nov 17 2025 Packit - 117-1.20251117073639610483.pr2330.20.ge69248f - packaging: Rebuild our bundle during Fedora package build (Martin Pitt) - packaging: Build production bundle in Debian (Martin Pitt) - build: Bump default TEST_OS to fedora-43 (Martin Pitt) - cockpit-ci: Update container to 2025-11-15 (Cockpit Project) - Bump @typescript-eslint/eslint-plugin in the types group (dependabot[bot]) - Bump the esbuild group with 2 updates (dependabot[bot]) - packaging: Bump Debian Standards-Version to 4.7.2 (Martin Pitt) - packaging: Adjust Debian lintian overrides for orig-node.tar.xz (Martin Pitt) - packaging: Add -node tarball to Debian watch file (Martin Pitt) - packaging: Auto-generate debian/copyright (Martin Pitt) - packaging: Rebuild our bundle during Debian package build (Martin Pitt) - build.js: Fall back to distribution esbuild package (Martin Pitt) - Makefile: Reduce -node tarball (Martin Pitt) - package.json: Move build deps into dependencies (Martin Pitt) - Makefile: Use runtime-npm-modules.txt as bundle stamp file (Martin Pitt) - build: Only include actually bundled npm modules into the spec (Martin Pitt) - package.json: Drop unused glob and jed dependencies (Martin Pitt) - tmt: Drop npm dependency (Martin Pitt) - Makefile: Update Cockpit lib to c137401a2b5fd8ba2088242b9ddc2f35 (Cockpit Project)