From 87d8c6c4fcb3899c8ca87c299b18e211be6cb529 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Sep 27 2022 14:39:56 +0000 Subject: import subscription-manager-cockpit-4-1.el9 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2727527 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/subscription-manager-cockpit-4.tar.xz +SOURCES/subscription-manager-cockpit-node-4.tar.xz diff --git a/.subscription-manager-cockpit.metadata b/.subscription-manager-cockpit.metadata new file mode 100644 index 0000000..304d407 --- /dev/null +++ b/.subscription-manager-cockpit.metadata @@ -0,0 +1,2 @@ +2a1261e775af3ab912c434e31833d20219f904e4 SOURCES/subscription-manager-cockpit-4.tar.xz +671f73161855d0007ae1c417bf0ad5343fcad070 SOURCES/subscription-manager-cockpit-node-4.tar.xz diff --git a/SPECS/subscription-manager-cockpit.spec b/SPECS/subscription-manager-cockpit.spec new file mode 100644 index 0000000..230794e --- /dev/null +++ b/SPECS/subscription-manager-cockpit.spec @@ -0,0 +1,99 @@ +Name: subscription-manager-cockpit +Version: 4 +Release: 1%{?dist} +Summary: Subscription Manager Cockpit UI +%if 0%{?suse_version} +Group: System Environment/Base +%endif +License: LGPLv2 +URL: https://www.candlepinproject.org/ + +Source0: %{name}-%{version}.tar.xz +Source1: %{name}-node-%{version}.tar.xz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +%if 0%{?fedora} +BuildRequires: nodejs-devel +%endif +BuildRequires: nodejs +BuildRequires: make +BuildRequires: libappstream-glib +BuildRequires: gettext +BuildRequires: desktop-file-utils +%if 0%{?rhel} && 0%{?rhel} <= 8 +BuildRequires: libappstream-glib-devel +%endif + +Requires: subscription-manager +Requires: cockpit-bridge +Requires: cockpit-shell +Requires: rhsm-icons +%if %{defined rhel} && %{undefined centos} +Suggests: insights-client +%endif + +%description +Subscription Manager Cockpit UI + +%package -n rhsm-icons +Summary: Icons for Red Hat Subscription Management client tools + +# As these two packages previously contained the icons now contained in +# rhsm-icons package, we need to specify the logical complement to a +# "Requires", which is "Conflicts". With any luck the underlying +# depsolver will cause the removal of this package if the request +# is to downgrade either of the following to a version below these +# requirements. +Conflicts: rhsm-gtk < 1.26.7 +Conflicts: subscription-manager-cockpit < 1.26.7 + +%description -n rhsm-icons +This package contains the desktop icons for the graphical interfaces provided for management +of Red Hat subscriptions: subscription-manager-gui, subscription-manager-cockpit-plugin. + +%prep +%autosetup -n %{name} -a 1 +# ignore pre-built webpack in release tarball and rebuild it +rm -rf dist + +%build +ESLINT=0 NODE_ENV=production make + +%install +%make_install + +# 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/* +desktop-file-validate %{buildroot}/%{_datadir}/applications/* + +# this can't be meaningfully tested during package build + +%files +%license LICENSE +%dir %{_datadir}/cockpit/subscription-manager +%{_datadir}/applications/* +%{_datadir}/cockpit/subscription-manager/* +%{_datadir}/metainfo/* + +%files -n rhsm-icons +%{_datadir}/icons/hicolor/scalable/apps/*.svg +%{_datadir}/icons/hicolor/symbolic/apps/*.svg + +%changelog +* Wed Jul 27 2022 Jiri Hnidek 4-1 + +* Tue Jul 26 2022 Jiri Hnidek 3-1 +- Translated using Weblate (Korean) (simmon@nplob.com) +- test: drop unused reference-image file (ptoscano@redhat.com) +- Drop the static npm-shrinkwrap.json (ptoscano@redhat.com) +- Bump cockpit test API to 273 + run-tests scheduler fix (martin@piware.de) +- spec: suggest insights-client on RHEL (ptoscano@redhat.com) +- tito: remove autogenerated spec file before tagging (ptoscano@redhat.com) + +* Fri Jun 24 2022 Jiri Hnidek 2-1 +- New package built with tito +- New pattern of versioning. Starting version is 2 +