Blame SPECS/subscription-manager-cockpit.spec

26c9b0
Name: subscription-manager-cockpit
12b982
Version: 6
26c9b0
Release: 1%{?dist}
26c9b0
Summary: Subscription Manager Cockpit UI
26c9b0
%if 0%{?suse_version}
26c9b0
Group: System Environment/Base
26c9b0
%endif
26c9b0
License: LGPLv2
26c9b0
URL: https://www.candlepinproject.org/
26c9b0
26c9b0
Source0: %{name}-%{version}.tar.xz
26c9b0
Source1: %{name}-node-%{version}.tar.xz
26c9b0
BuildArch: noarch
26c9b0
ExclusiveArch: %{nodejs_arches} noarch
26c9b0
%if 0%{?fedora}
26c9b0
BuildRequires: nodejs-devel
26c9b0
%endif
26c9b0
BuildRequires: nodejs
26c9b0
BuildRequires: make
26c9b0
BuildRequires: libappstream-glib
26c9b0
BuildRequires: gettext
26c9b0
BuildRequires: desktop-file-utils
26c9b0
%if 0%{?rhel} && 0%{?rhel} <= 8
26c9b0
BuildRequires: libappstream-glib-devel
26c9b0
%endif
26c9b0
26c9b0
Requires: subscription-manager
26c9b0
Requires: cockpit-bridge
26c9b0
Requires: cockpit-shell
26c9b0
Requires: rhsm-icons
26c9b0
%if %{defined rhel} && %{undefined centos}
26c9b0
Suggests: insights-client
26c9b0
%endif
26c9b0
26c9b0
%description
26c9b0
Subscription Manager Cockpit UI
26c9b0
26c9b0
%package -n rhsm-icons
26c9b0
Summary: Icons for Red Hat Subscription Management client tools
26c9b0
26c9b0
# As these two packages previously contained the icons now contained in
26c9b0
# rhsm-icons package, we need to specify the logical complement to a
26c9b0
# "Requires", which is "Conflicts". With any luck the underlying
26c9b0
# depsolver will cause the removal of this package if the request
26c9b0
# is to downgrade either of the following to a version below these
26c9b0
# requirements.
26c9b0
Conflicts: rhsm-gtk < 1.26.7
26c9b0
Conflicts: subscription-manager-cockpit < 1.26.7
26c9b0
26c9b0
%description -n rhsm-icons
26c9b0
This package contains the desktop icons for the graphical interfaces provided for management
26c9b0
of Red Hat subscriptions: subscription-manager-gui, subscription-manager-cockpit-plugin.
26c9b0
26c9b0
%prep
26c9b0
%autosetup -n %{name} -a 1
26c9b0
# ignore pre-built webpack in release tarball and rebuild it
26c9b0
rm -rf dist
26c9b0
26c9b0
%build
26c9b0
ESLINT=0 NODE_ENV=production make
26c9b0
26c9b0
%install
26c9b0
%make_install
26c9b0
26c9b0
# drop source maps, they are large and just for debugging
26c9b0
find %{buildroot}%{_datadir}/cockpit/ -name '*.map' | xargs --no-run-if-empty rm --verbose
26c9b0
26c9b0
%check
26c9b0
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*
26c9b0
desktop-file-validate %{buildroot}/%{_datadir}/applications/*
26c9b0
26c9b0
# this can't be meaningfully tested during package build
26c9b0
26c9b0
%files
26c9b0
%license LICENSE
26c9b0
%dir %{_datadir}/cockpit/subscription-manager
26c9b0
%{_datadir}/applications/*
26c9b0
%{_datadir}/cockpit/subscription-manager/*
26c9b0
%{_datadir}/metainfo/*
26c9b0
26c9b0
%files -n rhsm-icons
26c9b0
%{_datadir}/icons/hicolor/scalable/apps/*.svg
26c9b0
%{_datadir}/icons/hicolor/symbolic/apps/*.svg
26c9b0
26c9b0
%changelog
12b982
* Mon Feb 20 2023 Pino Toscano <ptoscano@redhat.com> 6-1
12b982
- Translated using Weblate (Kannada) (jsefler@redhat.com)
12b982
- Translated using Weblate (Georgian) (temuri.doghonadze@gmail.com)
12b982
- 2169976: insights: fix spawn_error_to_string in more cases
12b982
  (ptoscano@redhat.com)
12b982
12b982
* Fri Jan 06 2023 Pino Toscano <ptoscano@redhat.com> 5-1
12b982
- Translated using Weblate (French) (vincent.lefebvre59@gmail.com)
12b982
- Translated using Weblate (Korean) (simmon@nplob.com)
12b982
- Translated using Weblate (Georgian) (temuri.doghonadze@gmail.com)
12b982
- 2077759: invoke cockpit.translate() after document loading
12b982
  (ptoscano@redhat.com)
12b982
- test: Drop outdated copy of packagelib.py (martin@piware.de)
12b982
- Added missing keys to react components (jhnidek@redhat.com)
12b982
- Fix the issue, when it is not possible to install insights-client
12b982
  (jhnidek@redhat.com)
12b982
- test: Sync packagelib.py with cockpit main (martin@piware.de)
12b982
- New target and added one project directory to .gitignore (jhnidek@redhat.com)
12b982
26c9b0
* Wed Jul 27 2022 Jiri Hnidek <jhnidek@redhat.com> 4-1
26c9b0
26c9b0
* Tue Jul 26 2022 Jiri Hnidek <jhnidek@redhat.com> 3-1
26c9b0
- Translated using Weblate (Korean) (simmon@nplob.com)
26c9b0
- test: drop unused reference-image file (ptoscano@redhat.com)
26c9b0
- Drop the static npm-shrinkwrap.json (ptoscano@redhat.com)
26c9b0
- Bump cockpit test API to 273 + run-tests scheduler fix (martin@piware.de)
26c9b0
- spec: suggest insights-client on RHEL (ptoscano@redhat.com)
26c9b0
- tito: remove autogenerated spec file before tagging (ptoscano@redhat.com)
26c9b0
26c9b0
* Fri Jun 24 2022 Jiri Hnidek <jhnidek@redhat.com> 2-1
26c9b0
- New package built with tito
26c9b0
- New pattern of versioning. Starting version is 2
26c9b0