From aa8a3581a986c4958171eab4c9d3e05fb8ff91005a29633e6591e66626eb0cd4 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Fri, 18 Mar 2022 13:56:13 +0000 Subject: [PATCH] - make package compatible with OBS version (bsc#1197224): * move branding images to distribution-logos-SLE package * re-add dependency on distribution-logos * remove branding patch and assets (suse-microos-branding.patch, suse-microos-branding.tar.gz); moved to GitHub fork * remove local __python3 macro * apply SLE specific patches only on SLE - add hide-pcp.patch to hide references to PCP (Performance Co-Pilot) and metric collection (bsc#1195943). The cockpit-pcp package is not included in SLE Micro 5.2 base and these parts require it. - update to new LTS version from openSUSE:Factory - port remove-pwscore.patch * remove dependency on pwscore (bsc#1182924) * remove password strenth indicator - port branding changes as suse-microos "theme" * remove suse_cockpit_assets.tar.gz * add suse-microos-branding.tar.gz * remove branding_tests.patch * add suse-microos-branding.patch - remove files not needed to build this version anymore * webpack-warnings-are-not-errors.patch * github_package.patch * nodejs_output_helper.bash - remove cockpit.permissions workaround (bsc#1169614) OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:cockpit/cockpit?expand=0&rev=85 --- cockpit.changes | 37 +++++++++++++++++++++++++ cockpit.spec | 16 ++++++++++- hide-pcp.patch | 35 +++++++++++++++++++++++ remove-pwscore.patch | 66 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 153 insertions(+), 1 deletion(-) create mode 100644 hide-pcp.patch create mode 100644 remove-pwscore.patch diff --git a/cockpit.changes b/cockpit.changes index c45af1b..0e621f2 100644 --- a/cockpit.changes +++ b/cockpit.changes @@ -1,9 +1,46 @@ +------------------------------------------------------------------- +Tue Mar 15 13:42:38 UTC 2022 - Jacek Tomasiak + +- make package compatible with OBS version (bsc#1197224): + * move branding images to distribution-logos-SLE package + * re-add dependency on distribution-logos + * remove branding patch and assets (suse-microos-branding.patch, + suse-microos-branding.tar.gz); moved to GitHub fork + * remove local __python3 macro + * apply SLE specific patches only on SLE + +------------------------------------------------------------------- +Mon Feb 28 10:41:31 UTC 2022 - Jacek Tomasiak + +- add hide-pcp.patch to hide references to PCP (Performance + Co-Pilot) and metric collection (bsc#1195943). The cockpit-pcp + package is not included in SLE Micro 5.2 base and these parts + require it. + ------------------------------------------------------------------- Mon Jan 31 15:30:24 UTC 2022 - Jacek Tomasiak - change self-signed cert group from cockpit-wsintance to cockpit-ws on upgrade +------------------------------------------------------------------- +Mon Jan 31 08:26:46 UTC 2022 - Jacek Tomasiak + +- update to new LTS version from openSUSE:Factory +- port remove-pwscore.patch + * remove dependency on pwscore (bsc#1182924) + * remove password strenth indicator +- port branding changes as suse-microos "theme" + * remove suse_cockpit_assets.tar.gz + * add suse-microos-branding.tar.gz + * remove branding_tests.patch + * add suse-microos-branding.patch +- remove files not needed to build this version anymore + * webpack-warnings-are-not-errors.patch + * github_package.patch + * nodejs_output_helper.bash +- remove cockpit.permissions workaround (bsc#1169614) + ------------------------------------------------------------------- Fri Jan 28 14:54:44 UTC 2022 - Adam Majer diff --git a/cockpit.spec b/cockpit.spec index e181277..9c0c465 100644 --- a/cockpit.spec +++ b/cockpit.spec @@ -65,6 +65,9 @@ Source97: node_modules.spec.inc %include %{_sourcedir}/node_modules.spec.inc Patch0: cockpit-redhatfont.diff Patch1: 0001-selinux-allow-login-to-read-motd-file.patch +# SLE Micro specific patches +Patch100: remove-pwscore.patch +Patch101: hide-pcp.patch # in RHEL 8 the source package is duplicated: cockpit (building basic packages like cockpit-{bridge,system}) # and cockpit-appstream (building optional packages like cockpit-{pcp}) @@ -171,7 +174,14 @@ Recommends: subscription-manager-cockpit %prep %setup -q -n cockpit-%{version} -%autopatch -p1 +%patch0 -p1 +%patch1 -p1 + +%if 0%{?sle_version} +%patch100 -p1 +%patch101 -p1 +%endif + cp %SOURCE1 tools/cockpit.pam # local-npm-registry %{_sourcedir} install --also=dev --legacy-peer-deps @@ -443,7 +453,9 @@ Requires: cockpit-bridge >= %{version}-%{release} Requires: shadow-utils %endif Requires: grep +%if !0%{?sle_version} Requires: /usr/bin/pwscore +%endif Requires: /usr/bin/date Provides: cockpit-shell = %{version}-%{release} Provides: cockpit-systemd = %{version}-%{release} @@ -494,6 +506,8 @@ Recommends: system-logos Suggests: sssd-dbus %if 0%{?suse_version} Requires(pre): permissions +Requires: distribution-logos +Requires: wallpaper-branding %endif %description ws diff --git a/hide-pcp.patch b/hide-pcp.patch new file mode 100644 index 0000000..db64f5a --- /dev/null +++ b/hide-pcp.patch @@ -0,0 +1,35 @@ +diff --git a/pkg/metrics/metrics.jsx b/pkg/metrics/metrics.jsx +index 188aad7..a04b094 100644 +--- a/pkg/metrics/metrics.jsx ++++ b/pkg/metrics/metrics.jsx +@@ -995,6 +995,7 @@ const PCPConfig = ({ buttonVariant, firewalldRequest, needsLogout, setNeedsLogou + return ( + <> +