Name: cockpit-nginx-manager Version: 0.1.2.4.gc682829 Release: 1.20261119095637288197.pr20.4.gc682829%{?dist} Summary: Cockpit module to manage nginx sites and TLS certificates 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-nginx-manager-0.1.2.4.gc682829.tar.xz Source1: cockpit-nginx-manager-node-0.1.2.4.gc682829.tar.xz BuildArch: noarch %if ! 0%{?suse_version} ExclusiveArch: %{nodejs_arches} noarch %endif BuildRequires: make %if 0%{?suse_version} # Suse's package has a different name BuildRequires: appstream-glib %else BuildRequires: libappstream-glib %endif BuildRequires: gettext %if 0%{?rhel} && 0%{?rhel} <= 8 BuildRequires: libappstream-glib-devel %endif %if %{defined rebuild_bundle} BuildRequires: /usr/bin/node BuildRequires: nodejs-esbuild %endif Requires: cockpit-bridge %if ! 0%{?suse_version} # semanage, to let nginx listen on custom ports under SELinux Recommends: policycoreutils-python-utils %endif Provides: bundled(npm(@patternfly/react-core)) = 6.6.1 Provides: bundled(npm(@patternfly/react-icons)) = 6.6.1 Provides: bundled(npm(@patternfly/react-styles)) = 6.6.1 Provides: bundled(npm(@patternfly/react-table)) = 6.6.1 Provides: bundled(npm(@patternfly/react-tokens)) = 6.7.0 Provides: bundled(npm(dequal)) = 2.0.3 Provides: bundled(npm(focus-trap)) = 7.6.6 Provides: bundled(npm(lodash)) = 4.18.1 Provides: bundled(npm(react)) = 18.3.1 Provides: bundled(npm(react-dom)) = 18.3.1 Provides: bundled(npm(scheduler)) = 0.23.2 Provides: bundled(npm(tabbable)) = 6.5.2 Provides: bundled(npm(tslib)) = 2.9.1 %description Cockpit module to manage nginx sites and TLS certificates %prep %autosetup -n %{name} %if %{defined rebuild_bundle} %setup -q -D -T -a 1 -n cockpit-nginx-manager %endif %build %if %{defined rebuild_bundle} rm -rf dist # HACK: node module packaging is broken in Fedora ≤ 43; should be in # common location, not major version specific one NODE_ENV=production NODE_PATH=/usr/lib/node_modules:$(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 * Thu Nov 19 2026 Packit - 0.1.2.4.gc682829-1.20261119095637288197.pr20.4.gc682829 - Makefile: Update Cockpit lib to e09f69218bfeb1bf2dd822218f77a36d (Cockpit Project) - Makefile: Update Cockpit lib to 9401f45ccecea79f9d940a7da67731d5 (Cockpit Project) - 💄 Show certificate dates as ISO 8601 (Alberto López)